Queries an endpoint of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetInstanceEndpoint |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-xkx6vujuhay0**** |
| EndpointType |
string |
Yes |
The type of the endpoint. Set the value to Internet. |
internet |
| ModuleName |
string |
No |
The module to access. Valid values:
|
Registry |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status of the instance. |
RUNNING |
| RequestId |
string |
The ID of the request. |
8F3D5EC5-39D1-4C53-A198-48C54C658FA3 |
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Whether the request is successful. |
true |
| AclEnable |
boolean |
Whether the access control list (ACL) feature is enabled. |
true |
| Enable |
boolean |
Whether the ACL feature is enabled. |
true |
| Domains |
array<object> |
Domain names. |
|
|
object |
|||
| Type |
string |
The type of the domain name. Valid values:
|
SYSTEM |
| Domain |
string |
The domain name used to access the Container Registry Enterprise Edition instance. |
shanghai-instance1-registry.cn-shanghai.cr.aliyuncs.com |
| AclEntries |
array<object> |
The ACLs. |
|
|
object |
|||
| Comment |
string |
Remarks for public IP address whitelists. |
1 |
| Entry |
string |
The public IP address whitelist. |
192.168.1.0/24 |
Examples
Success response
JSON format
{
"Status": "RUNNING",
"RequestId": "8F3D5EC5-39D1-4C53-A198-48C54C658FA3",
"Code": "success",
"IsSuccess": true,
"AclEnable": true,
"Enable": true,
"Domains": [
{
"Type": "SYSTEM",
"Domain": "shanghai-instance1-registry.cn-shanghai.cr.aliyuncs.com"
}
],
"AclEntries": [
{
"Comment": "1",
"Entry": "192.168.1.0/24"
}
]
}
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.