Creates an order for the resource occupation fee.
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | CreatePhysicalConnectionOccupancyOrder |
The name of this action. Value: CreatePhysicalConnectionOccupancyOrder |
PhysicalConnectionId | String | Yes | pc-bp1hp0wr072f6ambni141 |
The instance ID of the physical connection. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region to which the physical connection belongs. |
AutoPay | Boolean | No | true |
Optional. Indicates whether to pay automatically. Valid values:
|
ClientToken | String | No | CBCE910E-D396-4944-8764-B4047838B2D1 |
Optional. The client token used for authentication. |
InstanceChargeType | String | No | PostPaid |
Optional. The billing method of the physical connection. Valid values:
|
Period | Integer | No | 1 |
Optional. The number of months or years of Subscription. |
PricingCycle | String | No | Month |
Optional. The cycle of Subscription.
|
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | CBCE910E-D396-4944-8764-B4047838B2D1 |
The request ID. |
Examples
Request example
http(s)://[Endpoint]/? Action=CreatePhysicalConnectionOccupancyOrder
&PhysicalConnectionId=pc-bp1hp0wr072f6ambni141
&RegionId=cn-hangzhou
&<CommonParameters>
Response examples
XML
format
<CreatePhysicalConnectionOccupancyOrderResponse>
<code>200</code>
<data>
<orderId>203167309740138</orderId>
</data>
<httpStatusCode>200</httpStatusCode>
<message>successful</message>
<requestId>CBCE910E-D396-4944-8764-B4047838B2D1</requestId>
<success>true</success>
</CreatePhysicalConnectionOccupancyOrderResponse>
JSON
format
{
"message":"successful",
"httpStatusCode":200,
"requestId":"CBCE910E-D396-4944-8764-B4047838B2D1",
"data":{
"orderId":203167309740138
},
"code":"200",
"success":true
}
Errors
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. | The specified physical connection does not exist. |
400 | Forbidden.NotAllowedInState | The request does not allow in this state. | The request cannot be processed because the status of the resource does not permit this action. |
For a list of error codes, visit the API Error Center.