Cloud Desktop API, gRPC: DesktopImageService.List
Lists desktop images in the specified folder.
gRPC request
rpc List (ListDesktopImagesRequest) returns (ListDesktopImagesResponse)
ListDesktopImagesRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string",
"order_by": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list desktop images in. |
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 DesktopImage.name, DesktopImage.created_at and DesktopImage.status fields. |
ListDesktopImagesResponse
{
"desktop_images": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"status": "Status",
"name": "string",
"labels": "map<string, string>",
"storage_size": "int64",
"min_disk_size": "int64"
}
],
"next_page_token": "string"
}
Field |
Description |
desktop_images[] |
List of desktop images. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
DesktopImage
A desktop image resource.
Field |
Description |
id |
string ID of the image. |
folder_id |
string ID of the folder that the image belongs to. |
created_at |
Creation timestamp in RFC3339 |
status |
enum Status Status of the image.
|
name |
string Name of the image. |
labels |
object (map<string, string>) Description of the image. |
storage_size |
int64 Size of the image, specified in bytes. |
min_disk_size |
int64 Minimum disk size in bytes required to use the image. |