Querying a Specific Resource Recorded by the Resource Recorder
Function
Querying a specific resource recorded by the resource recorder in the current account
Calling Method
For details, see Calling APIs.
URI
GET /v1/resource-manager/domains/{domain_id}/tracked-resources/{resource_id}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
domain_id | Yes | String | Specifies the account ID. Maximum: 36 |
resource_id | Yes | String | Specifies the resource ID. Maximum: 512 |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | No | String | Specifies the invoker's token. |
X-Security-Token | No | String | Specifies a temporary security credential. This parameter is mandatory when you make an API call using a temporary security credential. |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
id | String | Specifies the resource ID. |
name | String | Specifies the resource name. |
provider | String | Specifies the cloud service name. |
type | String | Specifies the resource type. |
region_id | String | Specifies the region ID. |
project_id | String | Specifies the project ID in IaaS OpenStack. |
project_name | String | Specifies the project name in IaaS OpenStack. |
ep_id | String | Specifies the enterprise project ID. |
ep_name | String | Specifies the name of an enterprise project. |
checksum | String | Specifies the resource checksum. |
created | String | Specifies the time when the resource was created. |
updated | String | Specifies the time when the resource was updated. |
provisioning_state | String | Specifies the status of a resource operation. Enumeration values include Succeeded, Failed, Canceled, and Processing. |
tags | Map<String,String> | Specifies the resource tag. |
properties | Map<String,Object> | Specifies the detailed properties of the resource. |
state | String | Specifies the resource state. Possible values include Normal and Deleted. |
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. |
Example Requests
Querying a specific resource recorded by the resource recorder in the current account
GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/tracked-resources/{resource_id} Example Responses
Status code: 200
Operation succeeded.
{
"id" : "00337e93-82d1-40ca-911f-07cff94587cc",
"name" : "dev_machine",
"provider" : "vpc",
"type" : "vpcs",
"region_id" : "regionid1",
"project_id" : "39c2af998c334ed6bcbb75b27318f7cc",
"project_name" : "regionid1",
"ep_id" : "0",
"ep_name" : "default",
"checksum" : "3a0075409edb156a74e041b7479f0d5993be1d62b4ccd2af3a1dd01ec80c8b39",
"created" : "2019-11-20T06:24:43Z",
"updated" : "2020-07-17T08:30:52Z",
"provisioning_state" : "Succeeded",
"tags" : {
"usage" : "mm1"
},
"properties" : {
"cidr" : "192.168.0.0/16",
"status" : "OK"
}
} Status Codes
Status Code | Description |
|---|---|
200 | Operation succeeded. |
400 | Invalid parameter. |
403 | User authentication failed. |
500 | Server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

