文档

CreateExpressConnectRouterAssociation - 专线网关(ECR)关联资源

更新时间:

专线网关ECR(Express Connect Router)关联专有网络(VPC)或者转发路由器(TR)。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
EcrIdstring

专线网关实例 ID。

ecr-mezk2idmsd0vx2****
AssociationRegionIdstring

关联资源所属的地域。

cn-hangzhou
TransitRouterOwnerIdlong

转发路由器实例所属阿里云账号(主账号)ID。默认值为当前登录的阿里云账号 ID。

说明 如果您要加载跨账号的网络实例,本参数必填。
189159362009****
TransitRouterIdstring

转发路由器 ID。

tr-2ze4i71c6be454e2l****
CenIdstring

云企业网实例 ID。

cen-of3o1the3i4gwb****
VpcOwnerIdlong

VPC 实例所属阿里云账号(主账号)ID。默认为当前登录的阿里云账号 ID。

说明 如果您要加载跨账号的网络实例,本参数必填。
132193271328****
VpcIdstring

VPC 实例 ID。

vpc-bp1h37fchc6jmfyln****
AllowedPrefixesarray

允许的前缀路由列表。

string

允许的前缀路由。

192.0.20.**/**
CreateAttachmentboolean

ECR 绑定 TR 时是否发起关联。取值:

  • true:不需要在转发路由器侧发起关联。
  • false:需要在转发路由器侧发起关联。
true
DryRunboolean

是否只预检此次请求。取值:

  • true:发送检查请求,不会修改服务资源。

  • false(默认值):发送正常请求。

false
ClientTokenstring

客户端 Token,用于保证请求的幂等性。

从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。

说明 若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。
02fb3da4-130e-11e9-8e44-00****

返回参数

名称类型描述示例值
object

RpcResponse

RequestIdstring

请求 ID。

05130E79-588D-5C40-A718-C4863A59****
Successboolean

是否调用成功。取值:

  • True:成功。
  • False:失败。
True
Codestring

判断调用是否成功。返回值为 200 表示加载成功,返回其他值表示加载失败,失败原因参见错误码。

200
Messagestring

操作返回信息。

OK
HttpStatusCodeinteger

HTTP 状态码。

200
DynamicCodestring

动态错误码。

IllegalParamFormat.EcrId
DynamicMessagestring

动态错误信息,用于替换返回参数 ErrMessage 错误信息中的%s

说明 如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则表示所传入的请求参数 DtsJobId 不合法。
The param format of EcrId **** is illegal.
AccessDeniedDetailstring

访问被拒绝详细信息。

Authentication is failed for ****
AssociationIdstring

专线网关与 VPC 或 TR 的关联 ID。

ecr-assoc-9p2qxx5phpca2m****

示例

正常返回示例

JSON格式

{
  "RequestId": "05130E79-588D-5C40-A718-C4863A59****",
  "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",
  "AssociationId": "ecr-assoc-9p2qxx5phpca2m****"
}

错误码

HTTP status code错误码错误信息描述
400IncorrectStatus.EcrEcr Status does not allow current operation.ECR实例不允许当前操作。请在进行中的操作完成后,重试
400OperationDenied.ForceDeletingThe current instance is being deleted.您当前操作被拒绝,专线网关实例正在被强制删除,请稍后再试
400UnsupportedRegionFeature not supported in specified region.指定的地域当前不支持专线网关功能。
400QuotaExceeded.VpcCountPerEcrThe number of VPC bound to the ECR exceeds the quota.单个专线网关实例可绑定的VPC数量已达到配额上限,请联系您的商务经理申请更大的配额数量
400QuotaExceeded.TrCountPerEcrThe number of TR bound to the ECR exceeds the quota.单个专线网关实例可绑定的TR数量已达到配额上限,请联系您的商务经理申请更大的配额数量
400IllegalParamFormat.AllowedPrefixesThe prefix parameter format is invalid. Procedure.指定的前缀路由网段格式错误。
400OperationDenied.NotGrantedByNodeOwnerThe node owner is not authorized.您当前操作被拒绝,专线网关产品未授权
400OperationFailed.CdtNotOpenedThe Cdt function is disabled.当前操作失败,未开启阿里云数据传输功能
400OperationFailed.CdtCrossBoarderNotOpenedThe Cdt cross-border transmission function is disabled.当前操作失败,未开启阿里云数据跨境传输功能
400OperationFailed.CrossBorderNotAllowedThere is no qualification for creating cross-border links.操作失败,当前企业不具备创建跨境链路权限,请联系您的商务经理添加此权限。
400OperationFailed.RejectedByEcYaochiThe request was rejected by Ec Yaochi.当前操作失败,Ec瑶池拒绝了您的请求
400OperationFailed.RejectedByVpcYaochiVpc Yaochi has rejected your current request.操作失败,Vpc瑶池拒绝了您当前请求
400OperationFailed.RejectedByCenYaochiCen Yaochi has rejected your current request.操作失败,Cen瑶池拒绝了您当前请求
400ResourceNotFound.CenIdCenId not found.Cen实例不存在
400ResourceNotFound.TrIdTRId not found.TR实例不存在
400Conflict.ASNOfVBRASN already used by other VBR.指定的ASN被其它VBR占用,请使用未被占用的ASN
400MissingParam.%sThe param of %s is missing.请求参数未填写,请核对对应的参数后重试。
400IllegalParamFormat.%sThe param format of %s is illegal.参数格式非法
400IllegalParamFormat.CenIdThe format of the entered Cen instance ID is incorrect.当前输入的Cen实例ID格式不正确
400OperationDenied.CrossBidAssociatingCross-border binding of resources is subject to compliance constraints.您当前的绑定资源涉及跨中国站点资源和海外站点资源互通,受限于合规约束请联系您的商务经理沟通处理。
400ExclusiveParam.TransitRouterIdAndVpcIdA private network instance cannot be bound to a forwarding router instance at the same time.专有网络实例与转发路由器实例无法同时绑定,请调整后选择其中一个实例进行绑定
400IllegalParamSize.AllowedPrefixesThe number of prefix routes exceeded the quota.您当前输入的前缀路由数量超过配额,请申请扩容。
400OperationDenied.CrossAccountAttachingIf the forwarding router is bound to another account, perform this operation on the same account.当前操作被拒绝,绑定其他账号转发路由器时,需在该账号做此操作
400OperationDenied.AttachmentInCurrentRegionExistedOnly one forwarding router can be bound to an area.当前操作被拒绝,专线网关实例在同一区域内只支持绑定一个转发路由器
400Conflict.LockThere are other unfinished operations.您当前有其他未完成的操作,请稍后重试
400OperationFailed.CallingVpcYaochiThe system is abnormal. Please try again later. 操作失败,系统内部异常,请稍后重试,若重试仍失败请联系您的商务经理获取帮助。
404ResourceNotFound.EcrIdEcrId not found.ECR实例不存在

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈