get-cloud-connect-supported-features
dci get-cloud-connect-supported-features <accountID>
Returns the list of supported features and their permission status for a cloud account connected via CloudConnect. The account must belong to the authenticated customer. Supports AWS and Azure accounts.
accountID— The cloud provider account ID (AWS account ID or Azure tenant ID).
Examples
# Which features the connected account supports and whether it has the permissions each one needs.
dci get-cloud-connect-supported-features <account-id>
# The list as JSON, for scripts that gate on `hasRequiredPermissions`.
dci get-cloud-connect-supported-features <account-id> --output json
Output
OK - Supported features returned.
By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.
| Field | Type | Description |
|---|---|---|
supportedFeatures | array of object | List of features and their permission status. |
supportedFeatures[].name | string | The name of the feature. |
supportedFeatures[].hasRequiredPermissions | boolean | Whether the connected account has the required permissions for this feature. |
Raw JSON schema
{
"type": "object",
"description": "Response containing the supported features for a CloudConnect account.",
"properties": {
"supportedFeatures": {
"type": "array",
"description": "List of features and their permission status.",
"items": {
"type": "object",
"description": "A feature supported by a CloudConnect account.",
"properties": {
"name": {
"type": "string",
"description": "The name of the feature.",
"example": "sandbox"
},
"hasRequiredPermissions": {
"type": "boolean",
"description": "Whether the connected account has the required permissions for this feature.",
"example": true
}
}
}
}
}
}
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 status to exit code mapping
| HTTP status | Exit code | Error code | Meaning |
|---|---|---|---|
| 400 | 30 | VALIDATION_ERROR | The arguments or request body were rejected. Review the command's flags and payload. |
| 401 | 10 | AUTHENTICATION_FAILED | Not signed in, or the API token is invalid. Run dci login or check DCI_API_KEY. |
| 403 | 11 | PERMISSION_DENIED | The DoiT user or the active customer context does not have access. |
| 404 | 20 | RESOURCE_NOT_FOUND | The requested resource does not exist. Check the identifier argument. |
| 500 | 40 | API_SERVER_ERROR | The API failed to process the request. Retryable; contact DoiT support if it persists. |
Related
- get-aws-account — Get an AWS account
- create-account-role — Create or update an AWS account role
- update-aws-feature — Update an AWS feature
- API reference: GET /core/v1/cloudconnect/supportedFeatures/{accountID}
Aliases: getcloudconnectsupportedfeatures