Help Center/ Cloud Trace Service/ API Reference (Ally Region)/ APIs/ Other APIs/ Querying Resources Involved in Traces
Updated on 2026-01-04 GMT+08:00

Querying Resources Involved in Traces

Function

This API is used to query the resources involved in specific traces.

Calling Method

For details, see Calling APIs.

URI

GET /v3/{domain_id}/resources

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Account ID. For details, see Obtaining an Account ID and Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

resources

Array of TraceResource objects

Returned resource list.

Table 3 TraceResource

Parameter

Type

Description

service_type

String

Cloud service type. The value must be the uppercase acronym of a cloud service connected with CTS.

resource

Array of strings

Resource types corresponding to the cloud service.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Status code: 503

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Error code. Format: CTS.XXX.

error_msg

String

Error message.

Example Requests

GET https://{endpoint}/v3/{domain_id}/resources

Example Responses

Status code: 200

Request succeeded.

{
  "resources" : [ {
    "service_type" : "CTS",
    "resource" : [ "trace", "notification", "tracker" ]
  }, {
    "service_type" : "AOM",
    "resource" : [ "xxxx1", "xxxx2" ]
  } ]
}

Status Codes

Status Code

Description

200

Request succeeded.

400

The server failed to process the request.

401

The request is rejected due to authentication failure.

403

The server understood the request but refused to authorize it.

404

The requested resource does not exist.

500

Failed to complete the request because of an internal service error.

503

The requested service is invalid. The client should not repeat the request without modifications.

Error Codes

See Error Codes.