Cloud Desktop API, REST: DesktopGroup.ListDesktops
Retrieves the list of desktops resources.
HTTP request
GET https://cloud-desktop.api.cloud.yandex.net/cloud-desktop/v1/desktopGroups/{desktopGroupId}/desktops
Path parameters
Field |
Description |
desktopGroupId |
string Required field. ID of the desktop group. |
Query parameters
Field |
Description |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters resources listed in the response.
|
orderBy |
string Sorting the list by Desktop.name, Desktop.createdAt and Desktop.status fields. |
Response
HTTP Code: 200 - OK
{
"desktops": [
{
"id": "string",
"folderId": "string",
"desktopGroupId": "string",
"createdAt": "string",
"status": "string",
"name": "string",
"resources": {
"memory": "string",
"cores": "string",
"coreFraction": "string"
},
"networkInterfaces": [
{
"networkId": "string",
"subnetId": "string"
}
],
"users": [
{
"subjectId": "string",
"subjectType": "string"
}
]
}
],
"nextPageToken": "string"
}
Field |
Description |
desktops[] |
List of desktops. |
nextPageToken |
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. |
folderId |
string ID of the folder that the desktop belongs to. |
desktopGroupId |
string ID of the desktop group that the desktop belongs to. |
createdAt |
string (date-time) Creation timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
status |
enum (Status) Status of the desktop.
|
name |
string Name of the desktop. |
resources |
Resources of the desktop. |
networkInterfaces[] |
|
users[] |
Resources
Field |
Description |
memory |
string (int64) |
cores |
string (int64) |
coreFraction |
string (int64) |
NetworkInterface
Field |
Description |
networkId |
string Required field. |
subnetId |
string Required field. |
User
Field |
Description |
subjectId |
string Required field. Identity of the access binding. |
subjectType |
string Required field. Type of the access binding, e.g. userAccount, serviceAccount, system. |