Stay organized with collections
Save and categorize content based on your preferences.
Lists the folders that are direct descendants of supplied parent
resource. list() provides a strongly consistent view of the folders
underneath the specified parent resource. list() returns folders
sorted based upon the (ascending) lexical ordering of their
display_name. The caller must have resourcemanager.folders.list
permission on the identified parent.
Optional. The maximum number of folders to return in the response. The server can return fewer folders than requested. If unspecified, server picks an appropriate default.
pageToken
string
Optional. A pagination token returned from a previous call to ListFolders that indicates where this listing should continue from.
parent
string
Required. The resource name of the organization or folder whose folders are being listed. Must be of the form folders/{folder_id} or organizations/{org_id}. Access to this method is controlled by checking the resourcemanager.folders.list permission on the parent.
showDeleted
boolean
Optional. Controls whether folders in the DELETE_REQUESTED state should be returned. Defaults to false.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v3.folders.list\n\nLists the folders that are direct descendants of supplied parent\nresource. `list()` provides a strongly consistent view of the folders\nunderneath the specified parent resource. `list()` returns folders\nsorted based upon the (ascending) lexical ordering of their\ndisplay_name. The caller must have `resourcemanager.folders.list`\npermission on the identified parent.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`ListFoldersResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/cloudresourcemanager/v3/Overview#ListFoldersResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list). \n\n### YAML\n\n```yaml\n- list:\n call: googleapis.cloudresourcemanager.v3.folders.list\n args:\n pageSize: ...\n pageToken: ...\n parent: ...\n showDeleted: ...\n result: listResult\n```\n\n### JSON\n\n```json\n[\n {\n \"list\": {\n \"call\": \"googleapis.cloudresourcemanager.v3.folders.list\",\n \"args\": {\n \"pageSize\": \"...\",\n \"pageToken\": \"...\",\n \"parent\": \"...\",\n \"showDeleted\": \"...\"\n },\n \"result\": \"listResult\"\n }\n }\n]\n```"]]