Help Center/ Workspace/ API Reference/ Workspace APIs/ Skill Binding/ Listing Resources Bound to a Common Skill
Updated on 2026-09-11 GMT+08:00

Listing Resources Bound to a Common Skill

Function

This API is used to list resources bound to a common skill.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:agentSkill:listCommonSkillResources

    List

    -

    -

    -

    -

URI

GET /v3/ai-agents/common-skills/{skill_id}/resources

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

skill_id

Yes

String

Skill ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

version

No

String

Skill version.

offset

No

Integer

Offset. The default value is 0.

limit

No

Integer

Page size. The default value is 20.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Language

No

String

Language, which is used for internationalization.

  • en-us: English.

  • zh-cn: Chinese.

Response Parameters

Status code: 200

Table 4 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 5 Response body parameters

Parameter

Type

Description

total

Integer

Total quantity.

items

Array of SkillResourceItemVO objects

Resources bound to the skill.

Table 6 SkillResourceItemVO

Parameter

Type

Description

id

String

Resource record ID.

resource_type

String

Resource type. The value can be DESKTOP or DESKTOP_TAG.

resource_id

String

Resource ID. For DESKTOP, the value is an instance ID (instance_id). For DESKTOP_TAG, the value is a tag (key:value).

resource_name

String

Resource name. For DESKTOP, the value is an instance name. For DESKTOP_TAG, the value is a tag.

skill_version

String

Skill version.

create_time

String

Creation time (UTC time in ISO 8601 format).

Status code: 400

Table 7 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 401

Table 9 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 403

Table 11 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 12 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 404

Table 13 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 14 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 500

Table 15 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 16 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Example Requests

/v3/ai-agents/common-skills/skill-uuid-001/resources?version=1.0.0&offset=0&limit=20

Example Responses

Status code: 200

{
  "items" : [ {
    "id" : "132",
    "resource_type" : "DESKTOP",
    "resource_id" : "6498e59f-8b7a-4b75-b73f-c12a7dc9b525",
    "resource_name" : "ydc00002",
    "skill_version" : "1.0.0",
    "create_time" : "2026-06-29T11:11:36Z"
  }, {
    "id" : "145",
    "resource_type" : "DESKTOP_TAG",
    "resource_id" : "env:production",
    "resource_name" : "env:production",
    "skill_version" : "1.0.0",
    "create_time" : "2026-06-30T08:00:00Z"
  } ]
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

Error Codes

See Error Codes.