Retrieves the list of instance storage domain name routes.
Operation description
This API is available through a whitelist. Submit a ticket to request access.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetStorageDomainRoutingRule |
get |
*StorageDomainRoutingRule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-kmsiwlxxdcva**** |
| RuleId |
string |
No |
The rule ID. |
crasr-mdbpung4i1rm**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D4978DCC-ECBD-40B0-A714-EE695****** |
| Routes |
array |
The list of routes. |
|
| RouteItem |
The route entry. |
[{'Status': 'Published', 'DestinationCidrBlock': '10.192.0.0/14', 'NextHopId': 'eni-bp1gfdoy3r4f8bpc1nfq', 'Description': 'full cidr block route', 'NextHopType': 'NetworkInterface'}] |
|
| Code |
string |
The return code. |
success |
| Success |
boolean |
Indicates whether the request was successful. |
True |
| ModifyTime |
integer |
The modification time. The value is a UNIX timestamp in milliseconds. |
1571926439000 |
| CreateTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1571926439000 |
| RuleId |
string |
The rule ID. |
crsdr-luq6qiegzvx**** |
Examples
Success response
JSON format
{
"RequestId": "D4978DCC-ECBD-40B0-A714-EE695******",
"Routes": [
{
"InstanceDomain": "test-instance-registry-vpc.cn-hangzhou.cr.aliyuncs.com",
"StorageDomain": "https://cri-cfafawer***-registry.oss-cn-hangzhou.aliyuncs.com",
"EndpointType": "Internet"
}
],
"Code": "success",
"Success": true,
"ModifyTime": 1571926439000,
"CreateTime": 1571926439000,
"RuleId": "crsdr-luq6qiegzvx****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 200 | INSTANCE_NOT_EXIST | Instance does not exist. | The specified instance does not exist. |
| 403 | AuthenticationFailed | Authentication failed. | Authentication failed. |
| 404 | InvalidInstanceStorageDomainRoutingRule.NotFound | The specified InstanceStorageDomainRoutingRule does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.