Viewing the List of Shared Images

Function

View the list of shared images.

URI

GET /v2/manage/shared-repositories

Table 1 Query parameters

Parameter

Mandatory

Type

Description

namespace

No

String

Organization name. An organization name contains 1 to 64 characters. It must start with a lowercase letter and end 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.

center

No

String

self: images shared by you thirdparty: images shared with you by others.

limit

No

String

Number of returned records. Ensure that the offset and limit parameters are used together. If this parameter is not specified, all records will be returned by default.

offset

No

String

Start index. The value can be 0 or a positive integer multiple of the limit value. If this parameter is not specified, all records will be returned by default.

Parameters offset and limit should always be used together.

order_column

No

String

Sorting by column. You can set this parameter to updated_at (sorting by update time). Parameters order_column and order_type should always be used together.

order_type

No

String

Sorting type. You can set this parameter to desc (descending sort) or asc (ascending sort). Parameters order_column and order_type should always be used together.

filter

No

String

Set this parameter to center::{center}|name::{name}|limit::{limit}|offset::{offset}|namespace::{namespace}|order_column::{order_column}|order_type::{order_type}. center can be set to self (images shared by you). thirdparty indicates images shared by others. namespace indicates the organization name. name indicates the image repository name. limit indicates the number of returned records. offset indicates the start index. order_column indicates sorting by column, which can be name, updated_time, or tag_count. order_type indicates the sorting type, which can be desc (descending order) or asc (ascending order).

Request

Response

Status Code

Status Code

Description

200

Request successful.

400

Request error. Error information is returned.

401

Authentication failed.

500

Internal error. Error information is returned.

Error Codes

For details, see Error Codes.