调用CreatePhysicalConnection接口申请物理专线接入。
接口说明
您可以申请独享物理专线,也可以为租户申请共享物理专线。 申请完成后,物理专线的状态为 Initial,请联系运营商进行施工。
调用该接口时,请注意:
-
申请物理专线时,处于 Enabled 状态之外的物理专线不得超过 5 条。
-
若账号下存在欠费状态的物理专线,则不能再申请物理专线。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:CreatePhysicalConnection |
create |
*PhysicalConnection
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
物理专线所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-shanghai |
| AccessPointId |
string |
是 |
物理专线所在的接入点 ID。 |
ap-cn-beijing-ft-A |
| Type |
string |
否 |
物理专线的类型。默认值为 VPC。 |
VPC |
| LineOperator |
string |
是 |
提供接入物理线路的运营商。取值:
|
CT |
| bandwidth |
integer |
否 |
共享专线的带宽。单位:Mbps。 取值分别为 50、100、200、300、400、500、1000、2000、4000、5000、8000、10000。 |
50 |
| PeerLocation |
string |
否 |
本地数据中心的地理位置。 |
XX街道 |
| PortType |
string |
否 |
物理专线接入端口类型。取值:
说明
40GBase-LR 和 100GBase-LR 需要根据实际后台端口水位情况进行创建,具体水位情况请联系商务经理。 |
1000Base-T |
| RedundantPhysicalConnectionId |
string |
否 |
冗余物理专线的实例 ID。该专线的状态必须为 Allocated、Confirmed 或 Enabled。 |
pc-119mfjzm**** |
| Description |
string |
否 |
物理专线的描述信息。 长度为 2~256 个字符,必须以字母或中文开头,但不能以 |
description |
| Name |
string |
否 |
物理专线的名称。 长度为 2~128 个字符,必须以字母或中文开头,可包含数字、下划线(_)和短划线(-),但不能以 |
test |
| CircuitCode |
string |
否 |
运营商为物理专线提供的电路编码。 |
longtel001 |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
123e4567-e89b-12d3-a456-42665544**** |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
123e4567-e89b-12d3-a456-42665544**** |
| ResourceGroupId |
string |
否 |
物理专线所在的资源组 ID。 |
rg-acfmoiyermp**** |
| Tag |
array<object> |
否 |
标签列表。 |
|
|
object |
否 |
标签列表。 |
||
| Key |
string |
否 |
资源的标签键。最多支持输入 20 个标签键。如需传入该值,则不能输入空字符串。 最多支持 128 个字符,不能以 |
FinanceDept |
| Value |
string |
否 |
资源的标签值。最多支持输入 20 个标签值。如需传入该值,可以输入空字符串。 最多支持 128 个字符,不能以 |
FinanceJoshua |
| DeviceAdvancedCapacity |
array |
否 |
设备高级能力列表。 |
|
|
string |
否 |
设备高级能力列表,取值如下:
枚举值:
|
CENv6 |
|
| OpticalModuleModel |
string |
否 |
物理专线接入点光模块支持型号,取值:
|
SFP-GE-LR-SM1310,10KM |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| PhysicalConnectionId |
string |
物理专线实例 ID。 |
pc-bp1ciz7ekd2grn1as**** |
| RequestId |
string |
请求 ID。 |
8A6A5EC5-6F6C-4906-9689-56ACE58A13E0 |
示例
正常返回示例
JSON格式
{
"PhysicalConnectionId": "pc-bp1ciz7ekd2grn1as****",
"RequestId": "8A6A5EC5-6F6C-4906-9689-56ACE58A13E0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid.Status | The device or interface status invalid, or has been used.. | 参数Status无效 |
| 400 | InvalidType.Malformd | The Type provided was invalid. | |
| 400 | InvalidPeerLocation.Malformd | The PeerLocation provided was invalid. | |
| 400 | InvalidLineOperator.Malformd | The LineOperator provided was invalid. | |
| 400 | InvalidPortType.Malformd | The PortType provided was invalid. | |
| 400 | InvalidDescription.Malformed | The specifid ?Description? is not valid. | 指定的资源描述格式不合法。长度为2~256个字符,不能以http://和https://开头。 |
| 400 | InvalidRedundantPhysicalConnectionId.NotFound | The RedundantPhysicalConnectionId does not found. | |
| 400 | InvalidName.Malformed | The specified ?Name? is not valid. | |
| 400 | QuotaExceeded.pConnPerAP | Physical connection count per ap quota exceed. | |
| 400 | InvalidBandwidth | invalid physical connection banwidth. | |
| 400 | InvalidRedundantPhysicalConnection | redundant physical connection doesn't belong to current user. | |
| 400 | InvalidRedundantPhysicalConnectionStatus | invalid redundant physical connection status. | |
| 400 | InvalidCircuitCode.Malformed | circuitCode is illegal. | |
| 400 | QuotaExceeded.freePconnPerAP | free physical connections count excceeded. | |
| 400 | InvalidPhysicalConnectionOperator.Malformed | Specified PhysicalConnection Operator is not valid. | 专线的操作无效 |
| 400 | InvalidPhysicalConnectionPortType.Malformed | Specified PhysicalConnection PortType is not valid. | 专线的端口类型无效 |
| 400 | InvalidPhysicalConnectionBandwidth.Malformed | Specified PhysicalConnection Bandwidth is not valid. | 专线绑定的带宽值无效 |
| 400 | IllegalParam.ClientToken | Token verify failed because client token length too long. | ClientToken参数不合法 |
| 400 | InvalidPortType.NotFound | Specified port type is not found. | 指定规格端口已无库存。 |
| 400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失败,因为出方向流量未开通。 |
| 400 | InvalidAccessPointId.NotEnabled | Invalid access point status. | 当前接入点暂无足够资源可支持接入,请联系您的商务经理 |
| 400 | ResourceNotFound.AccessPointId | The specified resource of access point id is not found. | 当前接入点信息不存在,请核对后重试。 |
| 400 | InvalidParameter.DeviceAdvancedCapacity | Invalid physical connection device advanced capacity. | 端口高级能力暂时不支持,请确认后重试。 |
| 404 | InvalidPortType.NotFound | There are no resources with the portType. | 没有该端口类型 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。