All Products
Search
Document Center

Security Center:ListPrivateRegistryList

Last Updated:Nov 25, 2024

Queries image repositories.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListPrivateRegistryListget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegistryTypestringNo

The type of the image repository. Valid values:

  • acr: Container Registry
  • harbor: Harbor
  • quay: Quay
  • CI/CD: Jenkins
harbor

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

BE120DAB-F4E7-4C53-ADC3-A97578AB****
ImageRegistryInfosarray<object>

An array that consists of the image repositories.

ImageRegistryInfoobject

The information about the image repository.

VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-bp12897gqrex01zn0****
Tokenstring

The authentication token of the user.

0da12bce-cc36-4c48-b3e6-2215fc3a****
WhiteListstring

The whitelist of IP addresses.

100.104.XXX.XXX
AliUidlong

The ID of the user.

1766185894******
RegistryTypestring

The type of the image repository. Valid values:

  • acr: Container Registry
  • harbor: Harbor
  • quay: Quay
  • CI/CD: Jenkins
harbor
DomainNamestring

The domain name of the image repository.

example.com
RegionIdstring

The region ID of the server.

cn-hangzhou
Passwordstring

The password used to log on to the image repository.

Harbor******
NetTypelong

The network type. Valid values:

  • 1: Internet
  • 2: VPC
1
RegistryVersionstring

The version of the image repository. Valid values:

  • V1: V1.0
  • V2: V2.0
V1
ProtocolTypelong

The type of the protocol. Valid values:

  • 1: HTTP
  • 2: HTTPS
1
RegistryHostIpstring

The IP address of the image repository.

114.55.XXX.XXX
UserNamestring

The username used to log on to the image repository.

RegistryUser
Idlong

The ID of the image repository.

66485
RegistryNamestring

The alias of the image repository.

test1
PersistenceDaylong

The number of days during which assets can be retained.

90
JenkinsEnvstring

The information about the Jenkins environment.

JenkinsInfo
TransPerHourinteger

The number of images that can be scanned per hour.

30

Examples

Sample success responses

JSONformat

{
  "RequestId": "BE120DAB-F4E7-4C53-ADC3-A97578AB****",
  "ImageRegistryInfos": [
    {
      "VpcId": "vpc-bp12897gqrex01zn0****",
      "Token": "0da12bce-cc36-4c48-b3e6-2215fc3a****",
      "WhiteList": "100.104.XXX.XXX",
      "AliUid": 0,
      "RegistryType": "harbor",
      "DomainName": "example.com",
      "RegionId": "cn-hangzhou",
      "Password": "Harbor******",
      "NetType": 1,
      "RegistryVersion": "V1",
      "ProtocolType": 1,
      "RegistryHostIp": "114.55.XXX.XXX",
      "UserName": "RegistryUser",
      "Id": 66485,
      "RegistryName": "test1",
      "PersistenceDay": 90,
      "JenkinsEnv": "JenkinsInfo",
      "TransPerHour": 30
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history