1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. polardb
  6. Application
Viewing docs for Alibaba Cloud v3.104.0
published on Thursday, Jun 25, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.104.0
published on Thursday, Jun 25, 2026 by Pulumi

    Provides a PolarDB Application resource. A PolarDB Application is an AI-driven database application that integrates with large language models (LLMs) to provide intelligent data processing capabilities.

    NOTE: Available since v1.279.0.

    Example Usage

    Create a PolarDB Application

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.vpc.Network("default", {
        vpcName: "terraform-example",
        cidrBlock: "172.16.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vpcId: _default.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: "cn-beijing-k",
        vswitchName: "terraform-example",
    });
    const defaultCluster = new alicloud.polardb.Cluster("default", {
        dbType: "MySQL",
        dbVersion: "8.0",
        payType: "PostPaid",
        category: "Normal",
        description: "terraform-example-cluster",
    });
    const defaultApplication = new alicloud.polardb.Application("default", {
        description: "terraform-example-app",
        applicationType: "polarclaw",
        architecture: "x86",
        dbClusterId: defaultCluster.id,
        vswitchId: defaultSwitch.id,
        vpcId: _default.id,
        regionId: "cn-beijing",
        zoneId: "cn-beijing-k",
        payType: "PostPaid",
        modelFrom: "bailian",
        modelBaseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
        modelName: "qwen3.6-plus",
        components: [{
            componentType: "polarclaw_comp",
            componentClass: "polar.app.g2.medium",
            componentReplica: 1,
        }],
        parameters: [{
            parameterName: "secret.dashscope.apiKey",
            parameterValue: "ap-xxx",
        }],
        modifyMode: "Append",
        securityIpArrayName: "white_list",
        securityIpLists: [
            "127.0.0.1",
            "192.168.1.2",
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.vpc.Network("default",
        vpc_name="terraform-example",
        cidr_block="172.16.0.0/16")
    default_switch = alicloud.vpc.Switch("default",
        vpc_id=default.id,
        cidr_block="172.16.0.0/24",
        zone_id="cn-beijing-k",
        vswitch_name="terraform-example")
    default_cluster = alicloud.polardb.Cluster("default",
        db_type="MySQL",
        db_version="8.0",
        pay_type="PostPaid",
        category="Normal",
        description="terraform-example-cluster")
    default_application = alicloud.polardb.Application("default",
        description="terraform-example-app",
        application_type="polarclaw",
        architecture="x86",
        db_cluster_id=default_cluster.id,
        vswitch_id=default_switch.id,
        vpc_id=default.id,
        region_id="cn-beijing",
        zone_id="cn-beijing-k",
        pay_type="PostPaid",
        model_from="bailian",
        model_base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
        model_name="qwen3.6-plus",
        components=[{
            "component_type": "polarclaw_comp",
            "component_class": "polar.app.g2.medium",
            "component_replica": 1,
        }],
        parameters=[{
            "parameter_name": "secret.dashscope.apiKey",
            "parameter_value": "ap-xxx",
        }],
        modify_mode="Append",
        security_ip_array_name="white_list",
        security_ip_lists=[
            "127.0.0.1",
            "192.168.1.2",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/polardb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VpcId:       _default.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			ZoneId:      pulumi.String("cn-beijing-k"),
    			VswitchName: pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultCluster, err := polardb.NewCluster(ctx, "default", &polardb.ClusterArgs{
    			DbType:      pulumi.String("MySQL"),
    			DbVersion:   pulumi.String("8.0"),
    			PayType:     pulumi.String("PostPaid"),
    			Category:    "Normal",
    			Description: pulumi.String("terraform-example-cluster"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = polardb.NewApplication(ctx, "default", &polardb.ApplicationArgs{
    			Description:     pulumi.String("terraform-example-app"),
    			ApplicationType: pulumi.String("polarclaw"),
    			Architecture:    pulumi.String("x86"),
    			DbClusterId:     defaultCluster.ID(),
    			VswitchId:       defaultSwitch.ID(),
    			VpcId:           _default.ID(),
    			RegionId:        pulumi.String("cn-beijing"),
    			ZoneId:          pulumi.String("cn-beijing-k"),
    			PayType:         pulumi.String("PostPaid"),
    			ModelFrom:       pulumi.String("bailian"),
    			ModelBaseUrl:    pulumi.String("https://dashscope.aliyuncs.com/compatible-mode/v1"),
    			ModelName:       pulumi.String("qwen3.6-plus"),
    			Components: polardb.ApplicationComponentArray{
    				&polardb.ApplicationComponentArgs{
    					ComponentType:    pulumi.String("polarclaw_comp"),
    					ComponentClass:   pulumi.String("polar.app.g2.medium"),
    					ComponentReplica: pulumi.Int(1),
    				},
    			},
    			Parameters: polardb.ApplicationParameterArray{
    				&polardb.ApplicationParameterArgs{
    					ParameterName:  pulumi.String("secret.dashscope.apiKey"),
    					ParameterValue: pulumi.String("ap-xxx"),
    				},
    			},
    			ModifyMode:          pulumi.String("Append"),
    			SecurityIpArrayName: pulumi.String("white_list"),
    			SecurityIpLists: pulumi.StringArray{
    				pulumi.String("127.0.0.1"),
    				pulumi.String("192.168.1.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.16.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VpcId = @default.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = "cn-beijing-k",
            VswitchName = "terraform-example",
        });
    
        var defaultCluster = new AliCloud.PolarDB.Cluster("default", new()
        {
            DbType = "MySQL",
            DbVersion = "8.0",
            PayType = "PostPaid",
            Category = "Normal",
            Description = "terraform-example-cluster",
        });
    
        var defaultApplication = new AliCloud.PolarDB.Application("default", new()
        {
            Description = "terraform-example-app",
            ApplicationType = "polarclaw",
            Architecture = "x86",
            DbClusterId = defaultCluster.Id,
            VswitchId = defaultSwitch.Id,
            VpcId = @default.Id,
            RegionId = "cn-beijing",
            ZoneId = "cn-beijing-k",
            PayType = "PostPaid",
            ModelFrom = "bailian",
            ModelBaseUrl = "https://dashscope.aliyuncs.com/compatible-mode/v1",
            ModelName = "qwen3.6-plus",
            Components = new[]
            {
                new AliCloud.PolarDB.Inputs.ApplicationComponentArgs
                {
                    ComponentType = "polarclaw_comp",
                    ComponentClass = "polar.app.g2.medium",
                    ComponentReplica = 1,
                },
            },
            Parameters = new[]
            {
                new AliCloud.PolarDB.Inputs.ApplicationParameterArgs
                {
                    ParameterName = "secret.dashscope.apiKey",
                    ParameterValue = "ap-xxx",
                },
            },
            ModifyMode = "Append",
            SecurityIpArrayName = "white_list",
            SecurityIpLists = new[]
            {
                "127.0.0.1",
                "192.168.1.2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.polardb.Cluster;
    import com.pulumi.alicloud.polardb.ClusterArgs;
    import com.pulumi.alicloud.polardb.Application;
    import com.pulumi.alicloud.polardb.ApplicationArgs;
    import com.pulumi.alicloud.polardb.inputs.ApplicationComponentArgs;
    import com.pulumi.alicloud.polardb.inputs.ApplicationParameterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new Network("default", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vpcId(default_.id())
                .cidrBlock("172.16.0.0/24")
                .zoneId("cn-beijing-k")
                .vswitchName("terraform-example")
                .build());
    
            var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
                .dbType("MySQL")
                .dbVersion("8.0")
                .payType("PostPaid")
                .category("Normal")
                .description("terraform-example-cluster")
                .build());
    
            var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
                .description("terraform-example-app")
                .applicationType("polarclaw")
                .architecture("x86")
                .dbClusterId(defaultCluster.id())
                .vswitchId(defaultSwitch.id())
                .vpcId(default_.id())
                .regionId("cn-beijing")
                .zoneId("cn-beijing-k")
                .payType("PostPaid")
                .modelFrom("bailian")
                .modelBaseUrl("https://dashscope.aliyuncs.com/compatible-mode/v1")
                .modelName("qwen3.6-plus")
                .components(ApplicationComponentArgs.builder()
                    .componentType("polarclaw_comp")
                    .componentClass("polar.app.g2.medium")
                    .componentReplica(1)
                    .build())
                .parameters(ApplicationParameterArgs.builder()
                    .parameterName("secret.dashscope.apiKey")
                    .parameterValue("ap-xxx")
                    .build())
                .modifyMode("Append")
                .securityIpArrayName("white_list")
                .securityIpLists(            
                    "127.0.0.1",
                    "192.168.1.2")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:vpc:Network
        properties:
          vpcName: terraform-example
          cidrBlock: 172.16.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vpcId: ${default.id}
          cidrBlock: 172.16.0.0/24
          zoneId: cn-beijing-k
          vswitchName: terraform-example
      defaultCluster:
        type: alicloud:polardb:Cluster
        name: default
        properties:
          dbType: MySQL
          dbVersion: '8.0'
          payType: PostPaid
          category: Normal
          description: terraform-example-cluster
      defaultApplication:
        type: alicloud:polardb:Application
        name: default
        properties:
          description: terraform-example-app
          applicationType: polarclaw
          architecture: x86
          dbClusterId: ${defaultCluster.id}
          vswitchId: ${defaultSwitch.id}
          vpcId: ${default.id}
          regionId: cn-beijing
          zoneId: cn-beijing-k
          payType: PostPaid
          modelFrom: bailian
          modelBaseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
          modelName: qwen3.6-plus
          components:
            - componentType: polarclaw_comp
              componentClass: polar.app.g2.medium
              componentReplica: 1
          parameters:
            - parameterName: secret.dashscope.apiKey
              parameterValue: ap-xxx
          modifyMode: Append
          securityIpArrayName: white_list
          securityIpLists:
            - 127.0.0.1
            - 192.168.1.2
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_vpc_network" "default" {
      vpc_name   = "terraform-example"
      cidr_block = "172.16.0.0/16"
    }
    resource "alicloud_vpc_switch" "default" {
      vpc_id       = alicloud_vpc_network.default.id
      cidr_block   = "172.16.0.0/24"
      zone_id      = "cn-beijing-k"
      vswitch_name = "terraform-example"
    }
    resource "alicloud_polardb_cluster" "default" {
      db_type     = "MySQL"
      db_version  = "8.0"
      pay_type    = "PostPaid"
      category    = "Normal"
      description = "terraform-example-cluster"
    }
    resource "alicloud_polardb_application" "default" {
      description      = "terraform-example-app"
      application_type = "polarclaw"
      architecture     = "x86"
      db_cluster_id    = alicloud_polardb_cluster.default.id
      vswitch_id       = alicloud_vpc_switch.default.id
      vpc_id           = alicloud_vpc_network.default.id
      region_id        = "cn-beijing"
      zone_id          = "cn-beijing-k"
      pay_type         = "PostPaid"
      model_from       = "bailian"
      model_base_url   = "https://dashscope.aliyuncs.com/compatible-mode/v1"
      model_name       = "qwen3.6-plus"
      components {
        component_type    = "polarclaw_comp"
        component_class   = "polar.app.g2.medium"
        component_replica = 1
      }
      parameters {
        parameter_name  = "secret.dashscope.apiKey"
        parameter_value = "ap-xxx"
      }
      modify_mode            = "Append"
      security_ip_array_name = "white_list"
      security_ip_lists      = ["127.0.0.1", "192.168.1.2"]
    }
    

    Removing alicloud.polardb.Application from your configuration

    The alicloud.polardb.Application resource allows you to manage your PolarDB application. If the application type is PrePaid, Terraform cannot destroy it directly. Removing this resource from your configuration will remove it from your statefile and management, but will not destroy the application. You can resume managing the application via the PolarDB Console.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create Application Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def Application(resource_name: str,
                    args: ApplicationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Application(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    region_id: Optional[str] = None,
                    application_type: Optional[str] = None,
                    architecture: Optional[str] = None,
                    model_name: Optional[str] = None,
                    parameters: Optional[Sequence[ApplicationParameterArgs]] = None,
                    components: Optional[Sequence[ApplicationComponentArgs]] = None,
                    db_cluster_id: Optional[str] = None,
                    description: Optional[str] = None,
                    model_api: Optional[str] = None,
                    model_api_key: Optional[str] = None,
                    model_base_url: Optional[str] = None,
                    model_from: Optional[str] = None,
                    ai_db_cluster_id: Optional[str] = None,
                    modify_mode: Optional[str] = None,
                    component_id: Optional[str] = None,
                    pay_type: Optional[str] = None,
                    period: Optional[int] = None,
                    auto_renew: Optional[bool] = None,
                    resource_group_id: Optional[str] = None,
                    security_ip_array_name: Optional[str] = None,
                    security_ip_lists: Optional[Sequence[str]] = None,
                    upgrade_version: Optional[bool] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_id: Optional[str] = None,
                    zone_id: Optional[str] = None)
    func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
    public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
    public Application(String name, ApplicationArgs args)
    public Application(String name, ApplicationArgs args, CustomResourceOptions options)
    
    type: alicloud:polardb:Application
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_polardb_application" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApplicationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleapplicationResourceResourceFromPolardbapplication = new AliCloud.PolarDB.Application("exampleapplicationResourceResourceFromPolardbapplication", new()
    {
        RegionId = "string",
        ApplicationType = "string",
        Architecture = "string",
        ModelName = "string",
        Parameters = new[]
        {
            new AliCloud.PolarDB.Inputs.ApplicationParameterArgs
            {
                ParameterName = "string",
                ParameterValue = "string",
            },
        },
        Components = new[]
        {
            new AliCloud.PolarDB.Inputs.ApplicationComponentArgs
            {
                ComponentClass = "string",
                ComponentReplica = 0,
                ComponentType = "string",
            },
        },
        DbClusterId = "string",
        Description = "string",
        ModelApi = "string",
        ModelApiKey = "string",
        ModelBaseUrl = "string",
        ModelFrom = "string",
        AiDbClusterId = "string",
        ModifyMode = "string",
        ComponentId = "string",
        PayType = "string",
        Period = 0,
        AutoRenew = false,
        ResourceGroupId = "string",
        SecurityIpArrayName = "string",
        SecurityIpLists = new[]
        {
            "string",
        },
        UpgradeVersion = false,
        VpcId = "string",
        VswitchId = "string",
        ZoneId = "string",
    });
    
    example, err := polardb.NewApplication(ctx, "exampleapplicationResourceResourceFromPolardbapplication", &polardb.ApplicationArgs{
    	RegionId:        pulumi.String("string"),
    	ApplicationType: pulumi.String("string"),
    	Architecture:    pulumi.String("string"),
    	ModelName:       pulumi.String("string"),
    	Parameters: polardb.ApplicationParameterArray{
    		&polardb.ApplicationParameterArgs{
    			ParameterName:  pulumi.String("string"),
    			ParameterValue: pulumi.String("string"),
    		},
    	},
    	Components: polardb.ApplicationComponentArray{
    		&polardb.ApplicationComponentArgs{
    			ComponentClass:   pulumi.String("string"),
    			ComponentReplica: pulumi.Int(0),
    			ComponentType:    pulumi.String("string"),
    		},
    	},
    	DbClusterId:         pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	ModelApi:            pulumi.String("string"),
    	ModelApiKey:         pulumi.String("string"),
    	ModelBaseUrl:        pulumi.String("string"),
    	ModelFrom:           pulumi.String("string"),
    	AiDbClusterId:       pulumi.String("string"),
    	ModifyMode:          pulumi.String("string"),
    	ComponentId:         pulumi.String("string"),
    	PayType:             pulumi.String("string"),
    	Period:              pulumi.Int(0),
    	AutoRenew:           pulumi.Bool(false),
    	ResourceGroupId:     pulumi.String("string"),
    	SecurityIpArrayName: pulumi.String("string"),
    	SecurityIpLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UpgradeVersion: pulumi.Bool(false),
    	VpcId:          pulumi.String("string"),
    	VswitchId:      pulumi.String("string"),
    	ZoneId:         pulumi.String("string"),
    })
    
    resource "alicloud_polardb_application" "exampleapplicationResourceResourceFromPolardbapplication" {
      region_id        = "string"
      application_type = "string"
      architecture     = "string"
      model_name       = "string"
      parameters {
        parameter_name  = "string"
        parameter_value = "string"
      }
      components {
        component_class   = "string"
        component_replica = 0
        component_type    = "string"
      }
      db_cluster_id          = "string"
      description            = "string"
      model_api              = "string"
      model_api_key          = "string"
      model_base_url         = "string"
      model_from             = "string"
      ai_db_cluster_id       = "string"
      modify_mode            = "string"
      component_id           = "string"
      pay_type               = "string"
      period                 = 0
      auto_renew             = false
      resource_group_id      = "string"
      security_ip_array_name = "string"
      security_ip_lists      = ["string"]
      upgrade_version        = false
      vpc_id                 = "string"
      vswitch_id             = "string"
      zone_id                = "string"
    }
    
    var exampleapplicationResourceResourceFromPolardbapplication = new com.pulumi.alicloud.polardb.Application("exampleapplicationResourceResourceFromPolardbapplication", com.pulumi.alicloud.polardb.ApplicationArgs.builder()
        .regionId("string")
        .applicationType("string")
        .architecture("string")
        .modelName("string")
        .parameters(ApplicationParameterArgs.builder()
            .parameterName("string")
            .parameterValue("string")
            .build())
        .components(ApplicationComponentArgs.builder()
            .componentClass("string")
            .componentReplica(0)
            .componentType("string")
            .build())
        .dbClusterId("string")
        .description("string")
        .modelApi("string")
        .modelApiKey("string")
        .modelBaseUrl("string")
        .modelFrom("string")
        .aiDbClusterId("string")
        .modifyMode("string")
        .componentId("string")
        .payType("string")
        .period(0)
        .autoRenew(false)
        .resourceGroupId("string")
        .securityIpArrayName("string")
        .securityIpLists("string")
        .upgradeVersion(false)
        .vpcId("string")
        .vswitchId("string")
        .zoneId("string")
        .build());
    
    exampleapplication_resource_resource_from_polardbapplication = alicloud.polardb.Application("exampleapplicationResourceResourceFromPolardbapplication",
        region_id="string",
        application_type="string",
        architecture="string",
        model_name="string",
        parameters=[{
            "parameter_name": "string",
            "parameter_value": "string",
        }],
        components=[{
            "component_class": "string",
            "component_replica": 0,
            "component_type": "string",
        }],
        db_cluster_id="string",
        description="string",
        model_api="string",
        model_api_key="string",
        model_base_url="string",
        model_from="string",
        ai_db_cluster_id="string",
        modify_mode="string",
        component_id="string",
        pay_type="string",
        period=0,
        auto_renew=False,
        resource_group_id="string",
        security_ip_array_name="string",
        security_ip_lists=["string"],
        upgrade_version=False,
        vpc_id="string",
        vswitch_id="string",
        zone_id="string")
    
    const exampleapplicationResourceResourceFromPolardbapplication = new alicloud.polardb.Application("exampleapplicationResourceResourceFromPolardbapplication", {
        regionId: "string",
        applicationType: "string",
        architecture: "string",
        modelName: "string",
        parameters: [{
            parameterName: "string",
            parameterValue: "string",
        }],
        components: [{
            componentClass: "string",
            componentReplica: 0,
            componentType: "string",
        }],
        dbClusterId: "string",
        description: "string",
        modelApi: "string",
        modelApiKey: "string",
        modelBaseUrl: "string",
        modelFrom: "string",
        aiDbClusterId: "string",
        modifyMode: "string",
        componentId: "string",
        payType: "string",
        period: 0,
        autoRenew: false,
        resourceGroupId: "string",
        securityIpArrayName: "string",
        securityIpLists: ["string"],
        upgradeVersion: false,
        vpcId: "string",
        vswitchId: "string",
        zoneId: "string",
    });
    
    type: alicloud:polardb:Application
    properties:
        aiDbClusterId: string
        applicationType: string
        architecture: string
        autoRenew: false
        componentId: string
        components:
            - componentClass: string
              componentReplica: 0
              componentType: string
        dbClusterId: string
        description: string
        modelApi: string
        modelApiKey: string
        modelBaseUrl: string
        modelFrom: string
        modelName: string
        modifyMode: string
        parameters:
            - parameterName: string
              parameterValue: string
        payType: string
        period: 0
        regionId: string
        resourceGroupId: string
        securityIpArrayName: string
        securityIpLists:
            - string
        upgradeVersion: false
        vpcId: string
        vswitchId: string
        zoneId: string
    

    Application Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Application resource accepts the following input properties:

    ApplicationType string
    The type of the application. Valid value polarclaw.
    Architecture string
    The architecture of the application. Valid value x86.
    RegionId string
    The region ID of the application.
    AiDbClusterId string
    The ID of the AI DB cluster.
    AutoRenew bool
    Whether to enable auto-renewal. Valid values are true, false.
    ComponentId string
    The ID of the component.
    Components List<Pulumi.AliCloud.PolarDB.Inputs.ApplicationComponent>
    The components of the application. See components below.
    DbClusterId string
    The ID of the associated PolarDB cluster.
    Description string
    The description of the application. It must be 2 to 256 characters in length.
    ModelApi string
    The API endpoint for the model.
    ModelApiKey string
    The API key for the model.
    ModelBaseUrl string
    The base URL for the model API.
    ModelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    ModelName string
    The name of the model.
    ModifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    Parameters List<Pulumi.AliCloud.PolarDB.Inputs.ApplicationParameter>
    The parameters of the application. See parameters below.
    PayType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    Period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    ResourceGroupId string
    The ID of the resource group.
    SecurityIpArrayName string
    The name of the IP whitelist group.
    SecurityIpLists List<string>
    The list of IP addresses allowed to access the application.
    UpgradeVersion bool
    Whether to upgrade the version. Valid values are true, false.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the VSwitch.
    ZoneId string
    The zone ID of the application.
    ApplicationType string
    The type of the application. Valid value polarclaw.
    Architecture string
    The architecture of the application. Valid value x86.
    RegionId string
    The region ID of the application.
    AiDbClusterId string
    The ID of the AI DB cluster.
    AutoRenew bool
    Whether to enable auto-renewal. Valid values are true, false.
    ComponentId string
    The ID of the component.
    Components []ApplicationComponentArgs
    The components of the application. See components below.
    DbClusterId string
    The ID of the associated PolarDB cluster.
    Description string
    The description of the application. It must be 2 to 256 characters in length.
    ModelApi string
    The API endpoint for the model.
    ModelApiKey string
    The API key for the model.
    ModelBaseUrl string
    The base URL for the model API.
    ModelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    ModelName string
    The name of the model.
    ModifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    Parameters []ApplicationParameterArgs
    The parameters of the application. See parameters below.
    PayType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    Period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    ResourceGroupId string
    The ID of the resource group.
    SecurityIpArrayName string
    The name of the IP whitelist group.
    SecurityIpLists []string
    The list of IP addresses allowed to access the application.
    UpgradeVersion bool
    Whether to upgrade the version. Valid values are true, false.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the VSwitch.
    ZoneId string
    The zone ID of the application.
    application_type string
    The type of the application. Valid value polarclaw.
    architecture string
    The architecture of the application. Valid value x86.
    region_id string
    The region ID of the application.
    ai_db_cluster_id string
    The ID of the AI DB cluster.
    auto_renew bool
    Whether to enable auto-renewal. Valid values are true, false.
    component_id string
    The ID of the component.
    components list(object)
    The components of the application. See components below.
    db_cluster_id string
    The ID of the associated PolarDB cluster.
    description string
    The description of the application. It must be 2 to 256 characters in length.
    model_api string
    The API endpoint for the model.
    model_api_key string
    The API key for the model.
    model_base_url string
    The base URL for the model API.
    model_from string
    The source of the model. Valid values are bailian,custom,maas.
    model_name string
    The name of the model.
    modify_mode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters list(object)
    The parameters of the application. See parameters below.
    pay_type string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    resource_group_id string
    The ID of the resource group.
    security_ip_array_name string
    The name of the IP whitelist group.
    security_ip_lists list(string)
    The list of IP addresses allowed to access the application.
    upgrade_version bool
    Whether to upgrade the version. Valid values are true, false.
    vpc_id string
    The ID of the VPC.
    vswitch_id string
    The ID of the VSwitch.
    zone_id string
    The zone ID of the application.
    applicationType String
    The type of the application. Valid value polarclaw.
    architecture String
    The architecture of the application. Valid value x86.
    regionId String
    The region ID of the application.
    aiDbClusterId String
    The ID of the AI DB cluster.
    autoRenew Boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId String
    The ID of the component.
    components List<ApplicationComponent>
    The components of the application. See components below.
    dbClusterId String
    The ID of the associated PolarDB cluster.
    description String
    The description of the application. It must be 2 to 256 characters in length.
    modelApi String
    The API endpoint for the model.
    modelApiKey String
    The API key for the model.
    modelBaseUrl String
    The base URL for the model API.
    modelFrom String
    The source of the model. Valid values are bailian,custom,maas.
    modelName String
    The name of the model.
    modifyMode String
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters List<ApplicationParameter>
    The parameters of the application. See parameters below.
    payType String
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period Integer

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    resourceGroupId String
    The ID of the resource group.
    securityIpArrayName String
    The name of the IP whitelist group.
    securityIpLists List<String>
    The list of IP addresses allowed to access the application.
    upgradeVersion Boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the VSwitch.
    zoneId String
    The zone ID of the application.
    applicationType string
    The type of the application. Valid value polarclaw.
    architecture string
    The architecture of the application. Valid value x86.
    regionId string
    The region ID of the application.
    aiDbClusterId string
    The ID of the AI DB cluster.
    autoRenew boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId string
    The ID of the component.
    components ApplicationComponent[]
    The components of the application. See components below.
    dbClusterId string
    The ID of the associated PolarDB cluster.
    description string
    The description of the application. It must be 2 to 256 characters in length.
    modelApi string
    The API endpoint for the model.
    modelApiKey string
    The API key for the model.
    modelBaseUrl string
    The base URL for the model API.
    modelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    modelName string
    The name of the model.
    modifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters ApplicationParameter[]
    The parameters of the application. See parameters below.
    payType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    resourceGroupId string
    The ID of the resource group.
    securityIpArrayName string
    The name of the IP whitelist group.
    securityIpLists string[]
    The list of IP addresses allowed to access the application.
    upgradeVersion boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId string
    The ID of the VPC.
    vswitchId string
    The ID of the VSwitch.
    zoneId string
    The zone ID of the application.
    application_type str
    The type of the application. Valid value polarclaw.
    architecture str
    The architecture of the application. Valid value x86.
    region_id str
    The region ID of the application.
    ai_db_cluster_id str
    The ID of the AI DB cluster.
    auto_renew bool
    Whether to enable auto-renewal. Valid values are true, false.
    component_id str
    The ID of the component.
    components Sequence[ApplicationComponentArgs]
    The components of the application. See components below.
    db_cluster_id str
    The ID of the associated PolarDB cluster.
    description str
    The description of the application. It must be 2 to 256 characters in length.
    model_api str
    The API endpoint for the model.
    model_api_key str
    The API key for the model.
    model_base_url str
    The base URL for the model API.
    model_from str
    The source of the model. Valid values are bailian,custom,maas.
    model_name str
    The name of the model.
    modify_mode str
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters Sequence[ApplicationParameterArgs]
    The parameters of the application. See parameters below.
    pay_type str
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    resource_group_id str
    The ID of the resource group.
    security_ip_array_name str
    The name of the IP whitelist group.
    security_ip_lists Sequence[str]
    The list of IP addresses allowed to access the application.
    upgrade_version bool
    Whether to upgrade the version. Valid values are true, false.
    vpc_id str
    The ID of the VPC.
    vswitch_id str
    The ID of the VSwitch.
    zone_id str
    The zone ID of the application.
    applicationType String
    The type of the application. Valid value polarclaw.
    architecture String
    The architecture of the application. Valid value x86.
    regionId String
    The region ID of the application.
    aiDbClusterId String
    The ID of the AI DB cluster.
    autoRenew Boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId String
    The ID of the component.
    components List<Property Map>
    The components of the application. See components below.
    dbClusterId String
    The ID of the associated PolarDB cluster.
    description String
    The description of the application. It must be 2 to 256 characters in length.
    modelApi String
    The API endpoint for the model.
    modelApiKey String
    The API key for the model.
    modelBaseUrl String
    The base URL for the model API.
    modelFrom String
    The source of the model. Valid values are bailian,custom,maas.
    modelName String
    The name of the model.
    modifyMode String
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters List<Property Map>
    The parameters of the application. See parameters below.
    payType String
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period Number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    resourceGroupId String
    The ID of the resource group.
    securityIpArrayName String
    The name of the IP whitelist group.
    securityIpLists List<String>
    The list of IP addresses allowed to access the application.
    upgradeVersion Boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the VSwitch.
    zoneId String
    The zone ID of the application.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the application.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the application.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the application.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the application.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the application.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the application.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the application.

    Look up Existing Application Resource

    Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ai_db_cluster_id: Optional[str] = None,
            application_type: Optional[str] = None,
            architecture: Optional[str] = None,
            auto_renew: Optional[bool] = None,
            component_id: Optional[str] = None,
            components: Optional[Sequence[ApplicationComponentArgs]] = None,
            db_cluster_id: Optional[str] = None,
            description: Optional[str] = None,
            model_api: Optional[str] = None,
            model_api_key: Optional[str] = None,
            model_base_url: Optional[str] = None,
            model_from: Optional[str] = None,
            model_name: Optional[str] = None,
            modify_mode: Optional[str] = None,
            parameters: Optional[Sequence[ApplicationParameterArgs]] = None,
            pay_type: Optional[str] = None,
            period: Optional[int] = None,
            region_id: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            security_ip_array_name: Optional[str] = None,
            security_ip_lists: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            upgrade_version: Optional[bool] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> Application
    func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
    public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
    public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:polardb:Application    get:      id: ${id}
    import {
      to = alicloud_polardb_application.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AiDbClusterId string
    The ID of the AI DB cluster.
    ApplicationType string
    The type of the application. Valid value polarclaw.
    Architecture string
    The architecture of the application. Valid value x86.
    AutoRenew bool
    Whether to enable auto-renewal. Valid values are true, false.
    ComponentId string
    The ID of the component.
    Components List<Pulumi.AliCloud.PolarDB.Inputs.ApplicationComponent>
    The components of the application. See components below.
    DbClusterId string
    The ID of the associated PolarDB cluster.
    Description string
    The description of the application. It must be 2 to 256 characters in length.
    ModelApi string
    The API endpoint for the model.
    ModelApiKey string
    The API key for the model.
    ModelBaseUrl string
    The base URL for the model API.
    ModelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    ModelName string
    The name of the model.
    ModifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    Parameters List<Pulumi.AliCloud.PolarDB.Inputs.ApplicationParameter>
    The parameters of the application. See parameters below.
    PayType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    Period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    RegionId string
    The region ID of the application.
    ResourceGroupId string
    The ID of the resource group.
    SecurityIpArrayName string
    The name of the IP whitelist group.
    SecurityIpLists List<string>
    The list of IP addresses allowed to access the application.
    Status string
    The status of the application.
    UpgradeVersion bool
    Whether to upgrade the version. Valid values are true, false.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the VSwitch.
    ZoneId string
    The zone ID of the application.
    AiDbClusterId string
    The ID of the AI DB cluster.
    ApplicationType string
    The type of the application. Valid value polarclaw.
    Architecture string
    The architecture of the application. Valid value x86.
    AutoRenew bool
    Whether to enable auto-renewal. Valid values are true, false.
    ComponentId string
    The ID of the component.
    Components []ApplicationComponentArgs
    The components of the application. See components below.
    DbClusterId string
    The ID of the associated PolarDB cluster.
    Description string
    The description of the application. It must be 2 to 256 characters in length.
    ModelApi string
    The API endpoint for the model.
    ModelApiKey string
    The API key for the model.
    ModelBaseUrl string
    The base URL for the model API.
    ModelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    ModelName string
    The name of the model.
    ModifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    Parameters []ApplicationParameterArgs
    The parameters of the application. See parameters below.
    PayType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    Period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    RegionId string
    The region ID of the application.
    ResourceGroupId string
    The ID of the resource group.
    SecurityIpArrayName string
    The name of the IP whitelist group.
    SecurityIpLists []string
    The list of IP addresses allowed to access the application.
    Status string
    The status of the application.
    UpgradeVersion bool
    Whether to upgrade the version. Valid values are true, false.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the VSwitch.
    ZoneId string
    The zone ID of the application.
    ai_db_cluster_id string
    The ID of the AI DB cluster.
    application_type string
    The type of the application. Valid value polarclaw.
    architecture string
    The architecture of the application. Valid value x86.
    auto_renew bool
    Whether to enable auto-renewal. Valid values are true, false.
    component_id string
    The ID of the component.
    components list(object)
    The components of the application. See components below.
    db_cluster_id string
    The ID of the associated PolarDB cluster.
    description string
    The description of the application. It must be 2 to 256 characters in length.
    model_api string
    The API endpoint for the model.
    model_api_key string
    The API key for the model.
    model_base_url string
    The base URL for the model API.
    model_from string
    The source of the model. Valid values are bailian,custom,maas.
    model_name string
    The name of the model.
    modify_mode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters list(object)
    The parameters of the application. See parameters below.
    pay_type string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    region_id string
    The region ID of the application.
    resource_group_id string
    The ID of the resource group.
    security_ip_array_name string
    The name of the IP whitelist group.
    security_ip_lists list(string)
    The list of IP addresses allowed to access the application.
    status string
    The status of the application.
    upgrade_version bool
    Whether to upgrade the version. Valid values are true, false.
    vpc_id string
    The ID of the VPC.
    vswitch_id string
    The ID of the VSwitch.
    zone_id string
    The zone ID of the application.
    aiDbClusterId String
    The ID of the AI DB cluster.
    applicationType String
    The type of the application. Valid value polarclaw.
    architecture String
    The architecture of the application. Valid value x86.
    autoRenew Boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId String
    The ID of the component.
    components List<ApplicationComponent>
    The components of the application. See components below.
    dbClusterId String
    The ID of the associated PolarDB cluster.
    description String
    The description of the application. It must be 2 to 256 characters in length.
    modelApi String
    The API endpoint for the model.
    modelApiKey String
    The API key for the model.
    modelBaseUrl String
    The base URL for the model API.
    modelFrom String
    The source of the model. Valid values are bailian,custom,maas.
    modelName String
    The name of the model.
    modifyMode String
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters List<ApplicationParameter>
    The parameters of the application. See parameters below.
    payType String
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period Integer

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    regionId String
    The region ID of the application.
    resourceGroupId String
    The ID of the resource group.
    securityIpArrayName String
    The name of the IP whitelist group.
    securityIpLists List<String>
    The list of IP addresses allowed to access the application.
    status String
    The status of the application.
    upgradeVersion Boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the VSwitch.
    zoneId String
    The zone ID of the application.
    aiDbClusterId string
    The ID of the AI DB cluster.
    applicationType string
    The type of the application. Valid value polarclaw.
    architecture string
    The architecture of the application. Valid value x86.
    autoRenew boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId string
    The ID of the component.
    components ApplicationComponent[]
    The components of the application. See components below.
    dbClusterId string
    The ID of the associated PolarDB cluster.
    description string
    The description of the application. It must be 2 to 256 characters in length.
    modelApi string
    The API endpoint for the model.
    modelApiKey string
    The API key for the model.
    modelBaseUrl string
    The base URL for the model API.
    modelFrom string
    The source of the model. Valid values are bailian,custom,maas.
    modelName string
    The name of the model.
    modifyMode string
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters ApplicationParameter[]
    The parameters of the application. See parameters below.
    payType string
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    regionId string
    The region ID of the application.
    resourceGroupId string
    The ID of the resource group.
    securityIpArrayName string
    The name of the IP whitelist group.
    securityIpLists string[]
    The list of IP addresses allowed to access the application.
    status string
    The status of the application.
    upgradeVersion boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId string
    The ID of the VPC.
    vswitchId string
    The ID of the VSwitch.
    zoneId string
    The zone ID of the application.
    ai_db_cluster_id str
    The ID of the AI DB cluster.
    application_type str
    The type of the application. Valid value polarclaw.
    architecture str
    The architecture of the application. Valid value x86.
    auto_renew bool
    Whether to enable auto-renewal. Valid values are true, false.
    component_id str
    The ID of the component.
    components Sequence[ApplicationComponentArgs]
    The components of the application. See components below.
    db_cluster_id str
    The ID of the associated PolarDB cluster.
    description str
    The description of the application. It must be 2 to 256 characters in length.
    model_api str
    The API endpoint for the model.
    model_api_key str
    The API key for the model.
    model_base_url str
    The base URL for the model API.
    model_from str
    The source of the model. Valid values are bailian,custom,maas.
    model_name str
    The name of the model.
    modify_mode str
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters Sequence[ApplicationParameterArgs]
    The parameters of the application. See parameters below.
    pay_type str
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period int

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    region_id str
    The region ID of the application.
    resource_group_id str
    The ID of the resource group.
    security_ip_array_name str
    The name of the IP whitelist group.
    security_ip_lists Sequence[str]
    The list of IP addresses allowed to access the application.
    status str
    The status of the application.
    upgrade_version bool
    Whether to upgrade the version. Valid values are true, false.
    vpc_id str
    The ID of the VPC.
    vswitch_id str
    The ID of the VSwitch.
    zone_id str
    The zone ID of the application.
    aiDbClusterId String
    The ID of the AI DB cluster.
    applicationType String
    The type of the application. Valid value polarclaw.
    architecture String
    The architecture of the application. Valid value x86.
    autoRenew Boolean
    Whether to enable auto-renewal. Valid values are true, false.
    componentId String
    The ID of the component.
    components List<Property Map>
    The components of the application. See components below.
    dbClusterId String
    The ID of the associated PolarDB cluster.
    description String
    The description of the application. It must be 2 to 256 characters in length.
    modelApi String
    The API endpoint for the model.
    modelApiKey String
    The API key for the model.
    modelBaseUrl String
    The base URL for the model API.
    modelFrom String
    The source of the model. Valid values are bailian,custom,maas.
    modelName String
    The name of the model.
    modifyMode String
    The method for modifying the IP whitelist. Valid values are Cover, Append, Delete.
    parameters List<Property Map>
    The parameters of the application. See parameters below.
    payType String
    The billing method. Valid values are PrePaid, PostPaid. Default to PostPaid.
    period Number

    The subscription duration in months. It is valid when payType is PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

    NOTE: The attribute period is only used to create Subscription instance. Once effect, it will not be modified that means running pulumi up will not effect the resource.

    regionId String
    The region ID of the application.
    resourceGroupId String
    The ID of the resource group.
    securityIpArrayName String
    The name of the IP whitelist group.
    securityIpLists List<String>
    The list of IP addresses allowed to access the application.
    status String
    The status of the application.
    upgradeVersion Boolean
    Whether to upgrade the version. Valid values are true, false.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the VSwitch.
    zoneId String
    The zone ID of the application.

    Supporting Types

    ApplicationComponent, ApplicationComponentArgs

    ComponentClass string
    The class/specification of the component.
    ComponentReplica int
    The number of replicas for the component.
    ComponentType string
    The type of the component.
    ComponentClass string
    The class/specification of the component.
    ComponentReplica int
    The number of replicas for the component.
    ComponentType string
    The type of the component.
    component_class string
    The class/specification of the component.
    component_replica number
    The number of replicas for the component.
    component_type string
    The type of the component.
    componentClass String
    The class/specification of the component.
    componentReplica Integer
    The number of replicas for the component.
    componentType String
    The type of the component.
    componentClass string
    The class/specification of the component.
    componentReplica number
    The number of replicas for the component.
    componentType string
    The type of the component.
    component_class str
    The class/specification of the component.
    component_replica int
    The number of replicas for the component.
    component_type str
    The type of the component.
    componentClass String
    The class/specification of the component.
    componentReplica Number
    The number of replicas for the component.
    componentType String
    The type of the component.

    ApplicationParameter, ApplicationParameterArgs

    ParameterName string
    The name of the parameter.
    ParameterValue string
    The value of the parameter.
    ParameterName string
    The name of the parameter.
    ParameterValue string
    The value of the parameter.
    parameter_name string
    The name of the parameter.
    parameter_value string
    The value of the parameter.
    parameterName String
    The name of the parameter.
    parameterValue String
    The value of the parameter.
    parameterName string
    The name of the parameter.
    parameterValue string
    The value of the parameter.
    parameter_name str
    The name of the parameter.
    parameter_value str
    The value of the parameter.
    parameterName String
    The name of the parameter.
    parameterValue String
    The value of the parameter.

    Import

    PolarDB Application can be imported using the id, e.g.

    $ pulumi import alicloud:polardb/application:Application example pa-abc12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.104.0
    published on Thursday, Jun 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial