Method: services.consumerQuotaMetrics.importProducerOverrides

Create or update multiple producer 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://serviceconsumermanagement.googleapis.com/v1beta1/{parent=services/*/*/*}/consumerQuotaMetrics:importProducerOverrides

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the consumer.

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

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

  • serviceconsumermanagement.quota.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 the following OAuth scope:

  • 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.

Try it!