Quota Manager API, gRPC: QuotaRequestService.Create
Creates a quota request in the specified resource.
gRPC request
rpc Create (CreateQuotaRequestRequest) returns (operation.Operation)
CreateQuotaRequestRequest
{
"resource": {
"id": "string",
"type": "string"
},
"desired_quota_limits": [
{
"quota_id": "string",
"desired_limit": "double"
}
]
}
|
Field |
Description |
|
resource |
Required field. Resource to create a quota request in. |
|
desired_quota_limits[] |
Desired quota limits |
Resource
|
Field |
Description |
|
id |
string Required field. The id if the resource. |
|
type |
string Required field. The type of the resource, e.g. resource-manager.cloud, billing.account. |
DesiredQuotaLimit
|
Field |
Description |
|
quota_id |
string Required field. ID of the quota |
|
desired_limit |
double Desired limit of the quota |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"quota_request_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"resource": {
"id": "string",
"type": "string"
},
"created_at": "google.protobuf.Timestamp",
"status": "Status",
"quota_limits": [
{
"quota_id": "string",
"desired_limit": "double",
"approved_limit": "double",
"unit": "string",
"status": "Status",
"message": "string",
"modified_by": "string"
}
],
"created_by": "string"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateQuotaRequestMetadata
|
Field |
Description |
|
quota_request_id |
string ID of the quota request that is being created. |
QuotaRequest
|
Field |
Description |
|
id |
string ID of the quota request. |
|
resource |
|
|
created_at |
Creation timestamp. |
|
status |
enum Status Status of current quota request.
|
|
quota_limits[] |
Quota limits |
|
created_by |
string ID of the subject who created quota request. |
Resource
|
Field |
Description |
|
id |
string Required field. The id if the resource. |
|
type |
string Required field. The type of the resource, e.g. resource-manager.cloud, billing.account. |
QuotaLimit
|
Field |
Description |
|
quota_id |
string ID of the quota. |
|
desired_limit |
double Desired limit. |
|
approved_limit |
double Approved limit. |
|
unit |
string Unit of quota. |
|
status |
enum Status Status of current quota limit.
|
|
message |
string |
|
modified_by |
string ID of the subject who modified quota limit. |