Resource Manager API, gRPC: FolderService.List
Retrieves the list of Folder resources in the specified cloud.
gRPC request
rpc List (ListFoldersRequest) returns (ListFoldersResponse)
ListFoldersRequest
{
"cloudId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
cloudId |
string Required field. ID of the cloud to list folders in. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. Set |
filter |
string A filter expression that filters resources listed in the response.
|
ListFoldersResponse
{
"folders": [
{
"id": "string",
"cloudId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"status": "Status"
}
],
"nextPageToken": "string"
}
Field |
Description |
folders[] |
List of Folder resources. |
nextPageToken |
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. |
cloudId |
string ID of the cloud that the folder belongs to. |
createdAt |
Creation timestamp. |
name |
string Name of the folder. |
description |
string Description of the folder. 0-256 characters long. |
labels |
string Resource labels as |
status |
enum Status Status of the folder.
|