調用DescribeProjectMeta介面查詢CloudMonitor支援的時序類監控項產品列表。
介面說明
擷取接入的雲產品資訊,包括產品的描述資訊、Namespace 和標籤。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Labels |
string |
否 |
標籤。根據標籤過濾,標籤為每個警示增加特殊標記。 目前僅支援按照產品過濾,即 說明
對於阿里雲中CloudMonitor控制台的特殊標籤,不建議您使用。 |
[{"name":"product","value":"ECS"}] |
| PageNumber |
integer |
否 |
頁碼。 取值範圍:1~100。 預設值:1。 |
1 |
| PageSize |
integer |
否 |
分頁大小。 取值範圍:1~10000。 預設值:30。 說明
目前阿里雲未限制該參數,如果您需要擷取所有結果,則將分頁大小設定為較大的值即可。 |
30 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
4C2061B2-3B1B-43BF-A4A4-C53426F479C0 |
| Success |
boolean |
操作是否成功。true 表示成功,false 表示失敗。 |
true |
| Code |
string |
狀態代碼。 說明
200 表示成功。 |
200 |
| Message |
string |
錯誤資訊。 |
The Request is not authorization. |
| PageSize |
string |
分頁大小。 |
5 |
| PageNumber |
string |
頁碼。 |
1 |
| Total |
string |
總記錄條數。 |
12 |
| Resources |
object |
||
| Resource |
array<object> |
雲產品資訊。 |
|
|
object |
|||
| Namespace |
string |
命名空間,用於區分產品。格式: |
acs_cdn |
| Description |
string |
描述資訊。 |
CDN |
| Labels |
string |
標籤。根據標籤過濾,標籤為每個警示增加特殊標記。 例如:警示所屬產品的規格,是否能設定警示,格式:
|
[{"metricCategory":ecs}] |
樣本
正常返回樣本
JSON格式
{
"RequestId": "4C2061B2-3B1B-43BF-A4A4-C53426F479C0",
"Success": true,
"Code": "200",
"Message": "The Request is not authorization.",
"PageSize": "5",
"PageNumber": "1",
"Total": "12",
"Resources": {
"Resource": [
{
"Namespace": "acs_cdn",
"Description": "CDN",
"Labels": "[{\"metricCategory\":ecs}]"
}
]
}
}
錯誤碼
|
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. | 未找到指定資源。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。