1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. simpleapplicationserver
  5. Instance
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.simpleapplicationserver.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Import

    Simple Application Server Instance can be imported using the id, e.g.

    $ pulumi import alicloud:simpleapplicationserver/instance:Instance example <id>
    

    Create Instance Resource

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: 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)
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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:

    ImageId 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.
    PlanId 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.
    AutoRenew bool
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    AutoRenewPeriod int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    DataDiskSize int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    InstanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    PaymentType string
    The paymen type of the resource. Valid values: Subscription.
    Status string
    The status of the simple application server. Valid values: Resetting, Running, Stopped.
    ImageId 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.
    PlanId 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.
    AutoRenew bool
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    AutoRenewPeriod int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    DataDiskSize int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    InstanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    PaymentType string
    The paymen type of the resource. Valid values: Subscription.
    Status string
    The status of the simple application server. Valid values: Resetting, Running, Stopped.
    imageId 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.
    planId 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.
    autoRenew Boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod Integer
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize Integer
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType String
    The paymen type of the resource. Valid values: Subscription.
    status String
    The status of the simple application server. Valid values: Resetting, Running, Stopped.
    imageId 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.
    planId 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.
    autoRenew boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod number
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize number
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType 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 and false.
    auto_renew_period int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    data_disk_size int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    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.
    imageId 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.
    planId 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.
    autoRenew Boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod Number
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize Number
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType 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.
    The following state arguments are supported:
    AutoRenew bool
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    AutoRenewPeriod int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    DataDiskSize int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    ImageId 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.
    InstanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    PaymentType string
    The paymen type of the resource. Valid values: Subscription.
    Period int
    The period. Unit: months. Valid values: 1,3, 6, 12, 24, 36.
    PlanId 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.
    AutoRenew bool
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    AutoRenewPeriod int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    DataDiskSize int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    ImageId 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.
    InstanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    PaymentType string
    The paymen type of the resource. Valid values: Subscription.
    Period int
    The period. Unit: months. Valid values: 1,3, 6, 12, 24, 36.
    PlanId 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.
    autoRenew Boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod Integer
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize Integer
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    imageId 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.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType String
    The paymen type of the resource. Valid values: Subscription.
    period Integer
    The period. Unit: months. Valid values: 1,3, 6, 12, 24, 36.
    planId 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.
    autoRenew boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod number
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize number
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    imageId 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.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType string
    The paymen type of the resource. Valid values: Subscription.
    period number
    The period. Unit: months. Valid values: 1,3, 6, 12, 24, 36.
    planId 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 and false.
    auto_renew_period int
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    data_disk_size int
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    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.
    autoRenew Boolean
    Specifies whether to enable auto-renewal. Unit: months. Valid values: true and false.
    autoRenewPeriod Number
    The auto renew period. Valid values: 1,3, 6, 12, 24, 36. NOTE: The attribute auto_renew is valid when the attribute is true.
    dataDiskSize Number
    The size of the data disk. Unit: GB. Valid values: 0 to 16380.
    imageId 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.
    instanceName 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: ( ) ~ ! @ # $ %!^(MISSING) & * - + = | { } [ ] : ; < > , . ? /.
    paymentType String
    The paymen type of the resource. Valid values: Subscription.
    period Number
    The period. Unit: months. Valid values: 1,3, 6, 12, 24, 36.
    planId 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.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi