Google Cloud Binary Authorization Cloud Binary Authorization Systempolicy API

The Cloud Binary Authorization Systempolicy API from Google Cloud Binary Authorization — 1 operation(s) for cloud binary authorization systempolicy.

GitHub OpenAPI

Operations 1

GET /v1/locations/{locationsId}/policy Get policy systempolicy #

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/google-cloud-binary-authorization:google-cloud-binary-authorization-systempolicy-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

google-cloud-binary-authorization-systempolicy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Binary Authorization Systempolicy API
  version: v1
  description: Generated from Google's published Discovery document for Binary Authorization API (binaryauthorization v1, revision 20261107). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://binaryauthorization.googleapis.com
tags:
- name: Systempolicy
paths:
  /v1/locations/{locationsId}/policy:
    get:
      operationId: binaryauthorization.systempolicy.getPolicy
      summary: Get policy systempolicy
      description: Gets the current system policy in the specified location.
      parameters:
      - name: locationsId
        in: path
        required: true
        description: Resource name segment (locationsId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        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
      - apiKey: []
      tags:
      - Systempolicy
components:
  schemas:
    AdmissionRule:
      description: An admission rule specifies either that all container images used in a pod creation request must be attested to by one or more attestors, that all pod creations will be allowed, or that all pod creations will be denied. Images matching an admission allowlist pattern are exempted from admission rules and will never block a pod creation.
      properties:
        enforcementMode:
          description: Required. The action when a pod creation is denied by the admission rule.
          type: string
          enum:
          - ENFORCEMENT_MODE_UNSPECIFIED
          - ENFORCED_BLOCK_AND_AUDIT_LOG
          - DRYRUN_AUDIT_LOG_ONLY
        requireAttestationsBy:
          description: 'Optional. The resource names of the attestors that must attest to a container image, in the format `projects/*/attestors/*`. Each attestor must exist before a policy can reference it. To add an attestor to a policy the principal issuing the policy change request must be able to read the attestor resource. Note: this field must be non-empty when the `evaluation_mode` field specifies `REQUIRE_ATTESTATION`, otherwise it must be empty.'
          type: array
          items:
            type: string
        evaluationMode:
          type: string
          enum:
          - EVALUATION_MODE_UNSPECIFIED
          - ALWAYS_ALLOW
          - REQUIRE_ATTESTATION
          - ALWAYS_DENY
          description: Required. How this admission rule will be evaluated.
      type: object
    AdmissionWhitelistPattern:
      properties:
        namePattern:
          description: An image name pattern to allowlist, in the form `registry/path/to/image`. This supports a trailing `*` wildcard, but this is allowed only in text after the `registry/` part. This also supports a trailing `**` wildcard which matches subdirectories of a given entry.
          type: string
      description: An admission allowlist pattern exempts images from checks by admission rules.
      type: object
    Policy:
      description: A policy for container image binary authorization.
      properties:
        kubernetesNamespaceAdmissionRules:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AdmissionRule'
          description: 'Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format: `[a-z.-]+`, e.g. `some-namespace`'
        defaultAdmissionRule:
          $ref: '#/components/schemas/AdmissionRule'
          description: Required. Default admission rule for a cluster without a per-cluster, per- kubernetes-service-account, or per-istio-service-identity admission rule.
        description:
          type: string
          description: Optional. A descriptive comment.
        name:
          readOnly: true
          type: string
          description: Output only. The resource name, in the format `projects/*/policy`. There is at most one policy per project.
        istioServiceIdentityAdmissionRules:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AdmissionRule'
          description: 'Optional. Per-istio-service-identity admission rules. Istio service identity spec format: `spiffe:///ns//sa/` or `/ns//sa/` e.g. `spiffe://example.com/ns/test-ns/sa/default`'
        etag:
          description: Optional. A checksum, returned by the server, that can be sent on update requests to ensure the policy has an up-to-date value before attempting to update it. See https://google.aip.dev/154.
          type: string
        admissionWhitelistPatterns:
          description: Optional. Admission policy allowlisting. A matching admission request will always be permitted. This feature is typically used to exclude Google or third-party infrastructure images from Binary Authorization policies.
          items:
            $ref: '#/components/schemas/AdmissionWhitelistPattern'
          type: array
        clusterAdmissionRules:
          type: object
          description: 'Optional. A valid policy has only one of the following rule maps non-empty, i.e. only one of `cluster_admission_rules`, `kubernetes_namespace_admission_rules`, `kubernetes_service_account_admission_rules`, or `istio_service_identity_admission_rules` can be non-empty. Per-cluster admission rules. Cluster spec format: `location.clusterId`. There can be at most one admission rule per cluster spec. A `location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us-central1). For `clusterId` syntax restrictions see https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.'
          additionalProperties:
            $ref: '#/components/schemas/AdmissionRule'
        updateTime:
          readOnly: true
          format: google-datetime
          description: Output only. Time when the policy was last updated.
          type: string
        globalPolicyEvaluationMode:
          type: string
          enum:
          - GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED
          - ENABLE
          - DISABLE
          description: Optional. Controls the evaluation of a Google-maintained global admission policy for common system-level images. Images not covered by the global policy will be subject to the project admission policy. This setting has no effect when specified inside a global admission policy.
        kubernetesServiceAccountAdmissionRules:
          additionalProperties:
            $ref: '#/components/schemas/AdmissionRule'
          description: 'Optional. Per-kubernetes-service-account admission rules. Service account spec format: `namespace:serviceaccount`. e.g. `test-ns:default`'
          type: object
      type: object
    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: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
externalDocs:
  url: https://cloud.google.com/binary-authorization/
x-provenance:
  method: harvested
  publisher: Google
  source: https://binaryauthorization.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)