Queries the AccessKey ID and AccessKey secret required for installing the Cloud Monitor agent on a host that is not an Elastic Compute Service (ECS) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeMonitoringAgentAccessKey |
The operation that you want to perform. Set the value to DescribeMonitoringAgentAccessKey. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D |
The ID of the request. |
Code | Integer | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Success | Boolean | true |
Indicates whether the call was successful. |
AccessKey | String | usY*****R_U |
The AccessKey ID required to install the agent. |
SecretKey | String | UCxF2R1sIO90XlU9*****w |
The AccessKey secret required to install the agent. |
Message | String | Successfully |
The returned message. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeMonitoringAgentAccessKey
&<Common request parameters>
Sample success responses
XML
format
<AccessKey>usY*****R_U</AccessKey>
<SecretKey>UCxF2R1sIO90XlU9*****w</SecretKey>
<Success>true</Success>
<Code>200</Code>
JSON
format
{
"AccessKey":"usY*****R_U",
"SecretKey":"UCxF2R1sIO90XlU9*****w",
"Success":true,
"Code":200
}
Error codes
For a list of error codes, visit the API Error Center.