Compute Cloud API, REST: DiskPlacementGroup.List
Retrieves the list of placement groups in the specified folder.
HTTP request
GET https://compute.api.cloud.yandex.net/compute/v1/diskPlacementGroups
Query parameters
Field |
Description |
folderId |
string Required field. ID of the folder to list placement groups in. |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, |
filter |
string A filter expression that filters resources listed in the response. Each condition has the form
|
orderBy |
string By which column the listing should be ordered and in which direction, |
Response
HTTP Code: 200 - OK
{
"diskPlacementGroups": [
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"zoneId": "string",
"status": "string",
// Includes only one of the fields `spreadPlacementStrategy`, `partitionPlacementStrategy`
"spreadPlacementStrategy": "object",
"partitionPlacementStrategy": {
"partitions": "string"
}
// end of the list of possible fields
}
],
"nextPageToken": "string"
}
Field |
Description |
diskPlacementGroups[] |
Lists placement groups for the specified folder. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
DiskPlacementGroup
Field |
Description |
id |
string ID of the placement group. |
folderId |
string ID of the folder that the placement group belongs to. |
createdAt |
string (date-time) Creation timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the placement group. |
description |
string Description of the placement group. |
labels |
object (map<string, string>) Resource labels as |
zoneId |
string ID of the availability zone where the placement group resides. |
status |
enum (Status) Current status of the placement group
|
spreadPlacementStrategy |
object Distribute disks over distinct failure domains. Includes only one of the fields Placement strategy. |
partitionPlacementStrategy |
DiskPartitionPlacementStrategy Distribute disks over partitions. Includes only one of the fields Placement strategy. |
DiskPartitionPlacementStrategy
Field |
Description |
partitions |
string (int64) |