Managed Service for YDB API, gRPC: StorageTypeService
Статья создана
Обновлена 13 декабря 2022 г.
Call | Description |
---|---|
Get | Returns the specified storage types. |
List | Returns the list of available storage types. |
Calls StorageTypeService
Get
Returns the specified storage types.
rpc Get (GetStorageTypeRequest) returns (StorageType)
GetStorageTypeRequest
Field | Description |
---|---|
storage_type_id | string Required. Required. ID of the storage type to return. |
StorageType
Field | Description |
---|---|
id | string |
device_type | string |
redundancy_type | string |
List
Returns the list of available storage types.
rpc List (ListStorageTypesRequest) returns (ListStorageTypesResponse)
ListStorageTypesRequest
Field | Description |
---|---|
page_size | int64 The maximum number of results per page that should be returned. If the number of available results is larger than page_size , the service returns a next_page_token that can be used to get the next page of results in subsequent ListStorageTypes requests. Acceptable values are 0 to 1000, inclusive. Default value: 100. Acceptable values are 0 to 1000, inclusive. |
page_token | string Page token. Set page_token to the next_page_token returned by a previous ListStorageTypes request to get the next page of results. The maximum string length in characters is 100. |
ListStorageTypesResponse
Field | Description |
---|---|
storage_types[] | StorageType Requested list of storage types. |
next_page_token | string This token allows you to get the next page of results for ListStorageTypes requests, if the number of results is larger than page_size specified in the request. To get the next page, specify the value of next_page_token as a value for the page_token parameter in the next ListStorageTypes request. Subsequent ListStorageTypes requests will have their own next_page_token to continue paging through the results. |
StorageType
Field | Description |
---|---|
id | string |
device_type | string |
redundancy_type | string |