Quota Management API (v1)
Managing project quotas and limits
Get project quotas
Authorizations:
X-Auth-Token
path Parameters
projectID required | string project ID |
query Parameters
resource | Array of strings filter by resources |
Responses
Response samples
- 200
- 207
- 400
- 500
Content type
application/json
{- "error": {
- "code": 0,
- "errors": [
- {
- "code": 0,
- "message": "string",
- "resource": "string",
- "zone": "string"
}
], - "message": "string"
}, - "quotas": {
- "property1": [
- {
- "used": 0,
- "value": 0,
- "zone": "string"
}
], - "property2": [
- {
- "used": 0,
- "value": 0,
- "zone": "string"
}
]
}
}
Set project quotas
Authorizations:
X-Auth-Token
path Parameters
projectID required | string Project ID |
Request Body schema: application/jsonrequired
Quotas data
object (types.QuotasSet) | |||||||||
|
Responses
Request samples
- Payload
Content type
application/json
{- "quotas": {
- "property1": [
- {
- "value": 0,
- "zone": "string"
}
], - "property2": [
- {
- "value": 0,
- "zone": "string"
}
]
}
}
Response samples
- 200
- 207
- 400
- 500
Content type
application/json
{- "error": {
- "code": 0,
- "errors": [
- {
- "code": 0,
- "message": "string",
- "resource": "string",
- "zone": "string"
}
], - "message": "string"
}, - "quotas": {
- "property1": [
- {
- "value": 0,
- "zone": "string"
}
], - "property2": [
- {
- "value": 0,
- "zone": "string"
}
]
}
}