Help Center> Config> API Reference> API> Resource Recorder> Querying the Resource Recorder

Querying the Resource Recorder

Function

This API is used to query details about the resource recorder.

URI

GET /v1/resource-manager/domains/{domain_id}/tracker-config

Table 1 Path parameter

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Specifies the account ID.

Maximum length: 36

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

channel

ChannelConfigBody object

Specifies configurations for the tracker channel.

selector

SelectorConfigBody object

Specifies the selector.

agency_name

String

Specifies the IAM agency name.

Table 3 ChannelConfigBody

Parameter

Type

Description

smn

TrackerSMNChannelConfigBody object

Specifies configurations for the SMN channel.

obs

TrackerOBSChannelConfigBody object

Specifies configurations for the OBS bucket.

Table 4 TrackerSMNChannelConfigBody

Parameter

Type

Description

region_id

String

Specifies the region ID.

project_id

String

Specifies the project ID.

topic_urn

String

Specifies the SMN topic URN.

Table 5 TrackerOBSChannelConfigBody

Parameter

Type

Description

bucket_name

String

Specifies the OBS bucket name.

region_id

String

Specifies the region ID.

Table 6 SelectorConfigBody

Parameter

Type

Description

all_supported

Boolean

Specifies whether to select all supported resources.

resource_types

Array of strings

Specifies the resource type list.

Status code: 400

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 403

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 404

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 500

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Example Request

None

Example Response

Status code: 200

Operation succeeded.

  • Example 1

    "rms_tracker_agency"
  • Example 2

    {
      "obs" : {
        "bucket_name" : "rmtest",
        "region_id" : "cn-north-7"
      },
      "smn" : {
        "project_id" : "059b5e0a2500d5552fa1c00adada8c06",
        "region_id" : "cn-north-7",
        "topic_urn" : "urn:smn:cn-north-7:059b5e0a2500d5552fa1c00adada8c06:agencytest"
      }
    }
  • Example 3

    {
      "all_supported" : true,
      "resource_types" : [ ]
    }

Status Codes

Status Code

Description

200

Operation succeeded.

400

Invalid parameter.

403

Authentication failed or you do not have the operation permission.

404

No resource recorder found.

500

Internal server error.

Error Codes

See Error Codes.