Create an order for the initial installation fee.

Debug

Perform a debug in OpenAPI Explorer. We recommend that you use OpenAPI Explorer. By using OpenAPI Explorer, you can call APIs, generate SDK code examples automatically, and search APIs, allowing you to quickly and easily get started with using APIs on the cloud.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreatePhysicalConnectionOccupancyOrder

The action to perform.

Valid value: CreatePhysicalConnectionOccupancyOrder.

PhysicalConnectionId String Yes pc-bp1hp0wr072f6ambni141

The instance ID of the physical connection interface.

RegionId String Yes cn-hangzhou

The ID of the region where the leased line is deployed.

AutoPay Boolean No true

Optional. Indicates whether to pay automatically. Valid values:

  • true (default value): Pay automatically. If you select this value, you must ensure that your account has enough available funds. Otherwise, the order that is generated is invalid.
  • false: Generates the order only. No fee is deducted from your account.
ClientToken String No CBCE910E-D396-4944-8764-B4047838B2D1

Optional. The token used for client authentication.

InstanceChargeType String No PostPaid

Optional. The billing method of the instance. Valid values:

  • PrePaid: Subscription. If you select this value, you must make sure that your account has enough available funds.
  • PostPaid (default value): Pay-As-You-Go
Period Integer No 1

Optional. The validity period of a Subscription.

PricingCycle String No Month

Optional. The Subscription cycle. Valid values:

  • Month
  • Year

Response parameters

Parameter Type Example value Description
RequestId String CBCE910E-D396-4944-8764-B4047838B2D1

The ID of the request.

Example

Request example


http(s)://[Endpoint]/?PhysicalConnectionId=pc-bp1hp0wr072f6ambni141
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<CreatePhysicalConnectionOccupancyOrder>
  <code>200</code>
  <data>
    <orderId>203167309740138</orderId>
  </data>
  <httpStatusCode>200</httpStatusCode>
  <message>successful</message>
  <requestId>CBCE910E-D396-4944-8764-B4047838B2D1</requestId>
  <success>true</success>
</CreatePhysicalConnectionOccupancyOrder>

JSON format

{
	"message":"successful",
	"httpStatusCode":200,
	"requestId":"CBCE910E-D396-4944-8764-B4047838B2D1",
	"data":{
		"orderId":203167309740138
	},
	"code":"200",
	"success":true
}

Error codes

HttpCode Error code Error message Description
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. The ID of the physical connection does not exist.
400 Forbidden.NotAllowedInState The request does not allow in this state. Your request cannot be executed because the status of the physical connection does not permit this action.

Click here to view the error codes.