Help Center/ SoftWare Repository for Container/ API Reference/ API/ Image Repository Management/ Querying the List of Image Repositories of the Shared Edition (V3)
Updated on 2025-08-07 GMT+08:00

Querying the List of Image Repositories of the Shared Edition (V3)

Description

This API is used to list the image repositories of the Shared Edition.

This API is only available in the following regions:

CN North-Ulanqab1, CN South-Guangzhou-InvitationOnly, CN South-Shenzhen, CN East-Qingdao, AP-Manila, TR-Istanbul, CN-Hong Kong, AP-Singapore, AP-Jakarta, CN North-Beijing1, CN North-Beijing2, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN East2, CN North-Ulanqab1, CN Southwest-Guiyang1, ME-Riyadh, CN South-Guangzhou, LA-Santiago, AP-Bangkok, LA-Sao Paulo1, LA-Mexico City1, and LA-Mexico City2

API Calling

For details, see Calling APIs.

URI

GET /v3/manage/shared-repositories

Table 1 Query parameters

Parameter

Mandatory

Type

Description

namespace

No

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.

name

No

String

Image repository name. Enter 1 to 128 characters. It must start and end 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.

shared_by

Yes

String

Sharing mode. The value can only be self or thirdparty. self: images shared by you to others thirdparty: images shared with you by others

status

No

Boolean

Whether the sharing has expired. false: The sharing has expired. true: The sharing is valid.

limit

No

Integer

The maximum number of image repositories on each page. The default value is 100. A maximum of 1,000 image repositories can be returned.

marker

No

Integer

Start marker of the pagination query. The value of **nextMarker** returned by the API is the start marker of the next query.

Request Parameters

Table 2 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.

The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

nextMarker

Integer

Start ID for the next pagination query. If this parameter is not returned, the data has been queried.

repos

Array of

ShowSharedRepoRespV3 object

List of image repositories of the Shared Edition.

Table 4 ShowSharedRepoRespV3

Parameter

Type

Description

id

Integer

Repository ID.

name

String

Repository name.

category

String

Repository type.

description

String

Repository description.

size

Long

Repository size.

is_public

Boolean

Whether a repository is a public repository.

num_images

Integer

Number of images in a repository, ranging from 0 to 9,223,372,036,854,775,807.

num_download

Integer

Repository downloads.

created_at

String

Time when a repository was created. It is the UTC standard time. Users need to calculate the offset based on the local time, for example, UTC+8:00 for the East 8th Time Zone.

updated_at

String

Time when a repository was updated. It is the UTC standard time. Users need to calculate the offset based on the local time, for example, UTC+8:00 for the East 8th Time Zone.

domain_name

String

Tenant name of a repository.

namespace_name

String

Name of the organization that a repository belongs to.

status

Boolean

Whether the image shared by others has expired.

Example Request

None

Example Response

Status code: 200

List of image repositories of the Shared Edition queried.

{
  "nextMarker" : 93,
  "repos" : [ {
    "category" : "other",
    "created_at" : "2025-03-25T07:20:22.146337Z",
    "description" : "",
    "domain_name" : "test",
    "id" : 93,
    "is_public" : false,
    "name" : "test",
    "namespace_name" : "test-ns",
    "num_download" : 21,
    "num_images" : 23,
    "size" : 1187369474,
    "status" : true,
    "updated_at" : "2025-04-11T09:49:13.193507Z"
  } ]
}

Status Codes

Status Code

Description

200

List of image repositories of the Shared Edition queried.

400

Request error.

401

Authentication failed.

500

Internal server error.

Error Codes

For details, see Error Codes.