Alibaba Cloud

v3.10.0 published on Wednesday, Nov 24, 2021 by Pulumi

getApplications

This data source provides the Sae Applications of the current Alibaba Cloud user.

NOTE: Available in v1.133.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testacc";
        var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
        {
            AvailableResourceCreation = "VSwitch",
        }));
        var vpc = new AliCloud.Vpc.Network("vpc", new AliCloud.Vpc.NetworkArgs
        {
            VpcName = "tf_testacc",
            CidrBlock = "172.16.0.0/12",
        });
        var vsw = new AliCloud.Vpc.Switch("vsw", new AliCloud.Vpc.SwitchArgs
        {
            VpcId = vpc.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = defaultZones.Apply(defaultZones => defaultZones.Zones?[0]?.Id),
            VswitchName = name,
        });
        var defaultNamespace = new AliCloud.Sae.Namespace("defaultNamespace", new AliCloud.Sae.NamespaceArgs
        {
            NamespaceDescription = name,
            NamespaceId = "cn-hangzhou:tfacctest",
            NamespaceName = name,
        });
        var defaultApplication = new AliCloud.Sae.Application("defaultApplication", new AliCloud.Sae.ApplicationArgs
        {
            AppDescription = "tf-testaccDescription",
            AppName = "tf-testaccAppName131",
            NamespaceId = defaultNamespace.Id,
            ImageUrl = "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
            PackageType = "Image",
            VswitchId = vsw.Id,
            Timezone = "Asia/Beijing",
            Replicas = 5,
            Cpu = 500,
            Memory = 2048,
        });
        var defaultApplications = defaultApplication.Id.Apply(id => AliCloud.Sae.GetApplications.InvokeAsync(new AliCloud.Sae.GetApplicationsArgs
        {
            Ids = 
            {
                id,
            },
        }));
        this.SaeApplicationId = defaultApplications.Apply(defaultApplications => defaultApplications.Applications?[0]?.Id);
    }

    [Output("saeApplicationId")]
    public Output<string> SaeApplicationId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testacc"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		opt0 := "VSwitch"
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("tf_testacc"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{
			NamespaceDescription: pulumi.String(name),
			NamespaceId:          pulumi.String("cn-hangzhou:tfacctest"),
			NamespaceName:        pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultApplication, err := sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{
			AppDescription: pulumi.String("tf-testaccDescription"),
			AppName:        pulumi.String("tf-testaccAppName131"),
			NamespaceId:    defaultNamespace.ID(),
			ImageUrl:       pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"),
			PackageType:    pulumi.String("Image"),
			VswitchId:      vsw.ID(),
			Timezone:       pulumi.String("Asia/Beijing"),
			Replicas:       pulumi.Int(5),
			Cpu:            pulumi.Int(500),
			Memory:         pulumi.Int(2048),
		})
		if err != nil {
			return err
		}
		ctx.Export("saeApplicationId", defaultApplications.ApplyT(func(defaultApplications sae.GetApplicationsResult) (string, error) {
			return defaultApplications.Applications[0].Id, nil
		}).(pulumi.StringOutput))
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testacc"
default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
vpc = alicloud.vpc.Network("vpc",
    vpc_name="tf_testacc",
    cidr_block="172.16.0.0/12")
vsw = alicloud.vpc.Switch("vsw",
    vpc_id=vpc.id,
    cidr_block="172.16.0.0/24",
    zone_id=default_zones.zones[0].id,
    vswitch_name=name)
default_namespace = alicloud.sae.Namespace("defaultNamespace",
    namespace_description=name,
    namespace_id="cn-hangzhou:tfacctest",
    namespace_name=name)
default_application = alicloud.sae.Application("defaultApplication",
    app_description="tf-testaccDescription",
    app_name="tf-testaccAppName131",
    namespace_id=default_namespace.id,
    image_url="registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
    package_type="Image",
    vswitch_id=vsw.id,
    timezone="Asia/Beijing",
    replicas=5,
    cpu=500,
    memory=2048)
default_applications = default_application.id.apply(lambda id: alicloud.sae.get_applications(ids=[id]))
pulumi.export("saeApplicationId", default_applications.applications[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testacc";
const defaultZones = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const vpc = new alicloud.vpc.Network("vpc", {
    vpcName: "tf_testacc",
    cidrBlock: "172.16.0.0/12",
});
const vsw = new alicloud.vpc.Switch("vsw", {
    vpcId: vpc.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: defaultZones.then(defaultZones => defaultZones.zones?[0]?.id),
    vswitchName: name,
});
const defaultNamespace = new alicloud.sae.Namespace("defaultNamespace", {
    namespaceDescription: name,
    namespaceId: "cn-hangzhou:tfacctest",
    namespaceName: name,
});
const defaultApplication = new alicloud.sae.Application("defaultApplication", {
    appDescription: "tf-testaccDescription",
    appName: "tf-testaccAppName131",
    namespaceId: defaultNamespace.id,
    imageUrl: "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
    packageType: "Image",
    vswitchId: vsw.id,
    timezone: "Asia/Beijing",
    replicas: "5",
    cpu: "500",
    memory: "2048",
});
const defaultApplications = defaultApplication.id.apply(id => alicloud.sae.getApplications({
    ids: [id],
}));
export const saeApplicationId = defaultApplications.apply(defaultApplications => defaultApplications.applications?[0]?.id);

Using getApplications

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getApplications(args: GetApplicationsArgs, opts?: InvokeOptions): Promise<GetApplicationsResult>
function getApplicationsOutput(args: GetApplicationsOutputArgs, opts?: InvokeOptions): Output<GetApplicationsResult>
def get_applications(app_name: Optional[str] = None,
                     enable_details: Optional[bool] = None,
                     field_type: Optional[str] = None,
                     field_value: Optional[str] = None,
                     ids: Optional[Sequence[str]] = None,
                     namespace_id: Optional[str] = None,
                     order_by: Optional[str] = None,
                     output_file: Optional[str] = None,
                     reverse: Optional[bool] = None,
                     status: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetApplicationsResult
def get_applications_output(app_name: Optional[pulumi.Input[str]] = None,
                     enable_details: Optional[pulumi.Input[bool]] = None,
                     field_type: Optional[pulumi.Input[str]] = None,
                     field_value: Optional[pulumi.Input[str]] = None,
                     ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     namespace_id: Optional[pulumi.Input[str]] = None,
                     order_by: Optional[pulumi.Input[str]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     reverse: Optional[pulumi.Input[bool]] = None,
                     status: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetApplicationsResult]
func GetApplications(ctx *Context, args *GetApplicationsArgs, opts ...InvokeOption) (*GetApplicationsResult, error)
func GetApplicationsOutput(ctx *Context, args *GetApplicationsOutputArgs, opts ...InvokeOption) GetApplicationsResultOutput

> Note: This function is named GetApplications in the Go SDK.

public static class GetApplications 
{
    public static Task<GetApplicationsResult> InvokeAsync(GetApplicationsArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationsResult> Invoke(GetApplicationsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AppName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
FieldType string
The field type. Valid values:appName, appIds, slbIps, instanceIps
FieldValue string
The field value.
Ids List<string>
A list of Application IDs.
NamespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
OrderBy string
The order by.Valid values:running,instances.
OutputFile string
Reverse bool
The reverse.
Status string
The status of the resource.
AppName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
FieldType string
The field type. Valid values:appName, appIds, slbIps, instanceIps
FieldValue string
The field value.
Ids []string
A list of Application IDs.
NamespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
OrderBy string
The order by.Valid values:running,instances.
OutputFile string
Reverse bool
The reverse.
Status string
The status of the resource.
appName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
fieldType string
The field type. Valid values:appName, appIds, slbIps, instanceIps
fieldValue string
The field value.
ids string[]
A list of Application IDs.
namespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
orderBy string
The order by.Valid values:running,instances.
outputFile string
reverse boolean
The reverse.
status string
The status of the resource.
app_name str
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
field_type str
The field type. Valid values:appName, appIds, slbIps, instanceIps
field_value str
The field value.
ids Sequence[str]
A list of Application IDs.
namespace_id str
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
order_by str
The order by.Valid values:running,instances.
output_file str
reverse bool
The reverse.
status str
The status of the resource.

getApplications Result

The following output properties are available:

Applications List<Pulumi.AliCloud.Sae.Outputs.GetApplicationsApplication>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
AppName string
EnableDetails bool
FieldType string
FieldValue string
NamespaceId string
OrderBy string
OutputFile string
Reverse bool
Status string
Applications []GetApplicationsApplication
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
AppName string
EnableDetails bool
FieldType string
FieldValue string
NamespaceId string
OrderBy string
OutputFile string
Reverse bool
Status string
applications GetApplicationsApplication[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
appName string
enableDetails boolean
fieldType string
fieldValue string
namespaceId string
orderBy string
outputFile string
reverse boolean
status string
applications Sequence[GetApplicationsApplication]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
app_name str
enable_details bool
field_type str
field_value str
namespace_id str
order_by str
output_file str
reverse bool
status str

Supporting Types

GetApplicationsApplication

AcrAssumeRoleArn string
The ARN of the RAM role required when pulling images across accounts.
AppDescription string
Application description information. No more than 1024 characters.
AppName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
ApplicationId string
The first ID of the resource.
Command string
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
CommandArgs string
Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
ConfigMapMountDesc string
ConfigMap mount description.
Cpu int
The CPU required for each instance, in millicores, cannot be 0.
CreateTime string
Indicates That the Application of the Creation Time.
CustomHostAlias string
Custom host mapping in the container. For example: [{“hostName”:“samplehost”,“ip”:“127.0.0.1”}].
EdasContainerVersion string
The operating environment used by the Pandora application.
Envs string
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
Id string
The ID of the Application.
ImageUrl string
Mirror address. Only Image type applications can configure the mirror address.
JarStartArgs string
The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
JarStartOptions string
The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU.
MinReadyInstances int
The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MountDesc string
Mount description.
MountHost string
Mount point of NAS in application VPC.
NamespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NasId string
ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information.
PackageType string
Application package type. Support FatJar, War and Image.
PackageUrl string
Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageVersion string
The version number of the deployment package. Required when the Package Type is War and FatJar.
PhpArmsConfigLocation string
The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don’t need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpConfig string
PHP configuration file content.
PhpConfigLocation string
PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PostStart string
Execute the script after startup, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
PreStop string
Execute the script before stopping, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {“exec”:{“command”:[“sh”,"-c",“cat /home/admin/start.sh”]},“initialDelaySeconds”:30,“periodSeconds”:30,“timeoutSeconds “:2}.
RegionId string
Replicas int
Initial number of instances.
RepoName string
RepoNamespace string
RepoOriginType string
SecurityGroupId string
Security group ID.
SlsConfigs string
SLS configuration.
Status string
The status of the resource.
TerminationGracePeriodSeconds int
Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60.
Timezone string
Time zone, the default value is Asia/Shanghai.
TomcatConfig string
Tomcat file configuration, set to "" or “{}” means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL.
VpcId string
The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace.
VswitchId string
The vswitch id.
WarStartOptions string
WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap “$@” start.
WebContainer string
The version of tomcat that the deployment package depends on. Image type applications are not supported.
AcrAssumeRoleArn string
The ARN of the RAM role required when pulling images across accounts.
AppDescription string
Application description information. No more than 1024 characters.
AppName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
ApplicationId string
The first ID of the resource.
Command string
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
CommandArgs string
Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
ConfigMapMountDesc string
ConfigMap mount description.
Cpu int
The CPU required for each instance, in millicores, cannot be 0.
CreateTime string
Indicates That the Application of the Creation Time.
CustomHostAlias string
Custom host mapping in the container. For example: [{“hostName”:“samplehost”,“ip”:“127.0.0.1”}].
EdasContainerVersion string
The operating environment used by the Pandora application.
Envs string
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
Id string
The ID of the Application.
ImageUrl string
Mirror address. Only Image type applications can configure the mirror address.
JarStartArgs string
The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
JarStartOptions string
The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU.
MinReadyInstances int
The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MountDesc string
Mount description.
MountHost string
Mount point of NAS in application VPC.
NamespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NasId string
ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information.
PackageType string
Application package type. Support FatJar, War and Image.
PackageUrl string
Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageVersion string
The version number of the deployment package. Required when the Package Type is War and FatJar.
PhpArmsConfigLocation string
The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don’t need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpConfig string
PHP configuration file content.
PhpConfigLocation string
PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PostStart string
Execute the script after startup, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
PreStop string
Execute the script before stopping, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {“exec”:{“command”:[“sh”,"-c",“cat /home/admin/start.sh”]},“initialDelaySeconds”:30,“periodSeconds”:30,“timeoutSeconds “:2}.
RegionId string
Replicas int
Initial number of instances.
RepoName string
RepoNamespace string
RepoOriginType string
SecurityGroupId string
Security group ID.
SlsConfigs string
SLS configuration.
Status string
The status of the resource.
TerminationGracePeriodSeconds int
Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60.
Timezone string
Time zone, the default value is Asia/Shanghai.
TomcatConfig string
Tomcat file configuration, set to "" or “{}” means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL.
VpcId string
The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace.
VswitchId string
The vswitch id.
WarStartOptions string
WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap “$@” start.
WebContainer string
The version of tomcat that the deployment package depends on. Image type applications are not supported.
acrAssumeRoleArn string
The ARN of the RAM role required when pulling images across accounts.
appDescription string
Application description information. No more than 1024 characters.
appName string
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
applicationId string
The first ID of the resource.
command string
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
commandArgs string
Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
configMapMountDesc string
ConfigMap mount description.
cpu number
The CPU required for each instance, in millicores, cannot be 0.
createTime string
Indicates That the Application of the Creation Time.
customHostAlias string
Custom host mapping in the container. For example: [{“hostName”:“samplehost”,“ip”:“127.0.0.1”}].
edasContainerVersion string
The operating environment used by the Pandora application.
envs string
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
id string
The ID of the Application.
imageUrl string
Mirror address. Only Image type applications can configure the mirror address.
jarStartArgs string
The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
jarStartOptions string
The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
memory number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU.
minReadyInstances number
The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
mountDesc string
Mount description.
mountHost string
Mount point of NAS in application VPC.
namespaceId string
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
nasId string
ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
ossAkId string
OSS AccessKey ID.
ossAkSecret string
OSS AccessKey Secret.
ossMountDescs string
OSS mount description information.
packageType string
Application package type. Support FatJar, War and Image.
packageUrl string
Deployment package address. Only FatJar or War type applications can configure the deployment package address.
packageVersion string
The version number of the deployment package. Required when the Package Type is War and FatJar.
phpArmsConfigLocation string
The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don’t need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
phpConfig string
PHP configuration file content.
phpConfigLocation string
PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
postStart string
Execute the script after startup, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
preStop string
Execute the script before stopping, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {“exec”:{“command”:[“sh”,"-c",“cat /home/admin/start.sh”]},“initialDelaySeconds”:30,“periodSeconds”:30,“timeoutSeconds “:2}.
regionId string
replicas number
Initial number of instances.
repoName string
repoNamespace string
repoOriginType string
securityGroupId string
Security group ID.
slsConfigs string
SLS configuration.
status string
The status of the resource.
terminationGracePeriodSeconds number
Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60.
timezone string
Time zone, the default value is Asia/Shanghai.
tomcatConfig string
Tomcat file configuration, set to "" or “{}” means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL.
vpcId string
The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace.
vswitchId string
The vswitch id.
warStartOptions string
WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap “$@” start.
webContainer string
The version of tomcat that the deployment package depends on. Image type applications are not supported.
acr_assume_role_arn str
The ARN of the RAM role required when pulling images across accounts.
app_description str
Application description information. No more than 1024 characters.
app_name str
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
application_id str
The first ID of the resource.
command str
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
command_args str
Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
config_map_mount_desc str
ConfigMap mount description.
cpu int
The CPU required for each instance, in millicores, cannot be 0.
create_time str
Indicates That the Application of the Creation Time.
custom_host_alias str
Custom host mapping in the container. For example: [{“hostName”:“samplehost”,“ip”:“127.0.0.1”}].
edas_container_version str
The operating environment used by the Pandora application.
envs str
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
id str
The ID of the Application.
image_url str
Mirror address. Only Image type applications can configure the mirror address.
jar_start_args str
The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
jar_start_options str
The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS “$package_path” $JarStartArgs.
jdk str
The JDK version that the deployment package depends on. Image type applications are not supported.
liveness str
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU.
min_ready_instances int
The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
mount_desc str
Mount description.
mount_host str
Mount point of NAS in application VPC.
namespace_id str
SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
nas_id str
ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
oss_ak_id str
OSS AccessKey ID.
oss_ak_secret str
OSS AccessKey Secret.
oss_mount_descs str
OSS mount description information.
package_type str
Application package type. Support FatJar, War and Image.
package_url str
Deployment package address. Only FatJar or War type applications can configure the deployment package address.
package_version str
The version number of the deployment package. Required when the Package Type is War and FatJar.
php_arms_config_location str
The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don’t need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
php_config str
PHP configuration file content.
php_config_location str
PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
post_start str
Execute the script after startup, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
pre_stop str
Execute the script before stopping, the format is like: {“exec”:{“command”:[“cat”,"/etc/group"]}}.
readiness str
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {“exec”:{“command”:[“sh”,"-c",“cat /home/admin/start.sh”]},“initialDelaySeconds”:30,“periodSeconds”:30,“timeoutSeconds “:2}.
region_id str
replicas int
Initial number of instances.
repo_name str
repo_namespace str
repo_origin_type str
security_group_id str
Security group ID.
sls_configs str
SLS configuration.
status str
The status of the resource.
termination_grace_period_seconds int
Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60.
timezone str
Time zone, the default value is Asia/Shanghai.
tomcat_config str
Tomcat file configuration, set to "" or “{}” means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL.
vpc_id str
The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace.
vswitch_id str
The vswitch id.
war_start_options str
WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap “$@” start.
web_container str
The version of tomcat that the deployment package depends on. Image type applications are not supported.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.