调用CreateVirtualPhysicalConnection接口创建共享专线。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:CreateVirtualPhysicalConnection |
create |
*PhysicalConnection
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| OrderMode |
string |
是 |
共享专线的付费方式。取值:
|
PayByVirtualPhysicalConnectionOwner |
| VlanId |
integer |
是 |
共享专线的 VLAN ID。取值范围:0~2999。
|
4 |
| Spec |
string |
是 |
共享专线的带宽值。 取值:50M、100M、200M、300M、400M、500M、1G、2G、5G、8G、10G。 说明
2G、5G、8G、10G 的带宽值默认不开放,如需使用,请联系您的客户经理申请。 单位:M 表示 Mbps,G 表示 Gbps。 |
50M |
| VpconnAliUid |
integer |
是 |
租户的阿里云账号(主账号)ID。 |
1210123456123456 |
| PhysicalConnectionId |
string |
是 |
共享专线关联的物理专线 ID。 |
pc-bp1ciz7ekd2grn1as**** |
| Name |
string |
否 |
共享专线的名称。 长度为 2~128 个字符,必须以字母或中文开头,可包含数字、下划线(_)和短划线(-),但不能以 |
nametest |
| Token |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
CBCE910E-D396-4944-8**** |
| DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
false |
| Description |
string |
否 |
共享专线的描述信息。 长度为 2~256 个字符,必须以字母或中文开头,但不能以 |
desctest |
| RegionId |
string |
是 |
共享专线所属的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| ResourceGroupId |
string |
否 |
共享专线所属的资源组 ID。 |
rg-aekzjty2chzuqky |
| Tag |
array<object> |
否 |
标签列表。 |
|
|
object |
否 |
标签列表。 |
||
| Key |
string |
否 |
资源的标签键。最多支持输入 20 个标签键。一旦传入该值,则不允许为空字符串。 最多支持 64 个字符,可包含数字、半角句号(.)、下划线(_)和短划线(-),不能以 |
FinanceDept |
| Value |
string |
否 |
资源的标签值。最多支持输入 20 个标签值。一旦传入该值,可以为空字符串。 最多支持 128 个字符,可包含数字、半角句号(.)、下划线(_)和短划线(-),不能以 |
FinanceJoshua |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求 ID。 |
||
| RequestId |
string |
请求 ID。 |
CD14EA74-E9C3-59A9-942A-DFEC7E12818D |
| VirtualPhysicalConnection |
string |
共享专线实例 ID。 |
pc-bp1mrgfbtmc9brre7**** |
示例
正常返回示例
JSON格式
{
"RequestId": "CD14EA74-E9C3-59A9-942A-DFEC7E12818D",
"VirtualPhysicalConnection": "pc-bp1mrgfbtmc9brre7****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | OperationFailed.VbrBindedPconn | The operation is failed because of VbrBindedPconn. | VBR已绑定PCONN。 |
| 400 | IllegalParam.Bandwidth | The param of Bandwidth [%s] is illegal. | 传入的带宽不合法。 |
| 400 | ResourceNotFound.PhysicalConnectionId | The specified PhysicalConnectionId [%s] is not found. | PhysicalConnectionId未找到。 |
| 400 | OperationFailed.VPconnCreated | The operation is failed because of VPconnCreated. | 无法创建VPconn |
| 400 | MissingParam.Spec | The param of Spec is missing. | Spec参数缺失 |
| 400 | IllegalParam.Spec | The param of Spec is illegal. | Spec不合法 |
| 400 | IllegalParam.VlanId | The param of VlanId is illegal. | VlanId不合法 |
| 400 | VLAN_ID_HAS_BEEN_USED_IN_PHYSICAL_CONNECTION | vlan id has been used in physical connection | |
| 400 | InvalidPhysicalConnectionId.NotFound | The specified PhysicalConnectionId is not found. | 该物理专线ID不存在。 |
| 400 | MissingParameter | The input parameter 'PhysicalConnectionId' that is mandatory for processing this request is not supplied. | |
| 400 | InvalidPhysicalConnectionId.NotEnabled | The specified PhysicalConnectionId is not in Enabled state. | |
| 400 | OperationFailed.PconnAllocateVlan0 | The operation is failed because of PconnAllocatedResource. | |
| 400 | InvalidVlanId.Malformed | The specified VlanId is not valid. | |
| 400 | InvalidName.Malformed | The specified Name is not valid. | 参数Name值不合法 |
| 400 | ResourceNotEnough.Bandwidth | The specified resource of Bandwidth is not enough. | 带宽资源不足 |
| 400 | IllegalParam.VpconnAliUid | The specified AliUid of Vpconn is illegal. | Vpconn的AliUid参数不合法 |
| 400 | IllegalParam.OrderMode | The param of OrderMode is illegal. | OrderMode参数非法 |
| 400 | Forbidden.VpconnAliUid | Vpconn UID is forbidden to belong to a RAM account or partner account. | 共享端口UID不能是RAM账号或者合作伙伴账号 |
| 400 | QuotaExceeded.VPCONN | The quota of VPCONN_COUNT_PER_PCONN is exceeded | 单根物理端口上创建的共享端口配额超限 |
| 400 | OperationDenied.CreateVpconn | You are not allowed to create virtual physical connection. Please contact your CBM. | 无权限创建共享专线,请联系商务经理。 |
| 400 | InvalidDescription.Malformed | The specified Description is not valid. | 参数Description值不合法 |
| 400 | EcAssociatedQoSPconnNotAllowCreateVpconn | The specified Pconn associated with Qos is not allowed to create Vpconn.Please contact the business manager. | 绑定了Qos策略的独享物理专线不允许创建共享物理专线,请联系商务经理。 |
| 400 | IllegalParam.ResourceGroupId | Invalid ResourceGroupld value. | 指定的资源组非法或不存在 |
| 400 | Forbidden.VpconnCrossBid | Not allow to create across bid virtual physical connection. | |
| 400 | IncorrectStatus.PhysicalConnection | Invalid physical connection status. | 物理专线状态不正常。 |
| 400 | OperationDenied.PhysicalConnectionNotSupportMPBGPAndMPBGP-v6 | The operation is not allowed because this physical connection not support MPBGP and MPBGP-v6. | 不允许执行该操作,因为当前物理端口不支持MPBGP和MPBGP-v6等高级能力。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。