Creates an order for resource occupation of an Express Connect circuit.

Note You can call this operation only when the Express Connect circuit is in the ( Complete) state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreatePhysicalConnectionOccupancyOrder

The operation that you want to perform.

Set the value to CreatePhysicalConnectionOccupancyOrder.

PhysicalConnectionId String Yes pc-bp1hp0wr072f6******

The ID of the Express Connect circuit.

RegionId String Yes cn-hangzhou

The ID of the region where the Express Connect circuit is deployed.

You can call the DescribeRegions operation to query the most recent region list.

Period Integer No 1

The subscription duration.

Note When InstanceChargeType is set to PrePaid, you must specify this parameter. You do not need to specify this parameter when InstanceChargeType is set to PostPaid.
  • If PricingCycle is set to Month, set Period to a value from 1 to 9.
  • If PricingCycle is set to Year, set Period to a value from 1 to 5.
InstanceChargeType String No PostPaid

The billing method of the Express Connect circuit. Valid values:

  • PrePaid: subscription. If you choose this billing method, make sure that you Alibaba Cloud account supports balance payments or credit payments.
  • PostPaid: pay-as-you-go. This is the default value.
AutoPay Boolean No false

Specifies whether to enable automatic payment. Valid values:

  • true: enables automatic payment. Make sure that you have a sufficient balance in your account. Otherwise, your order becomes invalid and is automatically canceled.
  • false: disables automatic payment. This is the default value.
PricingCycle String No Month

The billing cycle of the subscription. Valid values:

  • Month: Bills are paid on a monthly basis. This is the default value.
  • Year: Bills are paid on an annual basis.
ClientToken String No CBCE910E-D396-4944-8****

The client Token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String 9B9300FE-11E2-4E3B-949C-BED3B44DD26D

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreatePhysicalConnectionOccupancyOrder
&PhysicalConnectionId=pc-bp1hp0wr072f6******
&RegionId=cn-hangzhou
&<Common request parameters>

Successful response examples

XML format

<CreatePhysicalConnectionOccupancyOrderResponse>
      <RequestId>9B9300FE-11E2-4E3B-949C-BED3B44DD26D</RequestId>
</CreatePhysicalConnectionOccupancyOrderResponse>

JSON format

{
    "CreatePhysicalConnectionOccupancyOrderResponse": {
        "RequestId": "9B9300FE-11E2-4E3B-949C-BED3B44DD26D"
    }
}

Error codes

HttpCode Error code Error message Description
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. The error message returned because the Express Connect circuit does not exist.
400 Forbidden.NotAllowedInState The request does not allow in this state. The error message returned because the current status does not support this operation.

For a list of error codes, visit the API Error Center.