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
RegionId String Yes cn-hangzhou

The region ID of the Express Connect circuit.

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

PhysicalConnectionId String Yes pc-bp1hp0wr072f6****

The ID of the Express Connect circuit.

Period Integer No 1

The subscription duration.

  • 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 PrePaid

The billing method of the Express Connect circuit. Set the value to

PrePaid, which specifies the subscription billing method. If you choose this billing method, make sure that your Alibaba Cloud account supports balance payments or credit payments.

AutoPay Boolean No false

Specifies whether to enable automatic payments. Valid values:

  • true: yes 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.
Action String Yes CreatePhysicalConnectionOccupancyOrder

The operation that you want to perform.

Set the value to CreatePhysicalConnectionOccupancyOrder.

ClientToken String No CBCE910E-D396-4944

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 ensure that it is unique among different requests.

Response parameters

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

The ID of the request.

Data Object

The details.

OrderId String 50187055895****

The ID of the order that is placed.

Examples:

Sample requests

http(s)://[Endpoint]/?RegionId=cn-hangzhou
&PhysicalConnectionId=pc-bp1hp0wr072f6****
&Period=1
&InstanceChargeType=PrePaid
&AutoPay=false
&PricingCycle=Month
&Action=CreatePhysicalConnectionOccupancyOrder
&ClientToken=CBCE910E-D396-4944
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreatePhysicalConnectionOccupancyOrderResponse>
    <RequestId>9B9300FE-11E2-4E3B-949C-BED3B44DD26D</RequestId>
    <Data>
        <OrderId>50187055895****</OrderId>
    </Data>
</CreatePhysicalConnectionOccupancyOrderResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

HttpCode Error code Error message Description
400 IAbs.InvalidStatus.ValueNotSupported status is not supported. The error message returned because the specified status is invalid.
400 InvalidPrice.NotFound Pricing plan result not found. The error message returned because the Price parameter is set to an invalid value.
400 InvalidPhysicalConnectionChargeType.Malformed Specified Physical Connection ChargeType is not valid. The error message returned because the InstanceChargeType parameter is set to an invalid value.
400 nvalidPhysicalConnectionPeriod.Malformed Specified Physical Connection Period is not valid. The error message returned because the Period parameter is set to an invalid value.
400 InvalidPhysicalConnectionPeriod.Malformed Specified Physical Connection Period is not valid. The error message returned because the Period parameter is set to an invalid value.
400 Forbidden.NotAllowedInState The request does not allow in this state. The error message returned because the operation cannot be performed when the Express Connect circuit in the current state.
400 INSTANCE.STATUS.NOT.ALLOW Instance status not allow The error message returned because the instance in the current state does not support the operation.
400 Abs.InstanceNotExist The specified instance does not exist. The error message returned because the specified instance does not exist.
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. The error message returned because the Express Connect circuit does not exist.

For a list of error codes, see Service error codes.