All Products
Search
Document Center

Virtual Private Cloud:CreatePhysicalConnectionOccupancyOrder

Last Updated:Dec 20, 2024

Creates an order for resource occupation of an Express Connect circuit.

Operation description

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:CreatePhysicalConnectionOccupancyOrdercreate
*PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
    none
none

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.
400IncorrectStatus.PhysicalConnectionInvalid physical connection status.The Express Connect circuit is in an invalid state.
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
2024-07-29The Error code has changedView Change Details
2023-12-21The Error code has changedView Change Details
2023-09-11API Description Update. The Error code has changedView Change Details