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

Inheritance: ResourceBase
Afficher le fichier Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Méthodes publiques

Méthode 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 méthode

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

CreatePrivateNetworkServers() public méthode

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.
Résultat OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworkServerResponse

Delete() public méthode

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

DeletePrivateNetworksServer() public méthode

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
Résultat OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse

Get() public méthode

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
Résultat List

GetPrivateNetworkServers() public méthode

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.
Résultat List

PrivateNetworks() public méthode

public PrivateNetworks ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
Résultat System

Show() public méthode

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

ShowPrivateNetworkServer() public méthode

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.
Résultat OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworkServerResponse

Update() public méthode

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.
Résultat OneAndOne.POCO.Respones.PrivateNetworks.PrivateNetworksResponse