Querying how many resources are recorded by the resource recorder in the current account
For details, see Calling APIs.
GET /v1/resource-manager/domains/{domain_id}/tracked-resources/count
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domain_id |
Yes |
String |
Specifies tags. Maximum: 36 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
No |
String |
Specifies the resource ID. Maximum: 512 |
name |
No |
String |
Specifies the resource name. Maximum: 256 |
type |
No |
Array |
Specifies resource types in the format of provider.type. Array Length: 1 - 100 |
region_id |
No |
Array |
Specifies the regions. Array Length: 1 - 10 |
ep_id |
No |
Array |
Specifies enterprise project IDs. Array Length: 1 - 10 |
project_id |
No |
Array |
Specifies the project ID. Array Length: 1 - 10 |
tags |
No |
Array |
Specifies tags. The format is key or key=value. Array Length: 1 - 5 |
resource_deleted |
No |
Boolean |
Indicating whether deleted resources need to be returned. This parameter is set to false by default. Default: false |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
No |
String |
Specifies the invoker's token. |
X-Security-Token |
No |
String |
Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials. |
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_count |
Integer |
Specifies the total number of resources. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Specifies the error code. |
error_msg |
String |
Specifies the error message. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Specifies the error code. |
error_msg |
String |
Specifies the error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Specifies the error code. |
error_msg |
String |
Specifies the error message. |
Querying how many resources are recorded by the resource recorder in the current account
GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/tracked-resources/count
Status code: 200
Operation succeeded.
{ "total_count" : 345 }
Status Code |
Description |
---|---|
200 |
Operation succeeded. |
400 |
Invalid parameter. |
403 |
User authentication failed. |
500 |
Server error. |
See Error Codes.