Creates an application attached to 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 or remark of the application. |
myapp |
| Parameters |
array<object> |
No |
The list of parameters. |
|
|
object |
No |
The list of parameters. |
||
| ParameterName |
string |
No |
The name of the parameter. |
secret.gateway.auth.token |
| ParameterValue |
string |
No |
The value of the parameter. |
TK*** |
| AgenticDBBranchSpec |
object |
No |
The AgenticDB branch specifications. |
{"DBClusterId":"pagc-2zea920mcvd5o87","TenantId":"t-cfc2d7df0e59439681f0087f51","ProjectId":"proj-d7849d0050664c758af795d468","BranchId":"br-9054b3b7649e4c0d977bd0df37","ForkFromBranch":true,"ForkFromApplicationId":"pa-source"} |
| BranchId |
string |
No |
The ID of the AgenticDB branch. |
br-9054b3b7649e4c0d977bd0df37 |
| DBClusterId |
string |
No |
The ID of the AgenticDB cluster. |
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 ID of the AgenticDB project. |
proj-d7849d0050664c758af795d468 |
| TenantId |
string |
No |
The ID of the AgenticDB tenant. |
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 in the container. |
/data/container |
| EndpointId |
string |
No |
The ID of the storage endpoint. |
pe-xxxx |
| MountPath |
string |
No |
The mount path of the storage. |
/data/source |
| StorageCapacity |
string |
No |
The storage capacity. |
100 |
| StorageEndpoint |
string |
No |
The access endpoint of the storage. |
polarfs.example.com |
| StorageInstanceId |
string |
No |
The ID of the storage instance. |
pfs-xxxx |
| StoragePerformanceLevel |
string |
No |
The storage performance level. |
PL1 |
| StorageType |
string |
No |
The type of the storage. |
oss |
| 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 ID. Default value: the region of the instance. |
cn-beijing |
| ZoneId |
string |
No |
The zone ID. Default value: the primary zone of the instance. |
cn-beijing-k |
| VSwitchId |
string |
No |
The vSwitch ID. Default value: the current vSwitch in the primary zone of the instance. |
vsw-********************* |
| Architecture |
string |
Yes |
The CPU architecture. Valid values:
|
x86 |
| SecurityIPList |
string |
No |
The IP address 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 address whitelist group. Default value: |
default |
| Endpoints |
array<object> |
No |
The 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. Set the value to Primary. |
Primary |
| Components |
array<object> |
No |
The list of custom application subcomponents. |
|
|
object |
No |
The application subcomponent. |
||
| ComponentClass |
string |
No |
The specifications of the application subcomponent. |
polar.app.g2.medium |
| ComponentMaxReplica |
integer |
No |
The maximum number of application subcomponents of the same specifications. 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:
|
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 group IDs with commas (,). |
sg-******************** |
| SecurityIPArrayName |
string |
No |
The name of the IP address whitelist group for the application subcomponent. Default value: default. |
default |
| SecurityIPList |
string |
No |
The IP addresses in the whitelist for the application subcomponent. Separate multiple IP addresses with commas (,). |
127.0.0.1 |
| SecurityIPType |
string |
No |
The type of the IP addresses in the whitelist for the application subcomponent. Default value: ipv4. |
ipv4 |
| PayType |
string |
No |
The billing method. |
Postpaid |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. |
true |
| Period |
string |
No |
The subscription period unit. |
Year |
| UsedTime |
string |
No |
The subscription period. |
1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-******************** |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Default value: |
false |
| PolarFSInstanceId |
string |
No |
The ID of the Polarlakebase cold storage or high-performance edition instance. Default value: empty. If you specify this parameter, the corresponding storage is mounted to the application. Currently, only the following applications support this parameter:
|
pcs-******************** |
| VpcId |
string |
No |
The ID of the virtual private cloud (VPC). |
vpc-******************** |
| AutoCreatePolarFs |
boolean |
No |
Specifies whether to automatically create a Polarlakebase cold storage edition instance. 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 ID of the security group. |
sg-******************** |
| MemApplicationSpec |
object |
No |
The Mem0 application specification. This parameter is 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 name of the embedder model, such as text-embedding-v4. This parameter is required for mem0 applications. |
text-embedding-v4 |
| EmbedderModelDimension |
integer |
No |
The vector dimensions. |
1024 |
| GraphLlmModel |
string |
No |
The graph LLM model. |
qwen-plus |
| LlmModel |
string |
No |
The name of the LLM model, such as qwen3-max. This parameter is required for mem0 applications. |
qwen3-max |
| MemoryType |
string |
No |
The memory type, such as multimodal. |
MULTIMODAL_TEXT |
| PolarAIEmbedderInstanceId |
string |
No |
The instance ID of the PolarAI embedding model. |
pm-xxx |
| PolarAIGraphLlmInstanceId |
string |
No |
The instance ID of the PolarAI graph LLM model. |
pm-xxx |
| PolarAILlmInstanceId |
string |
No |
The instance ID of the PolarAI LLM model. |
pm-xxx |
| PolarAIRerankerInstanceId |
string |
No |
The instance ID of the PolarAI reranker model. |
pm-xxx |
| 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 name of the reranker model, such as qwen3-rerank. This parameter is required for mem0 applications. |
qwen3-rerank |
| Shard |
integer |
No |
The number of shards. |
1 |
| VisualEmbedderModel |
string |
No |
The name of the visual embedder model. |
qwen3.7-text-embedding |
| VisualEmbedderModelDimension |
integer |
No |
The vector dimensions of the visual embedder. |
2560 |
| VisualLlmModalities |
array |
No |
The list of modalities for the visual LLM, such as image. |
|
|
string |
No |
The modality supported by the visual LLM. |
image |
|
| VisualLlmModel |
string |
No |
The name of the visual LLM model. |
qwen3.6-flash |
| KnowledgeApplicationSpec |
object |
No |
The knowledge application specification. This parameter is required for knowledge applications. |
|
| DashboardPassword |
string |
No |
The dashboard password. |
test-dashboard-password |
| DbPassword |
string |
No |
The password. |
test-user-password |
| LlmModel |
string |
No |
The name of the LLM model, such as qwen3-max. This parameter is required for knowledge applications. |
qwen3-max |
| PolarAIEmbedderInstanceId |
string |
No |
The instance ID of the PolarAI embedding model. |
pm-xxxxxx |
| PolarAILlmInstanceId |
string |
No |
The instance ID of the PolarAI LLM model. |
pm-xxxxxx |
| PolarAIRerankerInstanceId |
string |
No |
The instance ID of the PolarAI reranker model. |
pm-xxxxxx |
| PolarAIVlInstanceId |
string |
No |
The instance ID of the PolarAI vision-language model. |
pm-xxxxxx |
| ModelFrom |
string |
No |
The source of the model. Valid values:
|
bailian |
| AIDBClusterId |
string |
No |
The ID of the associated existing model operator instance. This parameter takes effect only when ApplicationType is set to polarclaw. |
pm-xxxxxx |
| ModelApiKey |
string |
No |
The API key of the model. This parameter takes effect only when ApplicationType is set to polarclaw. |
sk-xxxxxx |
| ModelBaseUrl |
string |
No |
The base URL of the model. This parameter takes effect only when ApplicationType is set to polarclaw. |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ModelApi |
string |
No |
The API of the model. This parameter takes effect only when ApplicationType is set to polarclaw. |
openai-completions |
| ModelName |
string |
No |
The name of the model. This parameter takes effect only when ApplicationType is set to polarclaw. |
qwen3-max |
| AutoAllocatePublicEip |
boolean |
No |
Specifies whether the automatic creation is enabled and whether to attach and associate with an EIP. |
|
| Tag |
array<object> |
No |
The tag. |
|
|
object |
No |
The tag. |
||
| 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 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 you specify this parameter, NAT mapping is enabled when the instance is created. The gateway must reside in the same VPC as the application, be of the private network (intranet) type, and be active. |
ngw-xxx |
| DnatIpAddress |
string |
No |
The dedicated NAT IP address allocated for DNAT, which is separate from the SNAT IP address. The IP address must belong to the specified gateway, be in the available state, and the vSwitch where the gateway resides must belong to a primary CIDR block reachable from the office network. This parameter must be specified together with VpcNatGatewayId. Prerequisite: An SNAT entry is associated with the vSwitch where the application resides. |
10.64.0.10 |
| DnatEntries |
array<object> |
No |
The list of expected DNAT entries for NAT mapping. This parameter must be specified together with VpcNatGatewayId. You can leave this parameter empty to indicate that no DNAT entries are created. |
|
|
object |
No |
The DNAT entry. |
||
| FrontPort |
integer |
No |
The frontend port. This parameter is optional. By default, the system automatically assigns a port that is not occupied by the gateway. You can call the DescribeApplicationAttribute operation to query the assigned port. |
10001 |
| PortName |
string |
No |
The port name. Valid values: webui, hermesagent, dashboard, and ssh. |
webui |
| AgenticDBClusterId |
string |
No |
The ID of the AgenticDB cluster. |
pagc-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ApplicationId |
string |
The application ID. |
pa-******************** |
| Components |
array<object> |
The list of subcomponents. |
|
|
object |
The subcomponent. |
||
| ComponentId |
string |
The subcomponent ID. |
pac-******************** |
| Description |
string |
The application description. |
myapp |
| OrderId |
string |
The generated order ID. |
2148126708***** |
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| ResourceAvailable |
boolean |
Indicates whether the resources are sufficient. This parameter is returned only when DryRun is set to true. |
true |
| ResourceGroupId |
string |
The ID of the resource group. |
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.