Creates an application for a PolarDB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateApplication |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Description |
string |
No |
The description of the application. |
myapp |
| ApplicationType |
string |
Yes |
The application type. Valid values:
|
supabase |
| DBClusterId |
string |
No |
The ID of the PolarDB instance on which the application depends. |
pc-************** |
| RegionId |
string |
No |
The region. The default is the region of the instance. |
cn-beijing |
| ZoneId |
string |
No |
The zone. The default is the primary zone of the instance. |
cn-beijing-k |
| VSwitchId |
string |
No |
The vSwitch. The default is the current vSwitch in the primary zone of the instance. |
vsw-********************* |
| Architecture |
string |
Yes |
The CPU architecture. Valid value:
|
x86 |
| Endpoints |
array<object> |
No |
A list of custom service Endpoints. By default, a VPC Endpoint is created. |
|
|
object |
No |
The service Endpoint. |
||
| Description |
string |
No |
The description of the service Endpoint. |
my_endpoint |
| EndpointType |
string |
No |
The type of the service Endpoint. This is fixed to Primary. |
Primary |
| Components |
array<object> |
No |
A list of custom subcomponents for the application. |
|
|
object |
No |
The application subcomponent. |
||
| ComponentType |
string |
No |
The type of the application subcomponent. For supabase, valid values are:
For raycluster, valid values are:
|
gateway |
| ComponentClass |
string |
No |
The specifications of the application subcomponent. |
polar.app.g2.medium |
| ComponentReplica |
integer |
No |
The number of replicas for the application subcomponent. The default is 1. |
1 |
| SecurityIPList |
string |
No |
The IP address whitelist for the application subcomponent. Separate multiple IP addresses with commas. |
127.0.0.1 |
| SecurityIPType |
string |
No |
The type of IP addresses in the whitelist for the application subcomponent. The default is ipv4. |
ipv4 |
| SecurityIPArrayName |
string |
No |
The name of the IP address whitelist group for the application subcomponent. The default is default. |
default |
| SecurityGroups |
string |
No |
A list of security groups for the application subcomponent. Separate multiple security group IDs with commas. |
sg-******************** |
| ComponentMaxReplica |
integer |
No |
The maximum number of subcomponents for the application that have the same specifications. The default is the value of ComponentReplica.
|
1 |
| ScaleMin |
string |
No |
||
| ScaleMax |
string |
No |
||
| PayType |
string |
No |
The billing method. |
Postpaid |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. |
true |
| Period |
string |
No |
The subscription type. Valid values are annual and monthly. |
Year |
| UsedTime |
string |
No |
The subscription duration. |
1 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-******************** |
| DryRun |
boolean |
No |
The default is |
false |
| PolarFSInstanceId |
string |
No |
The ID of the PolarFileSystem (PolarFS) Cold Storage or High-Performance instance. The default is empty. If you specify this parameter, the corresponding storage is mounted to the application. This parameter is supported only for the following applications:
|
pcs-******************** |
| VpcId |
string |
No |
||
| AutoCreatePolarFs |
boolean |
No |
Specifies whether to automatically create a PolarFileSystem (PolarFS) Cold Storage instance. Valid values:
|
false |
| AutoUseCoupon |
boolean |
No |
Specifies whether to automatically use a coupon. Valid values:
|
true |
| PromotionCode |
string |
No |
The coupon code. If you do not specify this parameter, the default coupon is used. |
727xxxxxx934 |
| SecurityGroupId |
string |
No |
||
| MemApplicationSpec |
object |
No |
||
| LlmModel |
string |
No |
||
| EmbedderModel |
string |
No |
||
| RerankerModel |
string |
No |
||
| ProjectName |
string |
No |
||
| DbName |
string |
No |
||
| DbUser |
string |
No |
||
| DbPassword |
string |
No |
||
| GraphLlmModel |
string |
No |
||
| EmbedderModelDimension |
integer |
No |
||
| Shard |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ResourceAvailable |
boolean |
Indicates whether the resources are sufficient. This is returned only when |
true |
| ApplicationId |
string |
The application ID. |
pa-******************** |
| Description |
string |
The description of the application. |
myapp |
| Components |
array<object> |
The list of subcomponents. |
|
|
object |
The subcomponent. |
||
| ComponentId |
string |
The subcomponent ID. |
pac-******************** |
| OrderId |
string |
The ID of the order. |
2148126708***** |
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| ResourceGroupId |
string |
The resource group ID. |
rg-******************** |
Examples
Success response
JSON format
{
"ResourceAvailable": true,
"ApplicationId": "pa-********************",
"Description": "myapp",
"Components": [
{
"ComponentId": "pac-********************"
}
],
"OrderId": "2148126708*****",
"RequestId": "3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF",
"ResourceGroupId": "rg-********************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.