Compute Cloud API, gRPC: PlacementGroupService.List
Retrieves the list of placement groups in the specified folder.
gRPC request
rpc List (ListPlacementGroupsRequest) returns (ListPlacementGroupsResponse)
ListPlacementGroupsRequest
{
"folderId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string",
"orderBy": "string"
}
Field |
Description |
folderId |
string Required field. ID of the folder to list placement groups in. To get the folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
pageSize |
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, |
ListPlacementGroupsResponse
{
"placementGroups": [
{
"id": "string",
"folderId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
// Includes only one of the fields `spreadPlacementStrategy`, `partitionPlacementStrategy`
"spreadPlacementStrategy": "SpreadPlacementStrategy",
"partitionPlacementStrategy": {
"partitions": "int64"
}
// end of the list of possible fields
}
],
"nextPageToken": "string"
}
Field |
Description |
placementGroups[] |
Lists placement groups in the specified folder. |
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
PlacementGroup
Field |
Description |
id |
string ID of the placement group. Generated at creation time. |
folderId |
string ID of the folder that the placement group belongs to. |
createdAt |
Creation timestamp. |
name |
string Name of the placement group. |
description |
string Description of the placement group. 0-256 characters long. |
labels |
string Placement group labels as |
spreadPlacementStrategy |
Anti-affinity placement strategy ( Includes only one of the fields Placement strategy. To specify a placement strategy, send the corresponding |
partitionPlacementStrategy |
Includes only one of the fields Placement strategy. To specify a placement strategy, send the corresponding |
SpreadPlacementStrategy
This is an empty structure that must be passed to explicitly
specify the required placement strategy.
Field |
Description |
Empty |
PartitionPlacementStrategy
Field |
Description |
partitions |
int64 |