C# 클래스 OneAndOne.Client.Endpoints.SharedStorages.SharedStorages

파일 보기 프로젝트 열기: 1and1/oneandone-cloudserver-sdk-dotnet

공개 메소드들

메소드 설명
Create ( CreateSharedStorage sharedStorage ) : SharedStoragesResponse

Creates a new shared storage.

CreateServerSharedStorages ( AttachSharedStorageServerRequest serverSharedStorage, string shared_storage_id ) : SharedStoragesResponse

Attaches servers to a shared storage.

Delete ( string shared_storage_id ) : SharedStoragesResponse

Removes a shared storage.

DeleteSharedStoragesServer ( string shared_storage_id, string server_id ) : SharedStoragesResponse

Unattaches a server from a shared storage.

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

Returns a list of your shared storages.

GetSharedStorageServers ( string shared_storage_id ) : List

Returns a list of the servers attached to a shared storage.

SharedStorages ( object _apiUrl = null, object _apiKey = null ) : System
Show ( string shared_storage_id ) : SharedStoragesResponse

Returns information about a shared storage.

ShowSharedStorageAccess ( ) : List

Returns the credentials for accessing the shared storages.

ShowSharedStoragesServer ( string shared_storage_id, string server_id ) : SharedStorageServerResponse

Returns information about a shared storage.

Update ( UpdateSharedStorageRequest sharedStorage, string shared_storage_id ) : SharedStoragesResponse

Modifies a shared storage.

UpdateSharedStorageAccess ( string password ) : List

Changes the password for accessing the shared storages.

메소드 상세

Create() 공개 메소드

Creates a new shared storage.
public Create ( CreateSharedStorage sharedStorage ) : SharedStoragesResponse
sharedStorage OneAndOne.POCO.Requests.SharedStorages.CreateSharedStorage
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

CreateServerSharedStorages() 공개 메소드

Attaches servers to a shared storage.
public CreateServerSharedStorages ( AttachSharedStorageServerRequest serverSharedStorage, string shared_storage_id ) : SharedStoragesResponse
serverSharedStorage OneAndOne.POCO.Requests.SharedStorages.AttachSharedStorageServerRequest
shared_storage_id string Unique shared storage's identifier.
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

Delete() 공개 메소드

Removes a shared storage.
public Delete ( string shared_storage_id ) : SharedStoragesResponse
shared_storage_id string Unique shared storage's identifier.
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

DeleteSharedStoragesServer() 공개 메소드

Unattaches a server from a shared storage.
public DeleteSharedStoragesServer ( string shared_storage_id, string server_id ) : SharedStoragesResponse
shared_storage_id string Unique shared storage's identifier.
server_id string
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

Get() 공개 메소드

Returns a list of your shared storages.
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

GetSharedStorageServers() 공개 메소드

Returns a list of the servers attached to a shared storage.
public GetSharedStorageServers ( string shared_storage_id ) : List
shared_storage_id string Unique shared storage's identifier.
리턴 List

SharedStorages() 공개 메소드

public SharedStorages ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
리턴 System

Show() 공개 메소드

Returns information about a shared storage.
public Show ( string shared_storage_id ) : SharedStoragesResponse
shared_storage_id string Unique shared storage's identifier.
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

ShowSharedStorageAccess() 공개 메소드

Returns the credentials for accessing the shared storages.
public ShowSharedStorageAccess ( ) : List
리턴 List

ShowSharedStoragesServer() 공개 메소드

Returns information about a shared storage.
public ShowSharedStoragesServer ( string shared_storage_id, string server_id ) : SharedStorageServerResponse
shared_storage_id string Unique shared storage's identifier.
server_id string Unique server's identifier.
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStorageServerResponse

Update() 공개 메소드

Modifies a shared storage.
public Update ( UpdateSharedStorageRequest sharedStorage, string shared_storage_id ) : SharedStoragesResponse
sharedStorage OneAndOne.POCO.Requests.SharedStorages.UpdateSharedStorageRequest
shared_storage_id string Unique shared storage's identifier.
리턴 OneAndOne.POCO.Respones.SharedStorages.SharedStoragesResponse

UpdateSharedStorageAccess() 공개 메소드

Changes the password for accessing the shared storages.
public UpdateSharedStorageAccess ( string password ) : List
password string password
리턴 List