Cloud Desktop API, gRPC: DesktopGroupService.ListDesktops
Retrieves the list of desktops resources.
gRPC request
rpc ListDesktops (ListDesktopGroupDesktopsRequest) returns (ListDesktopGroupDesktopsResponse)
ListDesktopGroupDesktopsRequest
{
"desktop_group_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string",
"order_by": "string"
}
Field |
Description |
desktop_group_id |
string Required field. ID of the desktop group. |
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, set |
filter |
string A filter expression that filters resources listed in the response.
|
order_by |
string Sorting the list by Desktop.name, Desktop.created_at and Desktop.status fields. |
ListDesktopGroupDesktopsResponse
{
"desktops": [
{
"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"
}
]
}
],
"next_page_token": "string"
}
Field |
Description |
desktops[] |
List of desktops. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
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[] |
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. |