objectAccessControls

PUT /b/{bucket}/o/{object}/acl/{entity}

Changed on

Updates an ACL entry on the specified object.

Request

  • Base URL
    https://storage.googleapis.com/storage/v1
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/devstorage.full_control
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/devstorage.full_control

Path parameters

bucket, string required

Name of a bucket.

object, string required

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

entity, string required

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

Query parameters

alt, 'json' | 'media'

Data format for the response.

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

uploadType, string

Upload protocol for media (e.g. "media", "multipart", "resumable").

userIp, string

Deprecated. Please use quotaUser instead.

generation, string int64

If present, selects a specific revision of this object (as opposed to the latest version, the default).

userProject, string

The project to be billed for this request. Required for Requester Pays buckets.

Request body

ObjectAccessControl required

An access-control entry.

bucket, string

The name of the bucket.

domain, string

The domain associated with the entity, if any.

email, string

The email address associated with the entity, if any.

entity, string

The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entityId, string

The ID for the entity, if any.

etag, string

HTTP 1.1 Entity tag for the access-control entry.

generation, string int64

The content generation of the object, if applied to an object.

id, string

The ID of the access-control entry.

kind, string

The kind of item this is. For object access control entries, this is always storage#objectAccessControl.

object, string

The name of the object, if applied to an object.

projectTeam, object

The project team associated with the entity, if any.

role, string

The access permission for the entity.

selfLink, string

The link to this access-control entry.

Response

Successful response

ObjectAccessControl required

An access-control entry.

bucket, string

The name of the bucket.

domain, string

The domain associated with the entity, if any.

email, string

The email address associated with the entity, if any.

entity, string

The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entityId, string

The ID for the entity, if any.

etag, string

HTTP 1.1 Entity tag for the access-control entry.

generation, string int64

The content generation of the object, if applied to an object.

id, string

The ID of the access-control entry.

kind, string

The kind of item this is. For object access control entries, this is always storage#objectAccessControl.

object, string

The name of the object, if applied to an object.

projectTeam, object

The project team associated with the entity, if any.

role, string

The access permission for the entity.

selfLink, string

The link to this access-control entry.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/devstorage.full_control was removed from the endpoint's security scheme Oauth2

    1 more change in this revision