全部产品
Search
文档中心

高速通道:CreatePhysicalConnectionOccupancyOrder - 创建资源占用费订单

更新时间:Aug 28, 2026

调用CreatePhysicalConnectionOccupancyOrder接口创建资源占用费用的订单。

接口说明

说明

只有物理专线状态为等待用户支付(Complete)的实例允许执行此操作。

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

RegionId

string

物理专线所在的地域 ID。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-hangzhou

PhysicalConnectionId

string

物理专线的实例 ID。

pc-bp1hp0wr072f6****

Period

integer

购买时长。

  • PricingCycle 取值 Month 时,Period 取值范围为1~9

  • PricingCycle 取值 Year 时,Period 取值范围为1~5

1

InstanceChargeType

string

实例的付费方式。取值:

PrePaid:预付费,包年包月。选择该类付费方式时,您必须确认您阿里云账号支持余额支付或信用支付。

PrePaid

AutoPay

boolean

是否自动支付。取值:

  • true:自动支付。您需要确保账户余额充足,如果账户余额不足会生成异常订单,只能作废订单。

  • false(默认值):只生成订单不扣费。

false

PricingCycle

string

预付费的计费周期,取值:

  • Month(默认值):按月购买。

  • Year:按年购买。

Month

ClientToken

string

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

由客户端生成该参数值,要保证在不同请求间唯一。

CBCE910E-D396-4944

AutoRenew

boolean

是否开通自动续费。取值:

  • false(默认值):不开通。

  • true:开通。

false

AutoRenewDuration

integer

自动续费时长。单位:月。取值范围:0~2147483647。默认值:1

1

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

9B9300FE-11E2-4E3B-949C-BED3B44DD26D

Data

object

数据的详细信息。

OrderId

string

已下订单的 ID。

50187055895****

示例

正常返回示例

JSON格式

{
  "RequestId": "9B9300FE-11E2-4E3B-949C-BED3B44DD26D",
  "Data": {
    "OrderId": "50187055895****"
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 IAbs.InvalidStatus.ValueNotSupported status is not supported. status参数无效
400 InvalidPrice.NotFound Pricing plan result not found. Price参数无效
400 InvalidPhysicalConnectionChargeType.Malformed Specified Physical Connection ChargeType is not valid. InstanceChargeType参数无效
400 InvalidPhysicalConnectionPeriod.Malformed Specified Physical Connection Period is not valid. Period参数无效
400 InvalidPhysicalConnectionPricingCycle.Malformed Specified Physical Connection PricingCycle is not valid.
400 Forbidden.NotAllowedInState The request does not allow in this state.
400 INSTANCE.STATUS.NOT.ALLOW Instance status not allow 实例状态不允许
400 Abs.InstanceNotExist The specified instance does not exist. 指定的实例不存在。
400 IncorrectStatus.PhysicalConnection Invalid physical connection status. 物理专线状态不正常。
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 指定的RegionId不存在
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records.

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

变更历史

更多信息,参考变更详情