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

find-cloud-diagrams

dci find-cloud-diagrams

Returns diagram URLs matching the provided resource IDs.

Request

Content-Type: application/json

Schema

{
"type": "object",
"required": [
"resources"
],
"description": "Request body for locating cloud diagrams for given resource IDs.",
"properties": {
"resources": {
"type": "array",
"description": "Resource IDs to find diagrams for.",
"items": {
"type": "string"
}
}
}
}

Output

OK - Diagram URLs matching the criteria returned.

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

FieldTypeDescription
[].diagramUrlstring (uri)URL to the diagram viewer.
[].imageUrlstring (uri)URL to the diagram image.
Raw JSON schema
{
"type": "array",
"description": "List of diagram URLs matching the criteria.",
"items": {
"type": "object",
"required": [
"diagramUrl",
"imageUrl"
],
"properties": {
"diagramUrl": {
"type": "string",
"format": "uri",
"description": "URL to the diagram viewer."
},
"imageUrl": {
"type": "string",
"format": "uri",
"description": "URL to the diagram image."
}
}
}
}

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.

Aliases: findclouddiagrams