The ManagedFolder resource represents a managed folder in Cloud Storage. You can apply IAM policies on a managed folder to control access to the resources within the managed folder.
To try out the methods for this resource, see Methods.
Resource representations
{ "kind": "storage#managedFolder" "id": string, "selfLink": string, "name": string, "bucket": string, "createTime": datetime, "updateTime": datetime, "metageneration": long }
Property name | Value | Description | Notes |
---|---|---|---|
kind | string | The kind of item this is. For managed folders, this is always "storage#managedFolder ". | |
id | string | The ID of the managed folder, which is composed of the bucket name and managed folder name, expressed as a path. For example, example-bucket/example-dir/example-dir2/ . | |
selfLink | string | The canonical URL of the managed folder. For example, https://www.googleapis.com/storage/v1/b/example-bucket/managedFolders/example-dir/example-dir2/ . | |
name | string | The name of the managed folder, expressed as a path. For example, example_dir/example_dir2/ . | |
bucket | string | The name of the bucket that contains the managed folder. | |
createTime | datetime | The time at which the managed folder was created, in RFC 3339 format. | |
updateTime | datetime | The time at which the managed folder's metadata or IAM policy was last updated, in RFC 3339 format. | |
metageneration | long 1 | The metadata generation of the managed folder. |
Methods
- insert
- Create a managed folder.
- delete
- Permanently delete a managed folder.
- get
- View a managed folder.
- getIamPolicy
- View the IAM policy for a managed folder.
- list
- Retrieves a list of managed folders under a given bucket.
- setIamPolicy
- Update the IAM policy for a managed folder.
- testIamPermissions
- Tests a set of permissions on a managed folder to see which, if any, are held by the caller.