Cloud Desktop API, gRPC: DesktopService.Create
Creates desktop in the specified folder.
gRPC request
rpc Create (CreateDesktopRequest) returns (operation.Operation)
CreateDesktopRequest
{
"desktop_group_id": "string",
"subnet_id": "string",
"users": [
{
"subject_id": "string",
"subject_type": "string"
}
]
}
|
Field |
Description |
|
desktop_group_id |
string Required field. ID of the desktop group. |
|
subnet_id |
string ID of the subnet for desktop. |
|
users[] |
List of users. |
User
|
Field |
Description |
|
subject_id |
string Required field. Identity of the access binding. |
|
subject_type |
string Required field. Type of the access binding, e.g. userAccount, serviceAccount, system. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"desktop_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"desktop_group_id": "string",
"created_at": "google.protobuf.Timestamp",
"status": "Status",
"name": "string",
"resources": {
"memory": "int64",
"cores": "int64",
"core_fraction": "int64"
},
"network_interfaces": [
{
"network_id": "string",
"subnet_id": "string"
}
],
"users": [
{
"subject_id": "string",
"subject_type": "string"
}
],
"labels": "map<string, string>"
}
// 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. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool 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. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateDesktopMetadata
|
Field |
Description |
|
desktop_id |
string ID of the desktop that is being created. |
Desktop
A desktop resource.
|
Field |
Description |
|
id |
string Desktop ID. |
|
folder_id |
string ID of the folder that the desktop belongs to. |
|
desktop_group_id |
string ID of the desktop group that the desktop belongs to. |
|
created_at |
Creation timestamp in RFC3339 |
|
status |
enum Status Status of the desktop.
|
|
name |
string Name of the desktop. |
|
resources |
Resources of the desktop. |
|
network_interfaces[] |
|
|
users[] |
|
|
labels |
object (map<string, string>) Labels of the desktop. |
Resources
|
Field |
Description |
|
memory |
int64 |
|
cores |
int64 |
|
core_fraction |
int64 |
NetworkInterface
|
Field |
Description |
|
network_id |
string Required field. |
|
subnet_id |
string Required field. |
User
|
Field |
Description |
|
subject_id |
string Required field. Identity of the access binding. |
|
subject_type |
string Required field. Type of the access binding, e.g. userAccount, serviceAccount, system. |