Skip to main content

list-reports

dci list-reports [flags]

Returns a list of all Cloud Analytics reports that your account has access to. Reports are returned in reverse chronological order by default.

Flags

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

--page-token: (string)

--filter: (string)

--name-contains: (string)

--min-creation-time: (string)

--max-creation-time: (string)

Output

OK - The request succeeded.

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

FieldTypeDescription
pageTokenstringPage token. It is used to request a specific page of the list results.
rowCountinteger (int64)The number of returned records.
reportsarray of object
reports[].idstringReport ID.
reports[].reportNamestringThe name of the report.
reports[].ownerstringEmail address of the report owner.
reports[].typestringOne of: "custom", "preset".
reports[].createTimeinteger (int64)The creation time of the report, in milliseconds since the epoch.
reports[].updateTimeinteger (int64)The time when this report was last updated, in milliseconds since the epoch.
reports[].urlUIstringThe URL of the report in DoiT console.
reports[].labelsarray of objectList of labels associated with the report.
reports[].labels[].idstringThe unique identifier of the label.
reports[].labels[].namestringThe name of the label.
Raw JSON schema
{
"type": "object",
"description": "List of reports.",
"properties": {
"pageToken": {
"type": "string",
"description": "Page token. It is used to request a specific page of the list results."
},
"rowCount": {
"type": "integer",
"description": "The number of returned records.",
"format": "int64",
"example": 5
},
"reports": {
"type": "array",
"items": {
"type": "object",
"description": "Report metadata and the console URL.",
"properties": {
"id": {
"type": "string",
"description": "Report ID."
},
"reportName": {
"type": "string",
"description": "The name of the report."
},
"owner": {
"type": "string",
"description": "Email address of the report owner."
},
"type": {
"type": "string",
"enum": [
"custom",
"preset"
]
},
"createTime": {
"type": "integer",
"description": "The creation time of the report, in milliseconds since the epoch.",
"format": "int64"
},
"updateTime": {
"type": "integer",
"description": "The time when this report was last updated, in milliseconds since the epoch.",
"format": "int64"
},
"urlUI": {
"type": "string",
"description": "The URL of the report in DoiT console."
},
"labels": {
"type": "array",
"items": {
"required": [
"id",
"name"
],
"type": "object",
"description": "Metadata for a label.",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the label."
},
"name": {
"type": "string",
"description": "The name of the label."
}
}
},
"description": "List of labels associated with the report."
}
}
}
}
}
}

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.
40420RESOURCE_NOT_FOUNDThe requested resource does not exist. Check the identifier argument.

Aliases: listreports