Method: projects.locations.workloadIdentityPools.namespaces.managedIdentities.addAttestationRule

Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity.

The total attestation rules after addition must not exceed 50.

HTTP request

POST https://iam.googleapis.com/v1/{resource=projects/*/locations/*/workloadIdentityPools/*/namespaces/*/managedIdentities/*}:addAttestationRule

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
resource

string

Required. The resource name of the managed identity or namespace resource to add an attestation rule to.

Request body

The request body contains data with the following structure:

JSON representation
{
  "attestationRule": {
    object (AttestationRule)
  }
}
Fields
attestationRule

object (AttestationRule)

Required. The attestation rule to be added.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/iam

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the resource resource:

  • CALLBACK

For more information, see the IAM documentation.