C# Class OneAndOne.Client.Endpoints.PrivateNetworks.PrivateNetworks

Inheritance: ResourceBase
Exibir arquivo Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Public Methods

Method Description
Create ( CreatePrivateNetworkRequest privateNetwork ) : PrivateNetworksResponse

Creates a new private network.

CreatePrivateNetworkServers ( AttachPrivateNetworkServersRequest privateNetworkServers, string private_network_id ) : PrivateNetworkServerResponse

Attaches servers to a private network.

Delete ( string private_network_id ) : PrivateNetworksResponse

Removes a private network.

DeletePrivateNetworksServer ( string private_network_id, string server_id ) : PrivateNetworksResponse

Unattaches a server from a private network.

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

Returns a list of your private networks.

GetPrivateNetworkServers ( string private_network_id ) : List

Returns a list of the servers attached to a private network.

PrivateNetworks ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string private_network_id ) : PrivateNetworksResponse

Returns information about a private network.

ShowPrivateNetworkServer ( string private_network_id, string server_id ) : PrivateNetworkServerResponse

Returns information about a server attached to a private network.

Update ( UpdatePrivateNetworkRequest privateNetwork, string private_network_id ) : PrivateNetworksResponse

Modifies a private network.

Method Details

Create() public method

Creates a new private network.
public Create ( CreatePrivateNetworkRequest privateNetwork ) : PrivateNetworksResponse
privateNetwork OneAndOne.POCO.Requests.PrivateNetworks.CreatePrivateNetworkRequest
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse

CreatePrivateNetworkServers() public method

Attaches servers to a private network.
public CreatePrivateNetworkServers ( AttachPrivateNetworkServersRequest privateNetworkServers, string private_network_id ) : PrivateNetworkServerResponse
privateNetworkServers OneAndOne.POCO.Requests.PrivateNetworks.AttachPrivateNetworkServersRequest
private_network_id string Unique private network's identifier.
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworkServerResponse

Delete() public method

Removes a private network.
public Delete ( string private_network_id ) : PrivateNetworksResponse
private_network_id string Unique private network's identifier.
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse

DeletePrivateNetworksServer() public method

Unattaches a server from a private network.
public DeletePrivateNetworksServer ( string private_network_id, string server_id ) : PrivateNetworksResponse
private_network_id string Unique private network's identifier.
server_id string
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse

Get() public method

Returns a list of your private networks.
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

GetPrivateNetworkServers() public method

Returns a list of the servers attached to a private network.
public GetPrivateNetworkServers ( string private_network_id ) : List
private_network_id string Unique private network's identifier.
return List

PrivateNetworks() public method

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

Show() public method

Returns information about a private network.
public Show ( string private_network_id ) : PrivateNetworksResponse
private_network_id string Unique private network's identifier.
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse

ShowPrivateNetworkServer() public method

Returns information about a server attached to a private network.
public ShowPrivateNetworkServer ( string private_network_id, string server_id ) : PrivateNetworkServerResponse
private_network_id string Unique private network's identifier.
server_id string Unique server's identifier.
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworkServerResponse

Update() public method

Modifies a private network.
public Update ( UpdatePrivateNetworkRequest privateNetwork, string private_network_id ) : PrivateNetworksResponse
privateNetwork OneAndOne.POCO.Requests.PrivateNetworks.UpdatePrivateNetworkRequest
private_network_id string Unique private network's identifier.
return OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse