Creates an application that is associated with 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 |
| Parameters |
array<object> |
No |
The list of parameters. |
|
|
object |
No |
The list of parameters. |
||
| ParameterName |
string |
No |
The parameter name. |
secret.gateway.auth.token |
| ParameterValue |
string |
No |
The parameter value. |
TK*** |
| AgenticDBBranchSpec |
object |
No |
The AgenticDB branch specification. |
{"DBClusterId":"pagc-2zea920mcvd5o87","TenantId":"t-cfc2d7df0e59439681f0087f51","ProjectId":"proj-d7849d0050664c758af795d468","BranchId":"br-9054b3b7649e4c0d977bd0df37","ForkFromBranch":true,"ForkFromApplicationId":"pa-source"} |
| BranchId |
string |
No |
The AgenticDB branch ID. |
br-9054b3b7649e4c0d977bd0df37 |
| DBClusterId |
string |
No |
The AgenticDB cluster ID. |
pagc-2zea920mcvd5o87 |
| ForkFromApplicationId |
string |
No |
The ID of the source application. |
pa-source |
| ForkFromBranch |
boolean |
No |
Specifies whether to create the application based on a specified AgenticDB branch. |
true |
| ProjectId |
string |
No |
The AgenticDB project ID. |
proj-d7849d0050664c758af795d468 |
| TenantId |
string |
No |
The AgenticDB tenant ID. |
t-cfc2d7df0e59439681f0087f51 |
| Storages |
array<object> |
No |
The list of application storages. |
[{"StorageType":"oss","StorageInstanceId":"pfs-xxxx","EndpointId":"pe-xxxx"}] |
|
object |
No |
|||
| ContainerMountPath |
string |
No |
The mount path inside the container. |
/data/container |
| EndpointId |
string |
No |
The ID of the storage endpoint. |
pe-xxxx |
| MountPath |
string |
No |
The storage mount path. |
/data/source |
| StorageCapacity |
string |
No |
The storage capacity. |
100 |
| StorageEndpoint |
string |
No |
The storage access address. |
polarfs.example.com |
| StorageInstanceId |
string |
No |
The storage instance ID. |
pfs-xxxx |
| StoragePerformanceLevel |
string |
No |
The storage performance level. |
PL1 |
| StorageType |
string |
No |
The storage type. |
oss |
| ApplicationType |
string |
Yes |
The application type. Valid values:
|
supabase |
| DBClusterId |
string |
No |
The instance ID of the PolarDB instance on which the application depends. |
pc-************** |
| RegionId |
string |
No |
The region. Default value: the region of the instance. |
cn-beijing |
| ZoneId |
string |
No |
The zone. Default value: the primary zone of the instance. |
cn-beijing-k |
| VSwitchId |
string |
No |
The vSwitch. Default value: the vSwitch in the primary zone of the instance. |
vsw-********************* |
| Architecture |
string |
Yes |
The CPU architecture. Valid values:
|
x86 |
| SecurityIPList |
string |
No |
The IP whitelist. If you do not specify this parameter, the default value |
127.0.0.1,172.17.0.0/24 |
| SecurityIPType |
string |
No |
The type of the IP address. |
ipv4 |
| SecurityIPArrayName |
string |
No |
The name of the IP whitelist group. Default value: |
default |
| Endpoints |
array<object> |
No |
The list of user-defined 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. The value is fixed as Primary. |
Primary |
| Components |
array<object> |
No |
The list of user-defined application subcomponents. |
|
|
object |
No |
The application subcomponent. |
||
| ComponentClass |
string |
No |
The specification of the application subcomponent. |
polar.app.g2.medium |
| ComponentMaxReplica |
integer |
No |
The maximum number of application subcomponents with the same specification. Default value: the value of ComponentReplica.
|
1 |
| ComponentReplica |
integer |
No |
The number of replicas for the application subcomponent. Default value: 1. |
1 |
| ComponentType |
string |
No |
The type of the application subcomponent. For supabase, valid values:
For raycluster, valid values:
|
gateway |
| ScaleMax |
string |
No |
The upper limit for component scaling. |
16 |
| ScaleMin |
string |
No |
The lower limit for component scaling. |
1 |
| SecurityGroups |
string |
No |
The list of security groups for the application subcomponent. Separate multiple security groups with commas (,). |
sg-******************** |
| SecurityIPArrayName |
string |
No |
The name of the IP whitelist group for the application subcomponent. Default value: default. |
default |
| SecurityIPList |
string |
No |
The whitelisted IP addresses for the application subcomponent. Separate multiple IP addresses with commas (,). |
127.0.0.1 |
| SecurityIPType |
string |
No |
The type of the whitelisted IP addresses for the application subcomponent. Default value: ipv4. |
ipv4 |
| PayType |
string |
No |
The billing type. |
Postpaid |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. |
true |
| Period |
string |
No |
The subscription type (yearly or monthly). |
Year |
| UsedTime |
string |
No |
The subscription duration. |
1 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-******************** |
| DryRun |
boolean |
No |
Default value: |
false |
| PolarFSInstanceId |
string |
No |
The instance ID of the Polarlakebase cold storage or high-performance edition. Default value: empty. If specified, the corresponding storage is mounted to the application. Currently, only the following applications support this parameter:
|
pcs-******************** |
| VpcId |
string |
No |
The VPC ID. |
vpc-******************** |
| AutoCreatePolarFs |
boolean |
No |
Specifies whether to enable automatic creation of a cold storage Polarlakebase. Valid values:
|
false |
| AutoUseCoupon |
boolean |
No |
Specifies whether to automatically use coupons. 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 |
The security group ID. |
sg-******************** |
| MemApplicationSpec |
object |
No |
Required for mem0 applications. |
|
| DbName |
string |
No |
The database name. |
test-database-name |
| DbPassword |
string |
No |
The password. |
test-user-password |
| DbUser |
string |
No |
The username. |
test-user |
| EmbedderModel |
string |
No |
The embedder model name. This parameter is required for mem0 applications, such as text-embedding-v4. |
text-embedding-v4 |
| EmbedderModelDimension |
integer |
No |
The vector dimensions. |
1024 |
| GraphLlmModel |
string |
No |
The graph LLM model. |
qwen-plus |
| LlmModel |
string |
No |
The LLM model name. This parameter is required for mem0 applications, such as qwen3-max. |
qwen3-max |
| ProjectName |
string |
No |
The project name, which corresponds to the schema in the database where project data is stored. |
test-project-name |
| RerankerModel |
string |
No |
The reranker model name. This parameter is required for mem0 applications, such as qwen3-rerank. |
qwen3-rerank |
| Shard |
integer |
No |
The number of table shards. |
1 |
| KnowledgeApplicationSpec |
object |
No |
Required for knowledge applications. |
|
| DashboardPassword |
string |
No |
The dashboard password. |
|
| DbPassword |
string |
No |
The password. |
|
| LlmModel |
string |
No |
The LLM model name. This parameter is required for knowledge applications, such as qwen3-max. |
|
| ModelFrom |
string |
No |
The model source. Valid values:
|
bailian |
| AIDBClusterId |
string |
No |
The ID of an existing model operator instance to associate. This parameter takes effect only when ApplicationType is set to polarclaw. |
pm-xxxxxx |
| ModelApiKey |
string |
No |
The model API key. This parameter takes effect only when ApplicationType is set to polarclaw. |
sk-xxxxxx |
| ModelBaseUrl |
string |
No |
The model base URL. This parameter takes effect only when ApplicationType is set to polarclaw. |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ModelApi |
string |
No |
The model API. This parameter takes effect only when ApplicationType is set to polarclaw. |
openai-completions |
| ModelName |
string |
No |
The model name. This parameter takes effect only when ApplicationType is set to polarclaw. |
qwen3-max |
| AutoAllocatePublicEip |
boolean |
No |
Specifies whether to automatically create an elastic IP address (EIP) and associate it with the instance. |
qwen3-max |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
testValue |
| TargetVersion |
string |
No |
The target version. |
latest |
| AuthProvider |
string |
No |
The authentication service provider. |
feishu |
| AuthProviderConfig |
string |
No |
The authentication provider configuration. |
xxx |
| SkillTemplateId |
string |
No |
The skill template ID. |
xxx |
| VpcNatGatewayId |
string |
No |
The VPC NAT gateway ID for NAT mapping. If specified, NAT mapping is enabled when the instance is created. The NAT gateway must be in the same VPC as the application, use the private network type (intranet), and be in active status. |
ngw-xxx |
| DnatIpAddress |
string |
No |
The DNAT-dedicated NAT IP address allocated by the customer, which must be separate from the SNAT IP address. The IP address must belong to the specified gateway and be in an available state. The vSwitch where the gateway resides must be in a primary CIDR block reachable from the office network. Specify this parameter together with VpcNatGatewayId. Prerequisite: The customer has bound an SNAT entry to the vSwitch where the application resides. |
10.64.0.10 |
| DnatEntries |
array<object> |
No |
The list of expected DNAT entries for NAT mapping. Specify this parameter together with VpcNatGatewayId. This parameter can be left empty, which indicates that no DNAT entries are created. |
|
|
object |
No |
The DNAT entry. |
||
| FrontPort |
integer |
No |
The frontend port. This parameter is optional. If not specified, the control plane automatically assigns a port that does not conflict with ports already in use on the gateway. You can query the assignment result by calling the DescribeApplicationAttribute operation. |
10001 |
| PortName |
string |
No |
The port name. Valid values: webui | hermesagent | dashboard | ssh. |
webui |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ApplicationId |
string |
The application ID. |
pa-******************** |
| Components |
array<object> |
The list of child components. |
|
|
object |
The child component. |
||
| ComponentId |
string |
The child component ID. |
pac-******************** |
| Description |
string |
The description of the application. |
myapp |
| OrderId |
string |
The generated order ID. |
2148126708***** |
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| ResourceAvailable |
boolean |
Indicates whether resources are sufficient. This parameter is returned only when DryRun is set to true. |
true |
| ResourceGroupId |
string |
The resource group ID. |
rg-******************** |
Examples
Success response
JSON format
{
"ApplicationId": "pa-********************",
"Components": [
{
"ComponentId": "pac-********************"
}
],
"Description": "myapp",
"OrderId": "2148126708*****",
"RequestId": "3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF",
"ResourceAvailable": true,
"ResourceGroupId": "rg-********************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.