C# Class OneAndOne.Client.Endpoints.PublicIPs.PublicIPs

Inheritance: ResourceBase
显示文件 Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Public Methods

Method Description
Create ( CreatePublicIPRequest publicIP ) : PublicIPsResponse

Creates a new public IP.

Delete ( string ip_id ) : PublicIPsResponse

Removes a public IP.

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

Returns a list of your public IPs.

PublicIPs ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string ip_id ) : PublicIPsResponse

Returns information about a public IP.

Update ( string reverseDns, string ip_id ) : PublicIPsResponse

Modifies the reverse DNS of a public IP.

Method Details

Create() public method

Creates a new public IP.
public Create ( CreatePublicIPRequest publicIP ) : PublicIPsResponse
publicIP OneAndOne.POCO.Requests.PublicIPs.CreatePublicIPRequest
return OneAndOne.POCO.Respones.PublicIPs.PublicIPsResponse

Delete() public method

Removes a public IP.
public Delete ( string ip_id ) : PublicIPsResponse
ip_id string Unique IP's identifier.
return OneAndOne.POCO.Respones.PublicIPs.PublicIPsResponse

Get() public method

Returns a list of your public IPs.
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

PublicIPs() public method

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

Show() public method

Returns information about a public IP.
public Show ( string ip_id ) : PublicIPsResponse
ip_id string Unique IP's identifier.
return OneAndOne.POCO.Respones.PublicIPs.PublicIPsResponse

Update() public method

Modifies the reverse DNS of a public IP.
public Update ( string reverseDns, string ip_id ) : PublicIPsResponse
reverseDns string
ip_id string Unique IP's identifier.
return OneAndOne.POCO.Respones.PublicIPs.PublicIPsResponse