Queries information about monitored services in Cloud Monitor.
The information that can be obtained by this operation includes the service description, namespace, and tags.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeProjectMeta |
The operation that you want to perform. Set the value to DescribeProjectMeta. |
Labels | String | No | [{"name":"product","value":"ECS"}] |
The tags of the service. Tags are used to filter services. You can filter services only by the tag whose Note We recommend that you do not use the special tags in the Cloud Monitor console.
|
PageNumber | Integer | No | 1 |
The page to return. Default value: 1 |
PageSize | Integer | No | 30 |
The number of entries to return on each page. Default value: 30. Note The value of this parameter is not limited. You can view a large number of entries
per page.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The response code. Note The HTTP 200 code indicates that the request was successful.
|
Message | String | The Request is not authorization. |
The error message. |
PageNumber | String | 1 |
The page that is returned. |
PageSize | String | 5 |
The number of entries returned on each page. |
RequestId | String | 4C2061B2-3B1B-43BF-A4A4-C53426F479C0 |
The ID of the request. |
Resources | Array |
The details of the service. |
|
Resource | |||
Description | String | CDN |
The description of the service. |
Labels | String | [{"groupFlag":true}] |
The tags of the service. Tags are used to filter services. Tags are returned in the following format:
|
Namespace | String | acs_cdn |
The namespace of the service. Format: |
Success | Boolean | true |
Indicates whether the request was successful. The value true indicates success. The value false indicates failure. |
Total | String | 12 |
The total number of records. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeProjectMeta
&<Common request parameters>
Sample success responses
XML
format
<DescribeProjectMeta>
<PageNumber>1</PageNumber>
<PageSize>5</PageSize>
<RequestId>4C2061B2-3B1B-43BF-A4A4-C53426F479C0</RequestId>
<Success>true</Success>
<Code>200</Code>
<Total>12</Total>
<Resources>
<Resource>
<Description>AnalyticDB</Description>
<Labels>[{"name":"product","value":"ADS"},{"name":"productCategory","value":"ads"},{"name":"groupFlag","value":"true"}]</Labels>
<Namespace>acs_ads</Namespace>
</Resource>
<Resource>
<Description>Artificial Intelligence Recommendation</Description>
<Labels>[{"name":"product","value":"AIRec"},{"name":"productCategory","value":"airec"},{"name":"groupFlag","value":"true"}]</Labels>
<Namespace>acs_airec</Namespace>
</Resource>
<Resource>
<Description>API Gateway</Description>
<Labels>[{"name":"product","value":"APIGateway"},{"name":"productCategory","value":"apigateway"},{"name":"groupFlag","value":"true"}]</Labels>
<Namespace>acs_apigateway_dashboard</Namespace>
</Resource>
<Resource>
<Description>CDN</Description>
<Labels>[{"name":"product","value":"CDN"},{"name":"productCategory","value":"cdn"},{"name":"groupFlag","value":"true"}]</Labels>
<Namespace>acs_cdn</Namespace>
</Resource>
<Resource>
<Description>Cloud Enterprise Network</Description>
<Labels>[{"name":"product","value":"CEN"},{"name":"productCategory","value":"cen,cen_flow,cen_vbr"},{"name":"groupFlag","value":"true"}]</Labels>
<Namespace>acs_cen</Namespace>
</Resource>
</Resources>
</DescribeProjectMeta>
JSON
format
{
"PageNumber": 1,
"PageSize": 5,
"RequestId": "4C2061B2-3B1B-43BF-A4A4-C53426F479C0",
"Success": true,
"Code": 200,
"Total": 12,
"Resources": {
"Resource": [
{
"Description": "AnalyticDB",
"Labels": "[{\"name\":\"product\",\"value\":\"ADS\"},{\"name\":\"productCategory\",\"value\":\"ads\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
"Namespace": "acs_ads"
},
{
"Description": "Artificial Intelligence Recommendation",
"Labels": "[{\"name\":\"product\",\"value\":\"AIRec\"},{\"name\":\"productCategory\",\"value\":\"airec\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
"Namespace": "acs_airec"
},
{
"Description": "API Gateway",
"Labels": "[{\"name\":\"product\",\"value\":\"APIGateway\"},{\"name\":\"productCategory\",\"value\":\"apigateway\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
"Namespace": "acs_apigateway_dashboard"
},
{
"Description": "CDN",
"Labels": "[{\"name\":\"product\",\"value\":\"CDN\"},{\"name\":\"productCategory\",\"value\":\"cdn\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
"Namespace": "acs_cdn"
},
{
"Description": "Cloud Enterprise Network",
"Labels": "[{\"name\":\"product\",\"value\":\"CEN\"},{\"name\":\"productCategory\",\"value\":\"cen,cen_flow,cen_vbr\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
"Namespace": "acs_cen"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.