- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- OverrideInlineSource
- Try it!
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 |
The resource name of the consumer. An example name would be: Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{
"force": boolean,
"inlineSource": {
object ( |
Fields | |
---|---|
force |
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 |
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 ( |
Fields | |
---|---|
overrides[] |
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. |