Compute Cloud API, REST: PlacementGroup methods
A set of methods for managing placement groups.
JSON Representation
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
// includes only one of the fields `spreadPlacementStrategy`, `partitionPlacementStrategy`
"spreadPlacementStrategy": {},
"partitionPlacementStrategy": {
"partitions": "string"
},
// end of the list of possible fields
}
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 | string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
name | string Name of the placement group. The name is unique within the folder. |
description | string Description of the placement group. 0-256 characters long. |
labels | object Placement group labels as |
spreadPlacementStrategy | object includes only one of the fields spreadPlacementStrategy , partitionPlacementStrategy This is an empty structure that must be passed to explicitly specify the required placement strategy. |
partitionPlacementStrategy | object includes only one of the fields spreadPlacementStrategy , partitionPlacementStrategy |
partitionPlacementStrategy. partitions |
string (int64) Acceptable values are 2 to 5, inclusive. |
Methods
Method | Description |
---|---|
create | Creates a placement group in the specified folder. |
delete | Deletes the specified placement group. |
get | Returns the specified placement group. |
list | Retrieves the list of placement groups in the specified folder. |
listAccessBindings | Lists access bindings for the placement group. |
listInstances | Lists instances for the specified placement group. |
listOperations | Lists operations for the specified placement group. |
setAccessBindings | Sets access bindings for the placement group. |
update | Updates the specified placement group. |
updateAccessBindings | Updates access bindings for the placement group. |