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

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

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

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

--page-token: (string)

Output

OK - Service quotas returned.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
itemsarray of objectService quotas in this page.
items[].cloudProviderstringCloud provider that owns the quota. One of: "aws", "gcp".
items[].resourceobject
items[].resource.typestringProvider resource scope for the quota. One of: "account", "project".
items[].resource.idstringAWS account ID or Google Cloud project ID.
items[].resource.namestringHuman-readable resource name when available.
items[].servicestringCloud service associated with the quota.
items[].quotastringProvider quota or metric name.
items[].regionstringCloud region associated with the quota. Omitted for global quotas.
items[].limitnumber (double)Current quota limit.
items[].usagenumber (double)Current measured quota usage.
items[].utilizationPercentnumber (double)Usage divided by limit, expressed as a percentage.
items[].statusstringNormalized utilization status. Warning begins at 80 percent; exceeded begins at 100 percent. One of: "ok", "warning", "exceeded".
items[].observedAtstring (date-time)Time when DoiT last updated the provider snapshot.
pageTokenstringOpaque token for the next page. Omitted when there are no more results.
rowCountinteger (int64)Total number of results after filtering and before pagination.
Raw JSON schema
{
"type": "object",
"required": [
"items",
"rowCount"
],
"properties": {
"items": {
"type": "array",
"description": "Service quotas in this page.",
"items": {
"type": "object",
"required": [
"cloudProvider",
"resource",
"service",
"quota",
"limit",
"usage",
"utilizationPercent",
"status",
"observedAt"
],
"properties": {
"cloudProvider": {
"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."
}
}
}

Errors

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP statusExit codeError codeMeaning
40030VALIDATION_ERRORThe arguments or request body were rejected. Review the command's flags and payload.
40110AUTHENTICATION_FAILEDNot signed in, or the API token is invalid. Run dci login or check DCI_API_KEY.
40311PERMISSION_DENIEDThe DoiT user or the active customer context does not have access.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listservicequotas