Creates an order for resource usage fees.
Operation description
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the Express Connect circuit. You can 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. 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. | PrePaid |
AutoPay | boolean | No | Specifies whether to enable automatic payments. Valid values:
| false |
PricingCycle | string | No | The billing cycle of the subscription. Valid values:
| Month |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. | CBCE910E-D396-4944 |
Response parameters
Examples
Sample success responses
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. | The operation cannot be performed when the Express Connect circuit in the current 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. |
404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | The RegionId parameter is set to an invalid value. Specify a valid value and try again. |
404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. | The Express Connect circuit does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-21 | The Error code has changed | View Change Details |
2023-09-11 | API Description Update. The Error code has changed | View Change Details |