published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Provides a Simple Application Server Instance resource.
For information about Simple Application Server Instance and how to use it, see What is Instance.
NOTE: Available since v1.135.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const _default = alicloud.simpleapplicationserver.getImages({
platform: "Linux",
});
const defaultGetServerPlans = alicloud.simpleapplicationserver.getServerPlans({
platform: "Linux",
});
const defaultInstance = new alicloud.simpleapplicationserver.Instance("default", {
paymentType: "Subscription",
planId: defaultGetServerPlans.then(defaultGetServerPlans => defaultGetServerPlans.plans?.[0]?.id),
instanceName: name,
imageId: _default.then(_default => _default.images?.[0]?.id),
period: 1,
dataDiskSize: 100,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.simpleapplicationserver.get_images(platform="Linux")
default_get_server_plans = alicloud.simpleapplicationserver.get_server_plans(platform="Linux")
default_instance = alicloud.simpleapplicationserver.Instance("default",
payment_type="Subscription",
plan_id=default_get_server_plans.plans[0].id,
instance_name=name,
image_id=default.images[0].id,
period=1,
data_disk_size=100)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/simpleapplicationserver"
"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_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := simpleapplicationserver.GetImages(ctx, &simpleapplicationserver.GetImagesArgs{
Platform: pulumi.StringRef("Linux"),
}, nil)
if err != nil {
return err
}
defaultGetServerPlans, err := simpleapplicationserver.GetServerPlans(ctx, &simpleapplicationserver.GetServerPlansArgs{
Platform: pulumi.StringRef("Linux"),
}, nil)
if err != nil {
return err
}
_, err = simpleapplicationserver.NewInstance(ctx, "default", &simpleapplicationserver.InstanceArgs{
PaymentType: pulumi.String("Subscription"),
PlanId: pulumi.String(defaultGetServerPlans.Plans[0].Id),
InstanceName: pulumi.String(name),
ImageId: pulumi.String(_default.Images[0].Id),
Period: pulumi.Int(1),
DataDiskSize: pulumi.Int(100),
})
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 config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = AliCloud.SimpleApplicationServer.GetImages.Invoke(new()
{
Platform = "Linux",
});
var defaultGetServerPlans = AliCloud.SimpleApplicationServer.GetServerPlans.Invoke(new()
{
Platform = "Linux",
});
var defaultInstance = new AliCloud.SimpleApplicationServer.Instance("default", new()
{
PaymentType = "Subscription",
PlanId = defaultGetServerPlans.Apply(getServerPlansResult => getServerPlansResult.Plans[0]?.Id),
InstanceName = name,
ImageId = @default.Apply(@default => @default.Apply(getImagesResult => getImagesResult.Images[0]?.Id)),
Period = 1,
DataDiskSize = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
import com.pulumi.alicloud.simpleapplicationserver.inputs.GetImagesArgs;
import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerPlansArgs;
import com.pulumi.alicloud.simpleapplicationserver.Instance;
import com.pulumi.alicloud.simpleapplicationserver.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
final var default = SimpleapplicationserverFunctions.getImages(GetImagesArgs.builder()
.platform("Linux")
.build());
final var defaultGetServerPlans = SimpleapplicationserverFunctions.getServerPlans(GetServerPlansArgs.builder()
.platform("Linux")
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.paymentType("Subscription")
.planId(defaultGetServerPlans.plans()[0].id())
.instanceName(name)
.imageId(default_.images()[0].id())
.period(1)
.dataDiskSize(100)
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
defaultInstance:
type: alicloud:simpleapplicationserver:Instance
name: default
properties:
paymentType: Subscription
planId: ${defaultGetServerPlans.plans[0].id}
instanceName: ${name}
imageId: ${default.images[0].id}
period: 1
dataDiskSize: 100
variables:
default:
fn::invoke:
function: alicloud:simpleapplicationserver:getImages
arguments:
platform: Linux
defaultGetServerPlans:
fn::invoke:
function: alicloud:simpleapplicationserver:getServerPlans
arguments:
platform: Linux
Deleting alicloud.simpleapplicationserver.Instance or removing it from your configuration
The alicloud.simpleapplicationserver.Instance resource allows you to manage payment_type </span>= "Subscription" instance, but Terraform cannot destroy it.
Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the resource Instance.
You can resume managing the subscription instance via the AlibabaCloud Console.
📚 Need more examples? VIEW MORE EXAMPLES
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
period: Optional[int] = None,
plan_id: Optional[str] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
data_disk_size: Optional[int] = None,
instance_name: Optional[str] = None,
password: Optional[str] = None,
payment_type: Optional[str] = None,
status: Optional[str] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:simpleapplicationserver:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromSimpleapplicationserverinstance = new AliCloud.SimpleApplicationServer.Instance("exampleinstanceResourceResourceFromSimpleapplicationserverinstance", new()
{
ImageId = "string",
Period = 0,
PlanId = "string",
AutoRenew = false,
AutoRenewPeriod = 0,
DataDiskSize = 0,
InstanceName = "string",
Password = "string",
PaymentType = "string",
Status = "string",
});
example, err := simpleapplicationserver.NewInstance(ctx, "exampleinstanceResourceResourceFromSimpleapplicationserverinstance", &simpleapplicationserver.InstanceArgs{
ImageId: pulumi.String("string"),
Period: pulumi.Int(0),
PlanId: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
AutoRenewPeriod: pulumi.Int(0),
DataDiskSize: pulumi.Int(0),
InstanceName: pulumi.String("string"),
Password: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Status: pulumi.String("string"),
})
var exampleinstanceResourceResourceFromSimpleapplicationserverinstance = new com.pulumi.alicloud.simpleapplicationserver.Instance("exampleinstanceResourceResourceFromSimpleapplicationserverinstance", com.pulumi.alicloud.simpleapplicationserver.InstanceArgs.builder()
.imageId("string")
.period(0)
.planId("string")
.autoRenew(false)
.autoRenewPeriod(0)
.dataDiskSize(0)
.instanceName("string")
.password("string")
.paymentType("string")
.status("string")
.build());
exampleinstance_resource_resource_from_simpleapplicationserverinstance = alicloud.simpleapplicationserver.Instance("exampleinstanceResourceResourceFromSimpleapplicationserverinstance",
image_id="string",
period=0,
plan_id="string",
auto_renew=False,
auto_renew_period=0,
data_disk_size=0,
instance_name="string",
password="string",
payment_type="string",
status="string")
const exampleinstanceResourceResourceFromSimpleapplicationserverinstance = new alicloud.simpleapplicationserver.Instance("exampleinstanceResourceResourceFromSimpleapplicationserverinstance", {
imageId: "string",
period: 0,
planId: "string",
autoRenew: false,
autoRenewPeriod: 0,
dataDiskSize: 0,
instanceName: "string",
password: "string",
paymentType: "string",
status: "string",
});
type: alicloud:simpleapplicationserver:Instance
properties:
autoRenew: false
autoRenewPeriod: 0
dataDiskSize: 0
imageId: string
instanceName: string
password: string
paymentType: string
period: 0
planId: string
status: string
Instance 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 Instance resource accepts the following input properties:
- Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - Period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - Plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - Auto
Renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - Auto
Renew intPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - Instance
Name string - The name of the simple application server.
- Password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - Payment
Type string - The paymen type of the resource. Valid values:
Subscription. - Status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - Period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - Plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - Auto
Renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - Auto
Renew intPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - Instance
Name string - The name of the simple application server.
- Password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - Payment
Type string - The paymen type of the resource. Valid values:
Subscription. - Status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - period Integer
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id String - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - auto
Renew Boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew IntegerPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk IntegerSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - instance
Name String - The name of the simple application server.
- password String
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type String - The paymen type of the resource. Valid values:
Subscription. - status String
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - period number
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - auto
Renew boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew numberPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk numberSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - instance
Name string - The name of the simple application server.
- password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type string - The paymen type of the resource. Valid values:
Subscription. - status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- image_
id str - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan_
id str - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - auto_
renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto_
renew_ intperiod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data_
disk_ intsize - The size of the data disk. Unit: GB. Valid values:
0to16380. - instance_
name str - The name of the simple application server.
- password str
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment_
type str - The paymen type of the resource. Valid values:
Subscription. - status str
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - period Number
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id String - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - auto
Renew Boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew NumberPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk NumberSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - instance
Name String - The name of the simple application server.
- password String
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type String - The paymen type of the resource. Valid values:
Subscription. - status String
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
data_disk_size: Optional[int] = None,
image_id: Optional[str] = None,
instance_name: Optional[str] = None,
password: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
plan_id: Optional[str] = None,
status: Optional[str] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources: _: type: alicloud:simpleapplicationserver:Instance get: 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.
- Auto
Renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - Auto
Renew intPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - Instance
Name string - The name of the simple application server.
- Password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - Payment
Type string - The paymen type of the resource. Valid values:
Subscription. - Period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - Plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - Status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- Auto
Renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - Auto
Renew intPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - Instance
Name string - The name of the simple application server.
- Password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - Payment
Type string - The paymen type of the resource. Valid values:
Subscription. - Period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - Plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - Status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- auto
Renew Boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew IntegerPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk IntegerSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - instance
Name String - The name of the simple application server.
- password String
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type String - The paymen type of the resource. Valid values:
Subscription. - period Integer
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id String - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - status String
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- auto
Renew boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew numberPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk numberSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - instance
Name string - The name of the simple application server.
- password string
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type string - The paymen type of the resource. Valid values:
Subscription. - period number
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id string - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - status string
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- auto_
renew bool - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto_
renew_ intperiod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data_
disk_ intsize - The size of the data disk. Unit: GB. Valid values:
0to16380. - image_
id str - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - instance_
name str - The name of the simple application server.
- password str
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment_
type str - The paymen type of the resource. Valid values:
Subscription. - period int
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan_
id str - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - status str
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
- auto
Renew Boolean - Specifies whether to enable auto-renewal. Unit: months. Valid values:
trueandfalse. - auto
Renew NumberPeriod - The auto renew period. Valid values:
1,3,6,12,24,36. NOTE: The attributeauto_renewis valid when the attribute istrue. - data
Disk NumberSize - The size of the data disk. Unit: GB. Valid values:
0to16380. - image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImagesto query the available images in the specified region. The value must be an integral multiple of 20. - instance
Name String - The name of the simple application server.
- password String
- The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /. - payment
Type String - The paymen type of the resource. Valid values:
Subscription. - period Number
- The period. Unit: months. Valid values:
1,3,6,12,24,36. - plan
Id String - The ID of the plan. You can use the
alicloud.simpleapplicationserver.getServerPlansto query all the plans provided by Simple Application Server in the specified region. - status String
- The status of the simple application server. Valid values:
Resetting,Running,Stopped.
Import
Simple Application Server Instance can be imported using the id, e.g.
$ pulumi import alicloud:simpleapplicationserver/instance:Instance example <id>
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
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
