メインコンテンツへスキップ

list-geographic-access-countries

dci list-geographic-access-countries

Returns the canonical ISO 3166-1 alpha-2 country catalogue used by geographic access policies.

Output

OK

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

FieldTypeDescription
countriesarray of object
countries[].countryCodestringCanonical ISO 3166-1 alpha-2 country code.
countries[].namestringCanonical English display name.

Example response (--output json)

{
"countries": [
{
"countryCode": "GB",
"name": "United Kingdom"
},
{
"countryCode": "US",
"name": "United States"
}
]
}
Raw JSON schema
{
"type": "object",
"additionalProperties": false,
"required": [
"countries"
],
"properties": {
"countries": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"countryCode",
"name"
],
"properties": {
"countryCode": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Canonical ISO 3166-1 alpha-2 country code.",
"example": "GB"
},
"name": {
"type": "string",
"description": "Canonical English display name.",
"example": "United Kingdom"
}
}
}
}
}
}

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.
42950RATE_LIMITEDToo many requests. Retryable — the CLI reports the server-provided delay.
50340API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listgeographicaccesscountries