Creates an order for resource occupancy fees for an Express Connect circuit.
Operation description
This operation is supported only when the Express Connect circuit is in the Complete (waiting for user payment) state.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Express Connect circuit. Call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| PhysicalConnectionId |
string |
Yes |
The ID of the Express Connect circuit. |
pc-bp1hp0wr072f6**** |
| Period |
integer |
No |
The subscription duration.
|
1 |
| InstanceChargeType |
string |
No |
The billing method. Valid value: PrePaid (subscription). Ensure that your Alibaba Cloud account supports balance payments or credit payments. |
PrePaid |
| AutoPay |
boolean |
No |
Whether to enable automatic payment. Valid values:
|
false |
| PricingCycle |
string |
No |
The billing cycle of the subscription. Valid values:
|
Month |
| ClientToken |
string |
No |
The client token used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among requests. |
CBCE910E-D396-4944 |
| AutoRenew |
boolean |
No |
Whether to enable auto-renewal. Valid values:
|
false |
| AutoRenewDuration |
integer |
No |
The auto-renewal duration. Unit: months. Valid values: 0 to 2147483647. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9B9300FE-11E2-4E3B-949C-BED3B44DD26D |
| Data |
object |
The details. |
|
| OrderId |
string |
The order ID. |
50187055895**** |
Examples
Success response
JSON format
{
"RequestId": "9B9300FE-11E2-4E3B-949C-BED3B44DD26D",
"Data": {
"OrderId": "50187055895****"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IAbs.InvalidStatus.ValueNotSupported | status is not supported. | The status is invalid. |
| 400 | InvalidPrice.NotFound | Pricing plan result not found. | The Price parameter is set to an invalid value. |
| 400 | InvalidPhysicalConnectionChargeType.Malformed | Specified Physical Connection ChargeType is not valid. | The InstanceChargeType parameter is set to an invalid value. |
| 400 | InvalidPhysicalConnectionPeriod.Malformed | Specified Physical Connection Period is not valid. | The Period parameter is set to an invalid value. |
| 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 | The instance in the current state does not support the operation. |
| 400 | Abs.InstanceNotExist | The specified instance does not exist. | The specified instance does not exist. |
| 400 | IncorrectStatus.PhysicalConnection | Invalid physical connection status. | The Express Connect circuit is in an invalid state. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.