Viewing the List of Shared Images
Function
View the list of shared images.
URI
GET /v2/manage/shared-repositories?filter=center::{center}|name::{name}|limit::{limit}|offset::{offset}
For details about parameters, see Table 1.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| center | Yes | String | self: my shared images thirdparty: third-party shared images |
| name | No | String | Image repository name. |
| limit | No | String | Number of returned records Ensure that the offset and limit parameters are used together. |
| offset | No | String | Start index. Ensure that the offset and limit parameters are used together. |
Request
N/A
Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| Content-Range | String | Offset (Start index)–Count (Number of records on the current page)/Total (Total number of records) |
If the offset and limit parameters are transferred in the request, Content-Range will be added to the response header.
| Parameter | Type | Description |
|---|---|---|
| name | String | Repository name. |
| category | String | Repository type. The value can be app_server, linux, framework_app, database, lang, other, windows, or arm. |
| description | String | Repository description. |
| size | Integer | Image repository size. |
| is_public | Boolean | Whether the image is a public image. The value can be true or false. |
| num_images | Integer | Number of image tags in a repository. |
| num_download | Integer | Download times. |
| created_at | String | Time when a repository is created. It is the UTC standard time. Users need to calculate the offset based on the local time. For example, GMT+8 is 8 hours ahead the GMT time. |
| updated_at | String | Time when a repository is updated. It is the UTC standard time. Users need to calculate the offset based on the local time. For example, GMT+8 is 8 hours ahead the GMT time. |
| url | String | (Reserved field) URL of the repository logo. |
| path | String | External container image download address. For example, swr.cn-north-1.myhuaweicloud.com/namespace/repository. |
| internal_path | String | Internal container image download address. For example, 10.125.0.198:20202/namespace/repository. |
| domain_name | String | Account name. |
| namespace | String | Organization name. |
| tags | Array of strings | Image tag list. |
| status | Boolean | Query the images shared by a third party: Check whether the sharing is expired. Query the images shared by me: The default value is false, indicating that no images are shared. |
[
{
"name": "group",
"category": "other",
"description": "",
"size": 115645792,
"is_public": false,
"num_images": 1,
"num_download": 0,
"created_at": "2018-03-21T12:22:37Z",
"updated_at": "2018-03-21T12:22:37Z",
"logo": "",
"url": "",
"path": "swr.cn-north-1.myhuaweicloud.com/namespace/group",
"internal_path": "10.125.0.198:20202/namespace/repository",
"domain_name": "domian",
"namespace": "namespace",
"tags": [
"latest"
],
"status": true
}
] Status Code
For details about status code, see Table 4.
Last Article: Obtaining the List of Accounts Used for Image Sharing
Next Article: Querying All API Versions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.