Compute Cloud API, gRPC: DiskPlacementGroupService.List
Retrieves the list of placement groups in the specified folder.
gRPC request
rpc List (ListDiskPlacementGroupsRequest) returns (ListDiskPlacementGroupsResponse)
ListDiskPlacementGroupsRequest
{
"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. |
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, |
ListDiskPlacementGroupsResponse
{
"diskPlacementGroups": [
{
"id": "string",
"folderId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"zoneId": "string",
"status": "Status",
// Includes only one of the fields `spreadPlacementStrategy`, `partitionPlacementStrategy`
"spreadPlacementStrategy": "DiskSpreadPlacementStrategy",
"partitionPlacementStrategy": {
"partitions": "int64"
}
// 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 |
Creation timestamp in RFC3339 |
name |
string Name of the placement group. |
description |
string Description of the placement group. |
labels |
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 |
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. |
DiskSpreadPlacementStrategy
Field |
Description |
Empty |
DiskPartitionPlacementStrategy
Field |
Description |
partitions |
int64 |