Cloud Desktop API, REST: DesktopGroup.Update
Updates desktop group properties
HTTP request
PATCH https://cloud-desktop.api.yandexcloud.kz/cloud-desktop/v1/desktopGroups/{desktopGroupId}
Path parameters
|
Field |
Description |
|
desktopGroupId |
string Required field. |
Body parameters
{
"updateMask": "string",
"desktopImageId": "string",
"name": "string",
"description": "string",
"labels": "object",
"resourcesSpec": {
"memory": "string",
"cores": "string",
"coreFraction": "string"
},
"groupConfig": {
"minReadyDesktops": "string",
"maxDesktopsAmount": "string",
"desktopType": "string",
"members": [
{
"id": "string",
"type": "string"
}
]
},
"bootDiskSpec": {
"type": "string",
"size": "string"
},
"dataDiskSpec": {
"type": "string",
"size": "string"
},
// Includes only one of the fields `autoUpdatePolicy`, `manualUpdatePolicy`
"autoUpdatePolicy": "object",
"manualUpdatePolicy": "object"
// end of the list of possible fields
}
|
Field |
Description |
|
updateMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
|
desktopImageId |
string |
|
name |
string |
|
description |
string |
|
labels |
object (map<string, string>) |
|
resourcesSpec |
|
|
groupConfig |
Configuration of the desktop group. |
|
bootDiskSpec |
Boot disk specification of the desktop group. |
|
dataDiskSpec |
Data disk specification of the desktop group. |
|
autoUpdatePolicy |
object Includes only one of the fields Update policy of the desktop group. |
|
manualUpdatePolicy |
object Includes only one of the fields Update policy of the desktop group. |
ResourcesSpec
|
Field |
Description |
|
memory |
string (int64) RAM volume, in bytes. |
|
cores |
string (int64) Number of CPU cores. |
|
coreFraction |
string (int64) Baseline level of CPU performance with the ability to burst performance above that baseline level. |
DesktopGroupConfiguration
|
Field |
Description |
|
minReadyDesktops |
string (int64) Minimum number of ready desktops. |
|
maxDesktopsAmount |
string (int64) Maximum number of desktops. |
|
desktopType |
enum (DesktopType) Type of the desktop.
|
|
members[] |
List of members of the desktop group. |
Subject
|
Field |
Description |
|
id |
string Required field. ID of the subject. It can contain one of the following values:
|
|
type |
string Required field. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. |
DiskSpec
Disk specificaton.
|
Field |
Description |
|
type |
enum (Type) Required field. Type of disk.
|
|
size |
string (int64) Size of disk. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"desktopGroupId": "string"
},
// Includes only one of the fields `error`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
UpdateDesktopGroupMetadata
|
Field |
Description |
|
desktopGroupId |
string ID of the desktop group that is being updated. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |