Google Cloud Storage Default Object Access Controls API

The DefaultObjectAccessControls API from Google Cloud Storage — 2 operation(s) for defaultobjectaccesscontrols.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /storage/v1/b/{bucket}/defaultObjectAcl/{entity} Remove a bucket's default object ACL entry · Delete defaultObjectAccessControls #
Ask an LLM
“How do I remove a default object ACL entry from a bucket?”
“Can I delete one entity's default object access control on a bucket?”
Tell an agent destructive · confirm first
Delete the default object ACL entry {entity} from bucket {bucket}.
Remove default object access control {entity} in bucket {bucket}.
GET /storage/v1/b/{bucket}/defaultObjectAcl/{entity} Get a bucket's default object ACL entry · Get defaultObjectAccessControls #
Ask an LLM
“What role does a given entity have on a bucket's default object ACL?”
“Can I read one default object access control entry by entity?”
Tell an agent
Get the default object ACL entry for {entity} on bucket {bucket}.
Show default object access control {entity} in bucket {bucket}.
PATCH /storage/v1/b/{bucket}/defaultObjectAcl/{entity} Change a bucket's default object ACL entry · Patch defaultObjectAccessControls #
Ask an LLM
“Can I change just the role on a default object ACL entry without replacing it?”
“How do I patch an existing default object access control on a bucket?”
Tell an agent
Patch the default object ACL entry {entity} on bucket {bucket} to role {role}.
Change existing default object access control {entity} in bucket {bucket}.
PUT /storage/v1/b/{bucket}/defaultObjectAcl/{entity} Replace a bucket's default object ACL entry · Update defaultObjectAccessControls #
Ask an LLM
“How do I overwrite a default object ACL entry on a bucket?”
“Can I change the role of an entity on a bucket's default object ACL?”
Tell an agent
Replace the default object ACL entry {entity} on bucket {bucket} with role {role}.
Overwrite default object access control {entity} in bucket {bucket}.
POST /storage/v1/b/{bucket}/defaultObjectAcl Add a default object ACL entry to a bucket · Insert defaultObjectAccessControls #
Ask an LLM
“How do I give a new entity default access to objects in a bucket?”
“Can I add a default object ACL entry for a group on a bucket?”
Tell an agent
Add a default object ACL entry {entity} with role {role} to bucket {bucket}.
Create a default object access control {entity} in bucket {bucket}.
GET /storage/v1/b/{bucket}/defaultObjectAcl List a bucket's default object ACL entries · List defaultObjectAccessControls #
Ask an LLM
“Which entities have default object access on a bucket?”
“Can I list every default object ACL entry for a bucket?”
Tell an agent
List default object ACL entries for bucket {bucket}.
Show all default object access controls on bucket {bucket}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gcp-cloud-storage:gcp-cloud-storage-defaultobjectaccesscontrols-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gcp-cloud-storage-defaultobjectaccesscontrols-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Storage JSON Default Object Access Controls API
  version: v1
  description: Generated from Google's published Discovery document for Cloud Storage JSON API (storage v1, revision 20261107). 6 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://storage.googleapis.com
tags:
- name: DefaultObjectAccessControls
paths:
  /storage/v1/b/{bucket}/defaultObjectAcl/{entity}:
    delete:
      operationId: storage.defaultObjectAccessControls.delete
      summary: Delete defaultObjectAccessControls
      description: Permanently deletes the default object ACL entry for the specified entity on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: entity
        in: path
        required: true
        description: The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
        schema:
          type: string
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
    get:
      operationId: storage.defaultObjectAccessControls.get
      summary: Get defaultObjectAccessControls
      description: Returns the default object ACL entry for the specified entity on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: entity
        in: path
        required: true
        description: The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
        schema:
          type: string
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectAccessControl'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
    patch:
      operationId: storage.defaultObjectAccessControls.patch
      summary: Patch defaultObjectAccessControls
      description: Patches a default object ACL entry on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: entity
        in: path
        required: true
        description: The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
        schema:
          type: string
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectAccessControl'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectAccessControl'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
    put:
      operationId: storage.defaultObjectAccessControls.update
      summary: Update defaultObjectAccessControls
      description: Updates a default object ACL entry on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: entity
        in: path
        required: true
        description: The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
        schema:
          type: string
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectAccessControl'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectAccessControl'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
  /storage/v1/b/{bucket}/defaultObjectAcl:
    post:
      operationId: storage.defaultObjectAccessControls.insert
      summary: Insert defaultObjectAccessControls
      description: Creates a new default object ACL entry on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectAccessControl'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectAccessControl'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
    get:
      operationId: storage.defaultObjectAccessControls.list
      summary: List defaultObjectAccessControls
      description: Retrieves default object ACL entries on the specified bucket.
      parameters:
      - name: bucket
        in: path
        required: true
        description: Name of a bucket.
        schema:
          type: string
      - name: ifMetagenerationMatch
        in: query
        required: false
        description: If present, only return default ACL listing if the bucket's current metageneration matches this value.
        schema:
          type: string
          format: int64
      - name: ifMetagenerationNotMatch
        in: query
        required: false
        description: If present, only return default ACL listing if the bucket's current metageneration does not match the given value.
        schema:
          type: string
          format: int64
      - name: userProject
        in: query
        required: false
        description: The project to be billed for this request. Required for Requester Pays buckets.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectAccessControls'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/devstorage.full_control
      - apiKey: []
      tags:
      - DefaultObjectAccessControls
components:
  schemas:
    ObjectAccessControl:
      type: object
      description: An access-control entry.
      properties:
        bucket:
          type: string
          description: The name of the bucket.
        domain:
          type: string
          description: The domain associated with the entity, if any.
        email:
          type: string
          description: The email address associated with the entity, if any.
        entity:
          type: string
          description: "The entity holding the permission, in one of the following forms: \n- user-userId \n- user-email \n- group-groupId \n- group-email \n- domain-domain \n- project-team-projectId \n- allUsers \n- allAuthenticatedUsers Examples: \n- The user liz@example.com would be user-liz@example.com. \n- The group example@googlegroups.com would be group-example@googlegroups.com. \n- To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com."
        entityId:
          type: string
          description: The ID for the entity, if any.
        etag:
          type: string
          description: HTTP 1.1 Entity tag for the access-control entry.
        generation:
          type: string
          description: The content generation of the object, if applied to an object.
          format: int64
        id:
          type: string
          description: The ID of the access-control entry.
        kind:
          type: string
          description: The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
          default: storage#objectAccessControl
        object:
          type: string
          description: The name of the object, if applied to an object.
        projectTeam:
          type: object
          description: The project team associated with the entity, if any.
          properties:
            projectNumber:
              type: string
              description: The project number.
            team:
              type: string
              description: The team.
        role:
          type: string
          description: The access permission for the entity.
        selfLink:
          type: string
          description: The link to this access-control entry.
    ObjectAccessControls:
      type: object
      description: An access-control list.
      properties:
        items:
          type: array
          description: The list of items.
          items:
            $ref: '#/components/schemas/ObjectAccessControl'
        kind:
          type: string
          description: The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
          default: storage#objectAccessControls
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/cloud-platform: View and manage your data across Google Cloud Platform services
            https://www.googleapis.com/auth/cloud-platform.read-only: View your data across Google Cloud Platform services
            https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Google Cloud Storage
            https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
            https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Google Cloud Storage
externalDocs:
  url: https://developers.google.com/storage/docs/json_api/
x-provenance:
  method: harvested
  publisher: Google
  source: https://storage.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)