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

alicloud.tsdb.Instance

Explore with Pulumi AI

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

    Provides a Time Series Database (TSDB) Instance resource.

    For information about Time Series Database (TSDB) Instance and how to use it, see What is Time Series Database (TSDB).

    NOTE: Available in v1.112.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const exampleZones = alicloud.tsdb.getZones({});
    const exampleNetwork = new alicloud.vpc.Network("exampleNetwork", {cidrBlock: "192.168.0.0/16"});
    const exampleSwitch = new alicloud.vpc.Switch("exampleSwitch", {
        availabilityZone: exampleZones.then(exampleZones => exampleZones.ids?.[0]),
        cidrBlock: "192.168.1.0/24",
        vpcId: exampleNetwork.id,
    });
    const exampleInstance = new alicloud.tsdb.Instance("exampleInstance", {
        paymentType: "PayAsYouGo",
        vswitchId: exampleSwitch.id,
        instanceStorage: "50",
        instanceClass: "tsdb.1x.basic",
        engineType: "tsdb_tsdb",
        instanceAlias: "tf-testaccTsdbInstance",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example_zones = alicloud.tsdb.get_zones()
    example_network = alicloud.vpc.Network("exampleNetwork", cidr_block="192.168.0.0/16")
    example_switch = alicloud.vpc.Switch("exampleSwitch",
        availability_zone=example_zones.ids[0],
        cidr_block="192.168.1.0/24",
        vpc_id=example_network.id)
    example_instance = alicloud.tsdb.Instance("exampleInstance",
        payment_type="PayAsYouGo",
        vswitch_id=example_switch.id,
        instance_storage="50",
        instance_class="tsdb.1x.basic",
        engine_type="tsdb_tsdb",
        instance_alias="tf-testaccTsdbInstance")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/tsdb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleZones, err := tsdb.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		exampleNetwork, err := vpc.NewNetwork(ctx, "exampleNetwork", &vpc.NetworkArgs{
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
    			AvailabilityZone: pulumi.String(exampleZones.Ids[0]),
    			CidrBlock:        pulumi.String("192.168.1.0/24"),
    			VpcId:            exampleNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tsdb.NewInstance(ctx, "exampleInstance", &tsdb.InstanceArgs{
    			PaymentType:     pulumi.String("PayAsYouGo"),
    			VswitchId:       exampleSwitch.ID(),
    			InstanceStorage: pulumi.String("50"),
    			InstanceClass:   pulumi.String("tsdb.1x.basic"),
    			EngineType:      pulumi.String("tsdb_tsdb"),
    			InstanceAlias:   pulumi.String("tf-testaccTsdbInstance"),
    		})
    		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 exampleZones = AliCloud.Tsdb.GetZones.Invoke();
    
        var exampleNetwork = new AliCloud.Vpc.Network("exampleNetwork", new()
        {
            CidrBlock = "192.168.0.0/16",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("exampleSwitch", new()
        {
            AvailabilityZone = exampleZones.Apply(getZonesResult => getZonesResult.Ids[0]),
            CidrBlock = "192.168.1.0/24",
            VpcId = exampleNetwork.Id,
        });
    
        var exampleInstance = new AliCloud.Tsdb.Instance("exampleInstance", new()
        {
            PaymentType = "PayAsYouGo",
            VswitchId = exampleSwitch.Id,
            InstanceStorage = "50",
            InstanceClass = "tsdb.1x.basic",
            EngineType = "tsdb_tsdb",
            InstanceAlias = "tf-testaccTsdbInstance",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.tsdb.TsdbFunctions;
    import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.tsdb.Instance;
    import com.pulumi.alicloud.tsdb.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 exampleZones = TsdbFunctions.getZones();
    
            var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()        
                .cidrBlock("192.168.0.0/16")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()        
                .availabilityZone(exampleZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .cidrBlock("192.168.1.0/24")
                .vpcId(exampleNetwork.id())
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()        
                .paymentType("PayAsYouGo")
                .vswitchId(exampleSwitch.id())
                .instanceStorage("50")
                .instanceClass("tsdb.1x.basic")
                .engineType("tsdb_tsdb")
                .instanceAlias("tf-testaccTsdbInstance")
                .build());
    
        }
    }
    
    resources:
      exampleNetwork:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 192.168.0.0/16
      exampleSwitch:
        type: alicloud:vpc:Switch
        properties:
          availabilityZone: ${exampleZones.ids[0]}
          cidrBlock: 192.168.1.0/24
          vpcId: ${exampleNetwork.id}
      exampleInstance:
        type: alicloud:tsdb:Instance
        properties:
          paymentType: PayAsYouGo
          vswitchId: ${exampleSwitch.id}
          instanceStorage: '50'
          instanceClass: tsdb.1x.basic
          engineType: tsdb_tsdb
          instanceAlias: tf-testaccTsdbInstance
    variables:
      exampleZones:
        fn::invoke:
          Function: alicloud:tsdb:getZones
          Arguments: {}
    

    Create Instance Resource

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 app_key: Optional[str] = None,
                 disk_category: Optional[str] = None,
                 duration: Optional[str] = None,
                 engine_type: Optional[str] = None,
                 instance_alias: Optional[str] = None,
                 instance_class: Optional[str] = None,
                 instance_storage: Optional[str] = None,
                 payment_type: Optional[str] = None,
                 vswitch_id: Optional[str] = None,
                 zone_id: 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:tsdb: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:

    InstanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    InstanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    PaymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    VswitchId string
    The vswitch id.
    AppKey string
    The app key.
    DiskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    Duration string
    The duration.
    EngineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    InstanceAlias string
    The alias of the instance.
    ZoneId string
    The zone ID of the instance.
    InstanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    InstanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    PaymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    VswitchId string
    The vswitch id.
    AppKey string
    The app key.
    DiskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    Duration string
    The duration.
    EngineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    InstanceAlias string
    The alias of the instance.
    ZoneId string
    The zone ID of the instance.
    instanceClass String
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage String
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType String
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    vswitchId String
    The vswitch id.
    appKey String
    The app key.
    diskCategory String
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration String
    The duration.
    engineType String
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias String
    The alias of the instance.
    zoneId String
    The zone ID of the instance.
    instanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    vswitchId string
    The vswitch id.
    appKey string
    The app key.
    diskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration string
    The duration.
    engineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias string
    The alias of the instance.
    zoneId string
    The zone ID of the instance.
    instance_class str
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instance_storage str
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    payment_type str
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    vswitch_id str
    The vswitch id.
    app_key str
    The app key.
    disk_category str
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration str
    The duration.
    engine_type str
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instance_alias str
    The alias of the instance.
    zone_id str
    The zone ID of the instance.
    instanceClass String
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage String
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType String
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    vswitchId String
    The vswitch id.
    appKey String
    The app key.
    diskCategory String
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration String
    The duration.
    engineType String
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias String
    The alias of the instance.
    zoneId String
    The zone ID of the instance.

    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.
    Status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.

    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,
            app_key: Optional[str] = None,
            disk_category: Optional[str] = None,
            duration: Optional[str] = None,
            engine_type: Optional[str] = None,
            instance_alias: Optional[str] = None,
            instance_class: Optional[str] = None,
            instance_storage: Optional[str] = None,
            payment_type: Optional[str] = None,
            status: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            zone_id: 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:
    AppKey string
    The app key.
    DiskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    Duration string
    The duration.
    EngineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    InstanceAlias string
    The alias of the instance.
    InstanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    InstanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    PaymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    Status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    VswitchId string
    The vswitch id.
    ZoneId string
    The zone ID of the instance.
    AppKey string
    The app key.
    DiskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    Duration string
    The duration.
    EngineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    InstanceAlias string
    The alias of the instance.
    InstanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    InstanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    PaymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    Status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    VswitchId string
    The vswitch id.
    ZoneId string
    The zone ID of the instance.
    appKey String
    The app key.
    diskCategory String
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration String
    The duration.
    engineType String
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias String
    The alias of the instance.
    instanceClass String
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage String
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType String
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    status String
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    vswitchId String
    The vswitch id.
    zoneId String
    The zone ID of the instance.
    appKey string
    The app key.
    diskCategory string
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration string
    The duration.
    engineType string
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias string
    The alias of the instance.
    instanceClass string
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage string
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType string
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    status string
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    vswitchId string
    The vswitch id.
    zoneId string
    The zone ID of the instance.
    app_key str
    The app key.
    disk_category str
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration str
    The duration.
    engine_type str
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instance_alias str
    The alias of the instance.
    instance_class str
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instance_storage str
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    payment_type str
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    status str
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    vswitch_id str
    The vswitch id.
    zone_id str
    The zone ID of the instance.
    appKey String
    The app key.
    diskCategory String
    The disk type of instance. Valid when the engine type is tsdb_influxdb. cloud_ssd refers to SSD disk, cloud_efficiency refers to efficiency disk, cloud_essd refers to ESSD PL1 disk. Valid values: cloud_efficiency, cloud_essd, cloud_ssd.
    duration String
    The duration.
    engineType String
    The engine type of instance Enumerative: tsdb_tsdb refers to TSDB, tsdb_influxdb refers to TSDB for InfluxDB️.
    instanceAlias String
    The alias of the instance.
    instanceClass String
    The specification of the instance.

    • Following enumerative value for TSDB for InfluxDB️ standart edition:
    • influxdata.n1.mxlarge refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB for InfluxDB High-availability edition:
    • influxdata.n1.mxlarge_ha refers to 2 CPU 8GB memory;
    • influxdata.n1.xlarge_ha refers to 4 CPU 16GB memory;
    • influxdata.n1.2xlarge_ha refers to 8 CPU 32 GB memory;
    • influxdata.n1.4xlarge_ha refers to 16 CPU 64 GB memory;
    • influxdata.n1.8xlarge_ha refers to 32 CPU 128 GB memory;
    • influxdata.n1.16xlarge_ha refers to 64 CPU 256 GB memory.
    • Following enumerative value for TSDB:
    • tsdb.1x.basic refers to basic edition I;
    • tsdb.3x.basic refers to basic edition II;
    • tsdb.4x.basic refers to basic edtion III;
    • tsdb.12x.standard refers to standard edition I;
    • tsdb.24x.standard refers to standard edition II;
    • tsdb.48x.large refers to ultimate edition I;
    • tsdb.96x.large refers to ultimate edition II.
    instanceStorage String
    The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
    paymentType String
    The billing method. Valid values: PayAsYouGo and Subscription. The PayAsYouGo value indicates the pay-as-you-go method, and the Subscription value indicates the subscription method.
    status String
    Instance status, enumerative: ACTIVATION, DELETED, CREATING, CLASS_CHANGING, LOCKED.
    vswitchId String
    The vswitch id.
    zoneId String
    The zone ID of the instance.

    Import

    TSDB Instance can be imported using the id, e.g.

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

    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