All Products
Search
Document Center

PolarDB:CreateOrGetVirtualLicenseOrder

Last Updated:Sep 24, 2026

Creates or retrieves a virtual certificate order.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:CreateOrGetVirtualLicenseOrder

create

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Engine

string

Yes

The engine type. Valid values: PG, Oracle, and MySQL.

Valid values:

  • MySQL :

    MySQL

  • PG :

    PostgreSQL

  • Oracle :

    Oracle

PG

Response elements

Element

Type

Description

Example

object

Schema of Response

ActivatedCodeCount

integer

The number of activation codes that have been generated.

1

ActivationCodeQuota

integer

The quota of activation codes that can be requested.

10

AliyunOrderId

string

The Alibaba Cloud order ID, which includes the virtual order ID.

2233****445566

AllowEmptySystemIdentifier

boolean

Indicates whether the System Identifier can be left empty when generating an activation code.

false

GmtCreated

string

The time when the order was created.

2024-10-16 16:46:20

GmtModified

string

The time when the order was last updated.

2024-10-16 16:46:20

IsVirtualOrder

boolean

Indicates whether the order is a virtual order. Virtual orders allow pre-generation of activation codes.

true

IsVirtualOrderFrozen

boolean

Indicates whether the virtual order is frozen. A frozen virtual order does not allow further generation of activation codes.

false

PackageType

string

The package type.

pre_generation_long_term

PackageValidity

string

The validity period of the package. Typical values are one year or long-term (30 years).

30 years

PurchaseChannel

string

The purchase channel.

aliyun_market

RequestId

string

Id of the request

45D24263-7E3A-4140-9472-************

VirtualOrderId

string

The virtual order ID.

2024********483

Examples

Success response

JSON format

{
  "ActivatedCodeCount": 1,
  "ActivationCodeQuota": 10,
  "AliyunOrderId": "2233****445566",
  "AllowEmptySystemIdentifier": false,
  "GmtCreated": "2024-10-16 16:46:20",
  "GmtModified": "2024-10-16 16:46:20",
  "IsVirtualOrder": true,
  "IsVirtualOrderFrozen": false,
  "PackageType": "pre_generation_long_term",
  "PackageValidity": "30 years",
  "PurchaseChannel": "aliyun_market",
  "RequestId": "45D24263-7E3A-4140-9472-************",
  "VirtualOrderId": "2024********483"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.