查询专线网关ECR(Express Connect Router)前缀路由的历史记录。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
expressconnectrouter:DescribeExpressConnectRouterAllowedPrefixHistory |
list |
*ExpressConnectRouter
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
EcrId |
string |
是 |
专线网关实例 ID。 |
ecr-mezk2idmsd0vx2**** |
InstanceId |
string |
否 |
专线网关加载的实例 ID。 说明
InstanceId 参数和 AssociationId 参数必须输入一个。 |
vbr-j6cwxhgg0s5nuephp**** |
InstanceType |
string |
否 |
网络实例的类型。取值:
|
VPC |
DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
true |
ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
FF9nMec/RZ6H9oqFn1pvyir/SLRlxCCyHJonbGzqL01hiM6Jb3wJowdHvjCfog7ww1b9rSHMRFJnrUBfVba68TJg== |
AssociationId |
string |
否 |
专线网关与专有网络 VPC 或转发路由器 TR 的关联的实例 ID。 说明
InstanceId 参数和 AssociationId 参数必须输入一个。 |
ecr-assoc-9p2qxx5phpca2m**** |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
RpcResponse |
||
RequestId |
string |
请求 ID。 |
6FABF516-FED3-5697-BDA2-B18C5D9A**** |
Success |
boolean |
是否调用成功。取值:
|
True |
Code |
string |
判断调用是否成功。返回值为 200 表示加载成功,返回其他值表示加载失败,失败原因参见错误码。 |
200 |
Message |
string |
操作返回信息。 |
OK |
HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
DynamicCode |
string |
动态错误码。 |
IllegalParamFormat.EcrId |
DynamicMessage |
string |
动态错误信息,用于替换返回参数 ErrMessage 错误信息中的 说明
如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则代表所传入的请求参数 DtsJobId 不合法。 |
The param format of EcrId **** is illegal. |
AccessDeniedDetail |
string |
访问被拒绝详细信息。 |
Authentication is failed for **** |
AllowedPrefixHistoryList |
array<object> |
历史前缀路由列表。 |
|
object |
|||
AllowedPrefix |
array |
前缀路由。 |
|
string |
前缀路由条目。 |
10.0.**.**/1 |
|
GmtCreate |
string |
创建历史路由条目的时间。 |
1673751163000 |
示例
正常返回示例
JSON
格式
{
"RequestId": "6FABF516-FED3-5697-BDA2-B18C5D9A****",
"Success": true,
"Code": "200",
"Message": "OK",
"HttpStatusCode": 200,
"DynamicCode": "IllegalParamFormat.EcrId\n",
"DynamicMessage": "The param format of EcrId **** is illegal.\n",
"AccessDeniedDetail": "Authentication is failed for ****\n",
"AllowedPrefixHistoryList": [
{
"AllowedPrefix": [
"10.0.**.**/1"
],
"GmtCreate": "1673751163000"
}
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | ResourceNotFound.InstanceId | The instance id does not exist. | 当前输入的VPC/TR实例不存在 |
400 | MissingParam.%s | The param of %s is missing. | 请求参数未填写,请核对对应的参数后重试。 |
400 | IllegalParamFormat.%s | The param format of %s is illegal. | 参数格式非法 |
400 | IllegalParam.%s | The param of %s is illegal. | 参数非法 |
404 | ResourceNotFound.EcrId | EcrId not found. | ECR实例不存在 |
404 | ResourceNotFound.AssociationId | EcrAssociationId not found. | ECR Association实例不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。