Method: services.consumerQuotaMetrics.importConsumerOverrides

Create or update multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.

HTTP request

POST https://serviceusage.googleapis.com/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics:importConsumerOverrides

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the consumer.

An example name would be: projects/123/services/compute.googleapis.com

Authorization requires the following IAM permission on the specified resource parent:

  • serviceusage.quotas.update

Request body

The request body contains data with the following structure:

JSON representation
{
  "force": boolean,
  "inlineSource": {
    object (OverrideInlineSource)
  }
}
Fields
force

boolean

Whether to force the creation of the quota overrides. If creating an override would cause the effective quota for the consumer to decrease by more than 10 percent, the call is rejected, as a safety measure to avoid accidentally decreasing quota too quickly. Setting the force parameter to true ignores this restriction.

inlineSource

object (OverrideInlineSource)

The import data is specified in the request message itself

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.

OverrideInlineSource

Import data embedded in the request message

JSON representation
{
  "overrides": [
    {
      object (QuotaOverride)
    }
  ]
}
Fields
overrides[]

object (QuotaOverride)

The overrides to create. Each override must have a value for 'metric' and 'unit', to specify which metric and which limit the override should be applied to.