alicloud.simpleapplicationserver.Instance
Explore with Pulumi AI
Import
Simple Application Server Instance can be imported using the id, e.g.
$ pulumi import alicloud:simpleapplicationserver/instance:Instance example <id>
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 Instance("exampleinstanceResourceResourceFromSimpleapplicationserverinstance", 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
The Instance resource accepts the following input properties:
- Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - Auto
Renew intPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - Auto
Renew intPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew IntegerPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk IntegerSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew numberPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk numberSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto_
renew_ intperiod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data_
disk_ intsize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew NumberPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk NumberSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - 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) -> Instance
func 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)
Resource lookup is not supported in YAML
- 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:
true
andfalse
. - Auto
Renew intPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - Auto
Renew intPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - Data
Disk intSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - Image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew IntegerPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk IntegerSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew numberPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk numberSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - image
Id string - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto_
renew_ intperiod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data_
disk_ intsize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - image_
id str - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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:
true
andfalse
. - auto
Renew NumberPeriod - The auto renew period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: The attributeauto_renew
is valid when the attribute istrue
. - data
Disk NumberSize - The size of the data disk. Unit: GB. Valid values:
0
to16380
. - image
Id String - The ID of the image. You can use the
alicloud.simpleapplicationserver.getImages
to 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.getServerPlans
to 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
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.