C# Class OneAndOne.Client.Endpoints.MonitoringPolicies.MonitoringPoliciesPorts

Inheritance: ResourceBase
Mostrar archivo Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Public Methods

Method Description
Create ( List ports, string monitoring_policy_id ) : MonitoringPoliciesResponse

Adds new ports to a monitoring policy

Delete ( string monitoring_policy_id, string port_id ) : MonitoringPoliciesResponse

Removes a port from a monitoring policy.

Get ( string monitoring_policy_id ) : List

Returns a list of the ports of a monitoring policy.

MonitoringPoliciesPorts ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string monitoring_policy_id, string port_id ) : Ports

Returns information about a port of a monitoring policy.

Update ( OneAndOne ports, string monitoring_policy_id, string port_id ) : MonitoringPoliciesResponse

Modifies a port from a monitoring policy.

Method Details

Create() public method

Adds new ports to a monitoring policy
public Create ( List ports, string monitoring_policy_id ) : MonitoringPoliciesResponse
ports List
monitoring_policy_id string Unique monitoring policy's identifier.
return OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse

Delete() public method

Removes a port from a monitoring policy.
public Delete ( string monitoring_policy_id, string port_id ) : MonitoringPoliciesResponse
monitoring_policy_id string Unique monitoring policy's identifier.
port_id string Unique port's identifier.
return OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse

Get() public method

Returns a list of the ports of a monitoring policy.
public Get ( string monitoring_policy_id ) : List
monitoring_policy_id string Unique monitoring policy's identifier.
return List

MonitoringPoliciesPorts() public method

public MonitoringPoliciesPorts ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
return System

Show() public method

Returns information about a port of a monitoring policy.
public Show ( string monitoring_policy_id, string port_id ) : Ports
monitoring_policy_id string Unique monitoring policy's identifier.
port_id string Unique port's identifier.
return OneAndOne.POCO.Respones.MonitoringPolicies.Ports

Update() public method

Modifies a port from a monitoring policy.
public Update ( OneAndOne ports, string monitoring_policy_id, string port_id ) : MonitoringPoliciesResponse
ports OneAndOne
monitoring_policy_id string Unique monitoring policy's identifier.
port_id string Unique port's identifier.
return OneAndOne.POCO.Respones.MonitoringPolicies.MonitoringPoliciesResponse