C# Class OneAndOne.Client.Endpoints.Servers.ServerIps

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

Public Methods

Method Description
Create ( CreateServerIPRequest ip, string server_id ) : ServerResponse

Adds a new IP to the server.

CreateLoadBalancer ( string server_id, string ip_id, string loadBalancerId ) : ServerResponse

Adds a new load balancer to the IP

Delete ( string server_id, string ip_id, bool Keep ) : ServerResponse

Releases an IP and optionally removes it

DeleteFirewallPolicy ( string server_id, string ip_id ) : ServerResponse

Removes firewall policy from the IP

DeleteLoadBalancer ( string server_id, string ip_id, string load_balancer_id ) : ServerResponse

Removes load balancer from the IP

Get ( string server_id ) : List

Returns a list of the server's IPs.

GetFirewallPolicies ( string server_id, string ip_id ) : List

Lists firewall policies assigned to the IP

GetLoadBalancer ( string server_id, string ip_id ) : List

Lists all load balancers assigned to the IP

ServerIps ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string server_id, string ip_id ) : IpAddress

Returns information about a server's IP.

UpdateFirewallPolicy ( string server_id, string ip_id, string policy_id ) : ServerResponse

Adds a new firewall policy to the IP

Method Details

Create() public method

Adds a new IP to the server.
public Create ( CreateServerIPRequest ip, string server_id ) : ServerResponse
ip OneAndOne.POCO.Requests.Servers.CreateServerIPRequest
server_id string Unique server's identifier.
return OneAndOne.POCO.Respones.Servers.ServerResponse

CreateLoadBalancer() public method

Adds a new load balancer to the IP
public CreateLoadBalancer ( string server_id, string ip_id, string loadBalancerId ) : ServerResponse
server_id string Unique server's identifier.
ip_id string Unique server's identifier.
loadBalancerId string
return OneAndOne.POCO.Respones.Servers.ServerResponse

Delete() public method

Releases an IP and optionally removes it
public Delete ( string server_id, string ip_id, bool Keep ) : ServerResponse
server_id string Unique server's identifier.
ip_id string ip_id: required (string ) Unique IP's identifier.
Keep bool Set true for releasing the IP without removing it
return OneAndOne.POCO.Respones.Servers.ServerResponse

DeleteFirewallPolicy() public method

Removes firewall policy from the IP
public DeleteFirewallPolicy ( string server_id, string ip_id ) : ServerResponse
server_id string Unique server's identifier.
ip_id string ip_id: required (string ) Unique IP's identifier.
return OneAndOne.POCO.Respones.Servers.ServerResponse

DeleteLoadBalancer() public method

Removes load balancer from the IP
public DeleteLoadBalancer ( string server_id, string ip_id, string load_balancer_id ) : ServerResponse
server_id string Unique server's identifier.
ip_id string required (string ) Unique IP's identifier.
load_balancer_id string required (string ) Unique load balancers's identifier.
return OneAndOne.POCO.Respones.Servers.ServerResponse

Get() public method

Returns a list of the server's IPs.
public Get ( string server_id ) : List
server_id string Unique server's identifier.
return List

GetFirewallPolicies() public method

Lists firewall policies assigned to the IP
public GetFirewallPolicies ( string server_id, string ip_id ) : List
server_id string Unique server's identifier.
ip_id string Unique server's identifier.
return List

GetLoadBalancer() public method

Lists all load balancers assigned to the IP
public GetLoadBalancer ( string server_id, string ip_id ) : List
server_id string Unique server's identifier.
ip_id string Unique server's identifier.
return List

ServerIps() public method

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

Show() public method

Returns information about a server's IP.
public Show ( string server_id, string ip_id ) : IpAddress
server_id string Unique server's identifier.
ip_id string ip_id: required (string ) Unique IP's identifier.
return OneAndOne.POCO.Respones.Servers.IpAddress

UpdateFirewallPolicy() public method

Adds a new firewall policy to the IP
public UpdateFirewallPolicy ( string server_id, string ip_id, string policy_id ) : ServerResponse
server_id string Unique server's identifier.
ip_id string ip: required (string ) Unique IP's identifier.
policy_id string
return OneAndOne.POCO.Respones.Servers.ServerResponse