C# Класс OneAndOne.Client.Endpoints.LoadBalancers.LoadBalancer

Наследование: ResourceBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Create() публичный Метод

Creates a new load balancer.
public Create ( CreateLoadBalancerRequest loadBalancer ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
loadBalancer OneAndOne.POCO.Requests.LoadBalancer.CreateLoadBalancerRequest
Результат OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

CreateLoadBalancerRule() публичный Метод

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.
Результат LoadBalancerResponse

CreateLoadBalancerServerIPs() публичный Метод

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.
Результат LoadBalancerResponse

Delete() публичный Метод

Removes a load balancer.
public Delete ( string load_balancer_id ) : OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse
load_balancer_id string Unique load balancer's identifier.
Результат OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

DeleteLoadBalancerRules() публичный Метод

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.
Результат LoadBalancerResponse

DeleteLoadBalancerServerIP() публичный Метод

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.
Результат LoadBalancerResponse

Get() публичный Метод

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
Результат List

GetLoadBalancerRules() публичный Метод

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.
Результат List

GetLoadBalancerServerIps() публичный Метод

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.
Результат List

LoadBalancer() публичный Метод

public LoadBalancer ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
Результат System

Show() публичный Метод

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.
Результат OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse

ShowLoadBalancerRule() публичный Метод

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.
Результат LoadBalancerRulesResponse

ShowLoadBalancerServerIp() публичный Метод

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.
Результат LoadBalancerResponse

Update() публичный Метод

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.
Результат OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse