Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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
AccessKey String E7A27f9****

The AccessKey ID that is required to install the agent.

SecretKey String sBjNOUhLylrxMX-Xv1****

The AccessKey secret that is required to install the agent.

RequestId String C0F655E9-D793-51E6-BD78-CABBCCFC1047

The ID of the request.

Success Boolean true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.
Code Integer 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String The specified resource is not found.

The error message.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeMonitoringAgentAccessKey
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeMonitoringAgentAccessKeyResponse>
    <SecretKey>sBjNOUhLylrxMX-Xv1****</SecretKey>
    <RequestId>C0F655E9-D793-51E6-BD78-CABBCCFC1047</RequestId>
    <AccessKey>E7A27f9****</AccessKey>
    <Code>200</Code>
    <Success>true</Success>
</DescribeMonitoringAgentAccessKeyResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "SecretKey" : "sBjNOUhLylrxMX-Xv1****",
  "RequestId" : "C0F655E9-D793-51E6-BD78-CABBCCFC1047",
  "AccessKey" : "E7A27f9****",
  "Code" : 200,
  "Success" : true
}

Error codes

HttpCode Error code Error message Description
404 ResourceNotFound The specified resource is not found. The error message returned because the specified resource is not found.

For a list of error codes, see Service error codes.