CreatePhysicalConnectionOccupancyOrder - 创建资源占用费订单

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

接口说明

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

调试

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

授权信息

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

请求参数

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

物理专线所在的地域 ID。

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

cn-hangzhou
PhysicalConnectionIdstring

物理专线的实例 ID。

pc-bp1hp0wr072f6****
Periodinteger

购买时长。

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

实例的付费方式。取值:

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

PrePaid
AutoPayboolean

是否自动支付。取值:

  • true:自动支付。您需要确保账户余额充足,如果账户余额不足会生成异常订单,只能作废订单。
  • false(默认值):只生成订单不扣费。
false
PricingCyclestring

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

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

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

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

CBCE910E-D396-4944
AutoRenewboolean

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

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

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

1

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

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

数据的详细信息。

OrderIdstring

已下订单的 ID。

50187055895****

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400IAbs.InvalidStatus.ValueNotSupportedstatus is not supported.status参数无效
400InvalidPrice.NotFoundPricing plan result not found.Price参数无效
400InvalidPhysicalConnectionChargeType.MalformedSpecified Physical Connection ChargeType is not valid.InstanceChargeType参数无效
400InvalidPhysicalConnectionPeriod.MalformedSpecified Physical Connection Period is not valid.Period参数无效
400InvalidPhysicalConnectionPricingCycle.MalformedSpecified Physical Connection PricingCycle is not valid.-
400Forbidden.NotAllowedInStateThe request does not allow in this state.该状态无法执行请求。
400INSTANCE.STATUS.NOT.ALLOWInstance status not allow实例状态不允许
400Abs.InstanceNotExistThe specified instance does not exist.指定的实例不存在。
400IncorrectStatus.PhysicalConnectionInvalid physical connection status.物理专线状态不正常。
404InvalidRegionId.NotFoundThe RegionId provided does not exist in our records.指定的RegionId不存在
404InvalidPhysicalConnectionId.NotFoundThe PhysicalConnectionId provided does not exist in our records.该物理专线不存在。

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

变更历史

变更时间变更内容概要操作
2024-07-29OpenAPI 错误码发生变更查看变更详情
2023-12-21OpenAPI 错误码发生变更查看变更详情
2023-09-11OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情