Resource Manager API, gRPC: FolderService.List
Retrieves the list of Folder resources in the specified cloud.
gRPC request
rpc List (ListFoldersRequest) returns (ListFoldersResponse)
ListFoldersRequest
{
"cloud_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
cloud_id |
string Required field. ID of the cloud to list folders in. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. Set |
filter |
string A filter expression that filters resources listed in the response.
|
ListFoldersResponse
{
"folders": [
{
"id": "string",
"cloud_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"status": "Status"
}
],
"next_page_token": "string"
}
Field |
Description |
folders[] |
List of Folder resources. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
Folder
A Folder resource. For more information, see Folder.
Field |
Description |
id |
string ID of the folder. |
cloud_id |
string ID of the cloud that the folder belongs to. |
created_at |
Creation timestamp. |
name |
string Name of the folder. |
description |
string Description of the folder. 0-256 characters long. |
labels |
object (map<string, string>) Resource labels as |
status |
enum Status Status of the folder.
|