調用DescribeMonitoringAgentAccessKey介面查詢非阿里雲主機安裝CloudMonitor外掛程式時所需要的AccessKey和AccessSecret。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cms:DescribeMonitoringAgentAccessKey |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| AccessKey |
string |
安裝外掛程式需要的 AccessKey。 |
E7A27f9**** |
| SecretKey |
string |
安裝外掛程式需要的 AccessSecret。 |
sBjNOUhLylrxMX-Xv1**** |
| RequestId |
string |
請求 ID。 |
C0F655E9-D793-51E6-BD78-CABBCCFC1047 |
| Success |
boolean |
操作是否成功。取值:
|
true |
| Code |
integer |
狀態代碼。 說明
200 表示成功。 |
200 |
| Message |
string |
錯誤資訊。 |
The specified resource is not found. |
樣本
正常返回樣本
JSON格式
{
"AccessKey": "E7A27f9****",
"SecretKey": "sBjNOUhLylrxMX-Xv1****",
"RequestId": "C0F655E9-D793-51E6-BD78-CABBCCFC1047",
"Success": true,
"Code": 200,
"Message": "The specified resource is not found."
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定資源。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。