Method: consumerPolicies.patch

Update the consumer policy of a resource.

HTTP request

PATCH https://serviceusage.googleapis.com/v2beta/{consumerPolicy.name=*/*/consumerPolicies/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
consumerPolicy.name

string

Output only. The resource name of the policy. Only the default policy is supported: projects/12345/consumerPolicies/default, folders/12345/consumerPolicies/default, organizations/12345/consumerPolicies/default.

Query parameters

Parameters
force

boolean

This flag will skip the breaking change detections.

validateOnly

boolean

If set, validate the request and preview the result but do not actually commit it.

Request body

The request body contains an instance of ConsumerPolicy.

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/service.management
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.