調用CreatePhysicalConnectionOccupancyOrder建立資源佔用費訂單。

調試

前往【API Explorer】線上調試,API Explorer 提供線上調用 API、動態產生 SDK Example 代碼和快速檢索介面等能力,能顯著降低使用雲 API 的難度,強烈推薦使用。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String CreatePhysicalConnectionOccupancyOrder

要執行的操作。

取值:CreatePhysicalConnectionOccupancyOrder

PhysicalConnectionId String pc-bp1hp0wr072f6ambni141

物理專線的執行個體ID。

RegionId String cn-hangzhou

物理專線所在的地區。

AutoPay Boolean true

是否自動支付。取值範圍:

  • true(預設):自動支付。您需要確保賬戶餘額充足,如果賬戶餘額不足會產生異常訂單,只能作廢訂單。
  • false:只產生訂單不計費。
ClientToken String CBCE910E-D396-4944-8764-B4047838B2D1

用戶端Token鑒權。

InstanceChargeType String PostPaid

執行個體的付費方式。取值範圍:

  • PrePaid:預付費,訂用帳戶。選擇該類付費方式時,您必須確認自己的帳號支援餘額支付/信用支付。
  • PostPaid(預設):隨用隨付。
Period Integer 1

購買時間長度。

PricingCycle String Month

訂購的周期單位。

  • 年:Year。
  • 月:Month。

返回資料

名稱 類型 樣本值 描述
RequestId String CBCE910E-D396-4944-8764-B4047838B2D1

請求ID。

樣本

請求樣本


http(s)://[Endpoint]/?Action=CreatePhysicalConnectionOccupancyOrder
&PhysicalConnectionId=pc-bp1hp0wr072f6ambni141
&RegionId=cn-hangzhou
&<公用請求參數>

正常返回樣本

XML 格式

<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 格式

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

錯誤碼

HttpCode 錯誤碼 錯誤資訊 描述
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. 該物理專線不存在。
400 Forbidden.NotAllowedInState The request does not allow in this state. 該狀態無法執行請求。

訪問錯誤中心查看更多錯誤碼。