Compute Cloud API, gRPC: DiskPlacementGroupService.List
Retrieves the list of placement groups in the specified folder.
gRPC request
rpc List (ListDiskPlacementGroupsRequest) returns (ListDiskPlacementGroupsResponse)
ListDiskPlacementGroupsRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string",
"order_by": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list placement groups in. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
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
|
order_by |
string By which column the listing should be ordered and in which direction, |
ListDiskPlacementGroupsResponse
{
"disk_placement_groups": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"zone_id": "string",
"status": "Status",
// Includes only one of the fields `spread_placement_strategy`, `partition_placement_strategy`
"spread_placement_strategy": "DiskSpreadPlacementStrategy",
"partition_placement_strategy": {
"partitions": "int64"
}
// end of the list of possible fields
}
],
"next_page_token": "string"
}
Field |
Description |
disk_placement_groups[] |
Lists placement groups for the specified folder. |
next_page_token |
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. |
folder_id |
string ID of the folder that the placement group belongs to. |
created_at |
Creation timestamp in RFC3339 |
name |
string Name of the placement group. |
description |
string Description of the placement group. |
labels |
object (map<string, string>) Resource labels as |
zone_id |
string ID of the availability zone where the placement group resides. |
status |
enum Status Current status of the placement group
|
spread_placement_strategy |
Distribute disks over distinct failure domains. Includes only one of the fields Placement strategy. |
partition_placement_strategy |
DiskPartitionPlacementStrategy Distribute disks over partitions. Includes only one of the fields Placement strategy. |
DiskSpreadPlacementStrategy
Field |
Description |
Empty |
DiskPartitionPlacementStrategy
Field |
Description |
partitions |
int64 |