C# Class OneAndOne.Client.Endpoints.LoadBalancers.LoadBalancer

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

Public Methods

Method Description
Create ( CreateLoadBalancerRequest loadBalancer ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

Creates a new load balancer.

CreateLoadBalancerRule ( AddLoadBalancerRuleRequest rule, string load_balancer_id ) : LoadBalancerResponse

Adds new rules to a load balancer.

CreateLoadBalancerServerIPs ( AssignLoadBalancerServerIpsRequest serverIps, string load_balancer_id ) : LoadBalancerResponse

Assigns servers/IPs to a load balancer.

Delete ( string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

Removes a load balancer.

DeleteLoadBalancerRules ( string load_balancer_id, string rule_id ) : LoadBalancerResponse

Removes a rule from a load balancer.

DeleteLoadBalancerServerIP ( string load_balancer_id, string server_ip ) : LoadBalancerResponse

Unassigns a server/IP from a load balancer.

Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List

Returns a list of your load balancers.

GetLoadBalancerRules ( string load_balancer_id ) : List

Returns a list of the rules of a load balancer.

GetLoadBalancerServerIps ( string load_balancer_id ) : List

Returns a list of the servers/IPs attached to a load balancer.

LoadBalancer ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

Returns information about a load balancer.

ShowLoadBalancerRule ( string load_balancer_id, string rule_id ) : LoadBalancerRulesResponse

Returns information about a rule of a load balancer.

ShowLoadBalancerServerIp ( string load_balancer_id, string server_ip ) : LoadBalancerResponse

Returns information about a server/IP assigned to a load balancer.

Update ( UpdateLoadBalancerRequest loadBalancer, string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

Modifies a load balancer.

Method Details

Create() public method

Creates a new load balancer.
public Create ( CreateLoadBalancerRequest loadBalancer ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
loadBalancer OneAndOne.POCO.Requests.LoadBalancer.CreateLoadBalancerRequest
return OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

CreateLoadBalancerRule() public method

Adds new rules to a load balancer.
public CreateLoadBalancerRule ( AddLoadBalancerRuleRequest rule, string load_balancer_id ) : LoadBalancerResponse
rule OneAndOne.POCO.Requests.LoadBalancer.AddLoadBalancerRuleRequest
load_balancer_id string Unique load balancer's identifier.
return LoadBalancerResponse

CreateLoadBalancerServerIPs() public method

Assigns servers/IPs to a load balancer.
public CreateLoadBalancerServerIPs ( AssignLoadBalancerServerIpsRequest serverIps, string load_balancer_id ) : LoadBalancerResponse
serverIps OneAndOne.POCO.Requests.LoadBalancer.AssignLoadBalancerServerIpsRequest
load_balancer_id string Unique load balancer's identifier.
return LoadBalancerResponse

Delete() public method

Removes a load balancer.
public Delete ( string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
load_balancer_id string Unique load balancer's identifier.
return OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

DeleteLoadBalancerRules() public method

Removes a rule from a load balancer.
public DeleteLoadBalancerRules ( string load_balancer_id, string rule_id ) : LoadBalancerResponse
load_balancer_id string Unique load balancer's identifier..
rule_id string Unique rule's identifier.
return LoadBalancerResponse

DeleteLoadBalancerServerIP() public method

Unassigns a server/IP from a load balancer.
public DeleteLoadBalancerServerIP ( string load_balancer_id, string server_ip ) : LoadBalancerResponse
load_balancer_id string Unique firewall's identifier.
server_ip string Unique IP's identifier.
return LoadBalancerResponse

Get() public method

Returns a list of your load balancers.
public Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List
page int Allows to use pagination. Sets the number of servers that will be shown in each page.
perPage int Current page to show.
sort string Allows to sort the result by priority:sort=name retrieves a list of elements ordered by their names.sort=-creation_date retrieves a list of elements ordered according to their creation date in descending order of priority.
query string Allows to search one string in the response and return the elements that contain it. In order to specify the string use parameter q: q=My server
fields string Returns only the parameters requested: fields=id,name,description,hardware.ram
return List

GetLoadBalancerRules() public method

Returns a list of the rules of a load balancer.
public GetLoadBalancerRules ( string load_balancer_id ) : List
load_balancer_id string Unique load balancer's identifier.
return List

GetLoadBalancerServerIps() public method

Returns a list of the servers/IPs attached to a load balancer.
public GetLoadBalancerServerIps ( string load_balancer_id ) : List
load_balancer_id string Unique load balancer's identifier.
return List

LoadBalancer() public method

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

Show() public method

Returns information about a load balancer.
public Show ( string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
load_balancer_id string Returns information about a load balancer.
return OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

ShowLoadBalancerRule() public method

Returns information about a rule of a load balancer.
public ShowLoadBalancerRule ( string load_balancer_id, string rule_id ) : LoadBalancerRulesResponse
load_balancer_id string Unique load balancer's identifier.
rule_id string Unique rule's identifier.
return LoadBalancerRulesResponse

ShowLoadBalancerServerIp() public method

Returns information about a server/IP assigned to a load balancer.
public ShowLoadBalancerServerIp ( string load_balancer_id, string server_ip ) : LoadBalancerResponse
load_balancer_id string Unique load balancer's identifier.
server_ip string Unique IP's identifier.
return LoadBalancerResponse

Update() public method

Modifies a load balancer.
public Update ( UpdateLoadBalancerRequest loadBalancer, string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
loadBalancer OneAndOne.POCO.Requests.LoadBalancer.UpdateLoadBalancerRequest
load_balancer_id string Unique load balancer's identifier.
return OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse