REST Resource: folders

Resource: Folder

A folder in an organization's resource hierarchy, used to organize that organization's resources.

JSON representation
{
 "name": string,
 "parent": string,
 "displayName": string,
 "state": enum (State ),
 "createTime": string,
 "updateTime": string,
 "deleteTime": string,
 "etag": string,
 "tags": {
 string: string,
 ...
 },
 "configuredCapabilities": [
 string
 ],
 "managementProject": string
}
Fields
name

string

Identifier. The resource name of the folder. Its format is folders/{folder_id}, for example: "folders/1234".

parent

string

Required. The folder's parent's resource name. Updates to the folder's parent must be performed using folders.move .

displayName

string

The folder's display name. A folder's display name must be unique amongst its siblings. For example, no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.

state

enum (State )

Output only. The lifecycle state of the folder. Updates to the state must be performed using folders.delete and folders.undelete .

createTime

string (Timestamp format)

Output only. Timestamp when the folder was created.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. Timestamp when the folder was last modified.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

deleteTime

string (Timestamp format)

Output only. Timestamp when the folder was requested to be deleted.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

etag

string

Output only. A checksum computed by the server based on the current value of the folder resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

tags

map (key: string, value: string)

Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as " : ". For example: "123/environment" : "production", "123/costCenter" : "marketing"

Note: Currently this field is in Preview.

configuredCapabilities[]

string

Output only. Optional capabilities configured for this folder (via capabilities.patch API). Example: folders/123/capabilities/app-management.

managementProject

string

Output only. Management Project associated with this folder (if app-management capability is enabled). Example: projects/google-mp-123 OUTPUT ONLY.

State

Folder lifecycle states.

Enums
STATE_UNSPECIFIED Unspecified state.
ACTIVE The normal and active state.
DELETE_REQUESTED The folder has been marked for deletion by the user.

Methods

create

Creates a folder in the resource hierarchy.

delete

Requests deletion of a folder.

get

Retrieves a folder identified by the supplied resource name.

getIamPolicy

Gets the access control policy for a folder.

list

Lists the folders that are direct descendants of supplied parent resource.

move

Moves a folder under a new resource parent.

patch

Updates a folder, changing its display_name.
Search for folders that match specific filter criteria.

setIamPolicy

Sets the access control policy on a folder, replacing any existing policy.

testIamPermissions

Returns permissions that a caller has on the specified folder.

undelete

Cancels the deletion request for a folder.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月11日 UTC.