Help Center/ SoftWare Repository for Container/ API Reference (Basic Edition)/ APIs/ Image Tag Management/ Listing the Attachments of a Signed Image (ListRepoAccessories)
Updated on 2026-04-14 GMT+08:00

Listing the Attachments of a Signed Image (ListRepoAccessories)

Function

List the attachments of a signed image.

API Calling

For details, see Calling APIs.

Authorization Information

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

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the permission listed below is required.

    Action

    Access Level

    Resource Type (* required)

    Condition Key

    Alias

    Dependencies

    swr:repo:listAccessories

    List

    repo *

    -

    -

    -

URI

GET /v2/manage/namespaces/{namespace}/repos/{repository}/{tag}/accessories

Table 1 Path parameters

Parameter

Mandatory

Type

Description

namespace

Yes

String

Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.

repository

Yes

String

Image repository name. Enter 1 to 128 characters, starting and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), slashes (/), underscores (_), and hyphens (-) are allowed. Periods, slashes, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. Replace a slash (/) with a dollar sign ($) before you send the request.

tag

Yes

String

Tag name.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

Number of returned records. Parameters offset and limit should always be used together. If this parameter is not specified, 10 records are returned by default. A maximum of 100 records can be returned.

offset

No

Integer

Start index for pagination query.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Possible values:

application/json;charset=utf-8

application/json

X-Auth-Token

Yes

String

User token. You can obtain the token by calling the IAM API used to obtain a user token.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total

Integer

Total number of attachments.

accessories

Array of accessories objects

Attachment list.

Table 5 accessories

Parameter

Type

Description

id

Integer

Attachment ID.

domain_id

String

ID of the tenant that an attachment belongs to.

namespace_name

String

Organization that an attachment belongs to.

repo_name

String

Repository of an attachment.

sig_tag

String

Tag of the attachment (signing image).

sig_digest

String

Hash value of the attachment (signing image).

target_digest

String

Hash value of the signed image associated with the attachment (signing image).

size

Integer

Size of the attachment (signing image).

type

String

Attachment type.

created_at

String

Creation time.

updated_at

String

Update time.

Example Request

None

Example Response

Status code: 200

Request successful.

{
  "total" : 1,
  "accessories" : [ {
    "id" : 3,
    "domain_id" : "01234567891011121314151617181920",
    "namespace_name" : "test-ns",
    "repo_name" : "test_repo",
    "sig_tag" : "sha256-3be96609538ed33e2fc19ed8e3c9db2a4ecfe412ca658cb747f7881cb6e79c70.sig",
    "sig_digest" : "sha256:a2e0c5543d8345cd7d8a59226edaefc6d757951721cdc1253e20a43b60138322",
    "target_digest" : "sha256:3be96609538ed33e2fc19ed8e3c9db2a4ecfe412ca658cb747f7881cb6e79c70",
    "size" : 502,
    "type" : "signature.cosign",
    "created_at" : "2025-11-19T07:50:06.718359Z",
    "updated_at" : "2025-11-19T07:50:06.718359Z"
  } ]
}

Status Codes

Status Code

Description

200

Request successful.

400

Request error.

401

Authentication failed.

403

Access denied.

404

Resource not found.

500

Internal error.

Error Codes

See Error Codes.