调用DescribeMonitoringAgentAccessKey接口查询非阿里云主机安装云监控插件时所需要的AccessKey和AccessSecret。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeMonitoringAgentAccessKey |
系统规定参数。取值:DescribeMonitoringAgentAccessKey。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AccessKey | String | E7A27f9**** |
安装插件需要的AccessKey。 |
SecretKey | String | sBjNOUhLylrxMX-Xv1**** |
安装插件需要的AccessSecret。 |
RequestId | String | C0F655E9-D793-51E6-BD78-CABBCCFC1047 |
请求ID。 |
Success | Boolean | true |
操作是否成功。取值:
|
Code | Integer | 200 |
状态码。 说明 200表示成功。
|
Message | String | The specified resource is not found. |
错误信息。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeMonitoringAgentAccessKey
&公共请求参数
正常返回示例
XML
格式
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
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"SecretKey" : "sBjNOUhLylrxMX-Xv1****",
"RequestId" : "C0F655E9-D793-51E6-BD78-CABBCCFC1047",
"AccessKey" : "E7A27f9****",
"Code" : 200,
"Success" : true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
访问错误中心查看更多错误码。