Queries a list of image repositories.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:PageImageRegistry |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegistryTypeInList |
array |
No |
The list of image repository types to include. |
|
|
string |
No |
The image repository type. Valid values:
|
acr |
|
| RegistryTypeNotInList |
array |
No |
The list of image repository types to exclude. |
|
|
string |
No |
The image repository type. Valid values:
|
quay |
|
| RegistryNameLike |
string |
No |
The image repository name. Fuzzy match is supported. |
asa |
| CurrentPage |
integer |
No |
The page number of the current page in a paged query. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in a paged query. Default value: 20. |
20 |
| SourceIp |
string |
No |
The source IP address of the request. |
140.207.XXX.XXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The image repository list data. |
||
| List |
array<object> |
The image repository list data. |
|
|
object |
The image repository list data. |
||
| Id |
integer |
The unique ID of the image repository. |
1078312 |
| GmtCreate |
string |
The creation time, in the yyyy-MM-dd HH:mm:ss format. |
2022-08-30 10:23:30 |
| GmtModified |
string |
The update time, in the yyyy-MM-dd HH:mm:ss format. |
2022-09-30 10:23:30 |
| RegistryName |
string |
The alias of the image repository. |
test1 |
| RegistryType |
string |
The image repository type. Valid values:
|
harbor |
| ProtocolType |
integer |
The protocol type. Valid values:
|
1 |
| NetType |
integer |
The network type. Valid values:
|
1 |
| VpcId |
string |
The instance ID of the VPC. |
vpc-5gu8iu68w9b472jbb**** |
| RegistryHostIp |
string |
The IP address of the repository. |
39.104.XXX.XXX |
| DomainName |
string |
The domain name of the repository. |
sinochem.com |
| UserName |
string |
The username. |
RegistryUser |
| Password |
string |
The password. |
Harbor****** |
| RegionId |
string |
The region ID of the repository. |
cn-hangzhou |
| Token |
string |
The authentication token of the user. |
c7b90d29-632f-4e58-88b8-00ad77f6**** |
| WhiteList |
string |
The whitelist. |
192.168.XXX.XXX |
| BlackList |
string |
The blacklist. |
129.211.XXX.XXX |
| TransPerHour |
integer |
The number of scan tasks per hour. |
30 |
| PersistenceDay |
integer |
The number of days that assets are retained. |
30 |
| ImageCount |
integer |
The number of images in the repository. |
1 |
| JenkinsEnv |
string |
The Jenkins environment context. |
projectInfo |
| PageInfo |
object |
The pagination information for the paged query. |
|
| CurrentPage |
integer |
The page number of the current page in a paged query. |
1 |
| PageSize |
integer |
The maximum number of entries per page in a paged query. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
69 |
| Count |
integer |
The number of entries on the current page. |
20 |
| RequestId |
string |
The ID of the request. The ID is a unique identifier that Alibaba Cloud generates for the request and can be used to troubleshoot issues. |
FDA9E37C-6114-5945-8FF1-E3D4D397**** |
Examples
Success response
JSON format
{
"List": [
{
"Id": 1078312,
"GmtCreate": "2022-08-30 10:23:30",
"GmtModified": "2022-09-30 10:23:30",
"RegistryName": "test1",
"RegistryType": "harbor",
"ProtocolType": 1,
"NetType": 1,
"VpcId": "vpc-5gu8iu68w9b472jbb****",
"RegistryHostIp": "39.104.XXX.XXX",
"DomainName": "sinochem.com",
"UserName": "RegistryUser",
"Password": "Harbor******",
"RegionId": "cn-hangzhou",
"Token": "c7b90d29-632f-4e58-88b8-00ad77f6****",
"WhiteList": "192.168.XXX.XXX",
"BlackList": "129.211.XXX.XXX",
"TransPerHour": 30,
"PersistenceDay": 30,
"ImageCount": 1,
"JenkinsEnv": "projectInfo"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 69,
"Count": 20
},
"RequestId": "FDA9E37C-6114-5945-8FF1-E3D4D397****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.