All Products
Search
Document Center

Resource Orchestration Service:ListDiagnostics

Last Updated:Sep 12, 2024

Queries a diagnostic report.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ros:ListDiagnosticslist
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DiagnosticKeystringNo

The keyword in the diagnosis.

2829A772-B154-5A0A-B61B-DEE8A9EE8A5D
DiagnosticProductstringNo

The product that is diagnosed.

ros
StatusstringNo

The diagnosis status.

Complete
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

caeba0bbb2be03f84eb48b699f01****
MaxResultsstringNo

The maximum number of results to be returned in a single call when NextToken is used for the query.

Valid values: 1 to 100.

Default value: 50.

50

Response parameters

ParameterTypeDescriptionExample
object
HttpStatusCodeinteger

The HTTP status code returned. The value 200 indicates that the request was successful.

200
Messagestring

The error message returned.

You are not authorized to complete this action.
Diagnosticsarray<object>

The items that are diagnosed.

object
CreateTimestring

The time when the diagnostic report was generated.

2022-08-01T02:23:55
DiagnosticKeystring

The keyword in the diagnosis.

047D84D9-D3EB-5DA8-87F1-9A7DD5598A5D
DiagnosticProductstring

The product that is diagnosed.

ros
ReportIdstring

The ID of the diagnostic report.

dr-2963bfbcac834f1a****
Statusstring

The diagnosis status.

success
RequestIdstring

The request ID.

1983D1C4-88EA-5D7D-90AB-467D01867A5D
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results.

caeba0bbb2be03f84eb48b699f01****

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "Message": "You are not authorized to complete this action.",
  "Diagnostics": [
    {
      "CreateTime": "2022-08-01T02:23:55",
      "DiagnosticKey": "047D84D9-D3EB-5DA8-87F1-9A7DD5598A5D",
      "DiagnosticProduct": "ros",
      "ReportId": "dr-2963bfbcac834f1a****",
      "Status": "success"
    }
  ],
  "RequestId": "1983D1C4-88EA-5D7D-90AB-467D01867A5D",
  "Success": "true",
  "NextToken": "caeba0bbb2be03f84eb48b699f01****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history