C# Class OneAndOne.Client.Endpoints.Servers.ServerHdds

Inheritance: ResourceBase
Show file Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Public Methods

Method Description
Create ( AddHddRequest hdds, string server_id ) : ServerResponse

Adds new hard disk(s) to the server.

Delete ( string server_id, string hdd_id ) : ServerResponse

Removes a server's hard disk.

Get ( string server_id ) : List

Returns a list of the server's hard disks.

ServerHdds ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string server_id, string hdd_id ) : Hdd

Returns information about a server's hard disk.

Update ( UpdateHddRequest hdds, string server_id, string hdd_id ) : ServerResponse

Adds new hard disk(s) to the server.

Method Details

Create() public method

Adds new hard disk(s) to the server.
public Create ( AddHddRequest hdds, string server_id ) : ServerResponse
hdds OneAndOne.POCO.Requests.Servers.AddHddRequest
server_id string Unique server's identifier.
return OneAndOne.POCO.Respones.Servers.ServerResponse

Delete() public method

Removes a server's hard disk.
public Delete ( string server_id, string hdd_id ) : ServerResponse
server_id string Unique server's identifier.
hdd_id string hdd_id: Unique hard disk's identifier.
return OneAndOne.POCO.Respones.Servers.ServerResponse

Get() public method

Returns a list of the server's hard disks.
public Get ( string server_id ) : List
server_id string Unique server's identifier.
return List

ServerHdds() public method

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

Show() public method

Returns information about a server's hard disk.
public Show ( string server_id, string hdd_id ) : Hdd
server_id string Unique server's identifier.
hdd_id string hdd_id: Unique hard disk's identifier.
return OneAndOne.POCO.Respones.Servers.Hdd

Update() public method

Adds new hard disk(s) to the server.
public Update ( UpdateHddRequest hdds, string server_id, string hdd_id ) : ServerResponse
hdds OneAndOne.POCO.Requests.Servers.UpdateHddRequest
server_id string Unique server's identifier.
hdd_id string
return OneAndOne.POCO.Respones.Servers.ServerResponse