Resource Manager API, REST: Folder.List
Retrieves the list of Folder resources in the specified cloud.
HTTP request
GET https://resource-manager.api.cloud.yandex.net/resource-manager/v1/folders
Query parameters
|
Field |
Description |
|
cloudId |
string Required field. ID of the cloud to list folders in. |
|
pageSize |
string (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.
|
Response
HTTP Code: 200 - OK
{
"folders": [
{
"id": "string",
"cloudId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"status": "string"
}
],
"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 |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
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.
|