Queries the endpoints of a Container Registry instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListInstanceEndpoint |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| ModuleName |
string |
No |
The name of the module that you want to access. Valid values:
|
Registry |
| Summary |
boolean |
No |
Specify whether to return endpoints in simple mode. If yes, no access control information about the endpoint is returned. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The request ID. |
1B21A877-66A2-4095-90EB-20A7781A4A67 |
| Endpoints |
array<object> |
The endpoints of the instance. |
|
|
array<object> |
|||
| Status |
string |
The status of the endpoint. |
RUNNING |
| EndpointType |
string |
The type of the endpoint. |
internet |
| AclEnable |
boolean |
Indicates whether the endpoint is added to an access control list (ACL). |
true |
| Enable |
boolean |
Indicates whether the endpoint is added to an ACL. |
true |
| Domains |
array<object> |
The list of domain names of the Container Registry instance. |
|
|
object |
|||
| Type |
string |
The type of the domain name. Valid values:
|
SYSTEM |
| Domain |
string |
The domain name of the Container Registry instance. |
t****-registry.cn-shanghai.cr.aliyuncs.com |
| LinkedVpcs |
array<object> |
The VPCs associated with the instance. |
|
|
object |
|||
| VpcId |
string |
VPC ID |
vpc-bp1b1xjllp3ve5yze**** |
| AclEntries |
array<object> |
The ACLs that are configured for the instance. |
|
|
object |
|||
| Entry |
string |
The information about the ACL. |
127.0.0.1 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "1B21A877-66A2-4095-90EB-20A7781A4A67",
"Endpoints": [
{
"Status": "RUNNING",
"EndpointType": "internet",
"AclEnable": true,
"Enable": true,
"Domains": [
{
"Type": "SYSTEM",
"Domain": "t****-registry.cn-shanghai.cr.aliyuncs.com"
}
],
"LinkedVpcs": [
{
"VpcId": "vpc-bp1b1xjllp3ve5yze****"
}
],
"AclEntries": [
{
"Entry": "127.0.0.1"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.