All Products
Search
Document Center

Virtual Private Cloud:CreatePhysicalConnectionOccupancyOrder

Last Updated:Jul 10, 2024

Creates an order for resource usage fees.

Operation description

Note You can call this operation only when the Express Connect circuit is in the Complete state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the Express Connect circuit.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
PhysicalConnectionIdstringYes

The ID of the Express Connect circuit.

pc-bp1hp0wr072f6****
PeriodintegerNo

The subscription duration.

  • If PricingCycle is set to Month, set Period to a value from 1 to 9.
  • If PricingCycle is set to Year, set Period to a value from 1 to 5.
1
InstanceChargeTypestringNo

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
AutoPaybooleanNo

Specifies whether to enable automatic payments. Valid values:

  • true: yes Make sure that you have a sufficient balance in your account. Otherwise, your order becomes invalid and is automatically canceled.
  • false: disables automatic payment. This is the default value.
false
PricingCyclestringNo

The billing cycle of the subscription. Valid values:

  • Month (default)
  • Year
Month
ClientTokenstringNo

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

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

9B9300FE-11E2-4E3B-949C-BED3B44DD26D
Dataobject

The details.

OrderIdstring

The ID of the order that is placed.

50187055895****

Examples

Sample success responses

JSONformat

{
  "RequestId": "9B9300FE-11E2-4E3B-949C-BED3B44DD26D",
  "Data": {
    "OrderId": "50187055895****"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400IAbs.InvalidStatus.ValueNotSupportedstatus is not supported.The status is invalid.
400InvalidPrice.NotFoundPricing plan result not found.The Price parameter is set to an invalid value.
400InvalidPhysicalConnectionChargeType.MalformedSpecified Physical Connection ChargeType is not valid.The InstanceChargeType parameter is set to an invalid value.
400InvalidPhysicalConnectionPeriod.MalformedSpecified Physical Connection Period is not valid.The Period parameter is set to an invalid value.
400InvalidPhysicalConnectionPricingCycle.MalformedSpecified Physical Connection PricingCycle is not valid.-
400Forbidden.NotAllowedInStateThe request does not allow in this state.The operation cannot be performed when the Express Connect circuit in the current state.
400INSTANCE.STATUS.NOT.ALLOWInstance status not allowThe instance in the current state does not support the operation.
400Abs.InstanceNotExistThe specified instance does not exist.The specified instance does not exist.
404InvalidRegionId.NotFoundThe RegionId provided does not exist in our records.The RegionId parameter is set to an invalid value. Specify a valid value and try again.
404InvalidPhysicalConnectionId.NotFoundThe 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 timeSummary of changesOperation
2023-12-21The Error code has changedView Change Details
2023-09-11API Description Update. The Error code has changedView Change Details