Skip to main content

list-service-quotas

dci list-service-quotas [flags]

Returns the latest service quota usage snapshots collected by DoiT for the authenticated customer. Results include only quotas retained by DoiT's monitoring collectors and are not a complete or live inventory from the cloud providers. Results are sorted by utilization percentage in descending order.

Flags

--provider: (string enum:"aws","gcp")

--min-utilization-percent: (number format:double)

--max-results: (integer format:int32 default:50)

--page-token: (string)

Responses

200 (application/json)

OK - Service quotas returned.

{
"type": "object",
"required": [
"items",
"rowCount"
],
"properties": {
"items": {
"type": "array",
"description": "Service quotas in this page.",
"items": {
"type": "object",
"required": [
"provider",
"resource",
"service",
"quota",
"limit",
"usage",
"utilizationPercent",
"status",
"observedAt"
],
"properties": {
"provider": {
"type": "string",
"description": "Cloud provider that owns the quota.",
"enum": [
"aws",
"gcp"
]
},
"resource": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"type": "string",
"description": "Provider resource scope for the quota.",
"enum": [
"account",
"project"
]
},
"id": {
"type": "string",
"description": "AWS account ID or Google Cloud project ID.",
"example": "example-project"
},
"name": {
"type": "string",
"description": "Human-readable resource name when available.",
"example": "Example Project"
}
}
},
"service": {
"type": "string",
"description": "Cloud service associated with the quota.",
"example": "Compute Engine"
},
"quota": {
"type": "string",
"description": "Provider quota or metric name.",
"example": "CPUS"
},
"region": {
"type": "string",
"description": "Cloud region associated with the quota. Omitted for global quotas.",
"example": "us-central1"
},
"limit": {
"type": "number",
"format": "double",
"description": "Current quota limit.",
"example": 100
},
"usage": {
"type": "number",
"format": "double",
"description": "Current measured quota usage.",
"example": 85
},
"utilizationPercent": {
"type": "number",
"format": "double",
"description": "Usage divided by limit, expressed as a percentage.",
"example": 85
},
"status": {
"type": "string",
"description": "Normalized utilization status. Warning begins at 80 percent; exceeded begins at 100 percent.",
"enum": [
"ok",
"warning",
"exceeded"
]
},
"observedAt": {
"type": "string",
"format": "date-time",
"description": "Time when DoiT last updated the provider snapshot.",
"example": "2026-07-17T12:00:00Z"
}
}
}
},
"pageToken": {
"type": "string",
"description": "Opaque token for the next page. Omitted when there are no more results."
},
"rowCount": {
"type": "integer",
"format": "int64",
"description": "Total number of results after filtering and before pagination."
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

500 (application/json)

Internal Server Error - Something went wrong with the DoiT API server.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: list-service-quotas, listservicequotas