Creates a diagnosis task for one-click diagnostics.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:CreateDiagnostic |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DiagnosticKey |
string |
Yes |
The diagnostic keyword. Specify the ID of the stack to diagnose. |
37A5679B-8488-5A5D-8D5C-90E66A577A5D |
| Product |
string |
No |
The name of the product to diagnose. |
ros |
| DiagnosticType |
string |
No |
The type of item to diagnose. Set the value to Stack. |
Stack |
| Lang |
string |
No |
The language of the diagnostic report. Only Chinese and English are supported. Valid values:
|
zh-cn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The error code. |
Forbidden |
| DiagnosticType |
string |
The type of the item that is diagnosed. |
Stack |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. |
You are not authorized to complete this action. |
| ReportId |
string |
The ID of the diagnostic report. |
dr-e94e39a1274d44b6**** |
| RequestId |
string |
The request ID. |
943B24D7-1A67-55A4-B045-818F90693D3A |
| Success |
string |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "Forbidden",
"DiagnosticType": "Stack",
"HttpStatusCode": 200,
"Message": "You are not authorized to complete this action.",
"ReportId": "dr-e94e39a1274d44b6****",
"RequestId": "943B24D7-1A67-55A4-B045-818F90693D3A",
"Success": "true"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.