alicloud.tsdb.Instance
Explore with Pulumi AI
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+.
DEPRECATED: This resource has been deprecated from version
1.223.1
.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.tsdb.getZones({});
const exampleNetwork = new alicloud.vpc.Network("example", {
cidrBlock: "192.168.0.0/16",
name: "tf-testaccTsdbInstance",
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
availabilityZone: example.then(example => example.ids?.[0]),
cidrBlock: "192.168.1.0/24",
vpcId: exampleNetwork.id,
});
const exampleInstance = new alicloud.tsdb.Instance("example", {
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 = alicloud.tsdb.get_zones()
example_network = alicloud.vpc.Network("example",
cidr_block="192.168.0.0/16",
name="tf-testaccTsdbInstance")
example_switch = alicloud.vpc.Switch("example",
availability_zone=example.ids[0],
cidr_block="192.168.1.0/24",
vpc_id=example_network.id)
example_instance = alicloud.tsdb.Instance("example",
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 {
example, err := tsdb.GetZones(ctx, nil, nil)
if err != nil {
return err
}
exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
CidrBlock: pulumi.String("192.168.0.0/16"),
Name: pulumi.String("tf-testaccTsdbInstance"),
})
if err != nil {
return err
}
exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
AvailabilityZone: pulumi.String(example.Ids[0]),
CidrBlock: pulumi.String("192.168.1.0/24"),
VpcId: exampleNetwork.ID(),
})
if err != nil {
return err
}
_, err = tsdb.NewInstance(ctx, "example", &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 example = AliCloud.Tsdb.GetZones.Invoke();
var exampleNetwork = new AliCloud.Vpc.Network("example", new()
{
CidrBlock = "192.168.0.0/16",
Name = "tf-testaccTsdbInstance",
});
var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
{
AvailabilityZone = example.Apply(getZonesResult => getZonesResult.Ids[0]),
CidrBlock = "192.168.1.0/24",
VpcId = exampleNetwork.Id,
});
var exampleInstance = new AliCloud.Tsdb.Instance("example", 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 example = TsdbFunctions.getZones();
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.cidrBlock("192.168.0.0/16")
.name("tf-testaccTsdbInstance")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.availabilityZone(example.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
name: example
properties:
cidrBlock: 192.168.0.0/16
name: tf-testaccTsdbInstance
exampleSwitch:
type: alicloud:vpc:Switch
name: example
properties:
availabilityZone: ${example.ids[0]}
cidrBlock: 192.168.1.0/24
vpcId: ${exampleNetwork.id}
exampleInstance:
type: alicloud:tsdb:Instance
name: example
properties:
paymentType: PayAsYouGo
vswitchId: ${exampleSwitch.id}
instanceStorage: '50'
instanceClass: tsdb.1x.basic
engineType: tsdb_tsdb
instanceAlias: tf-testaccTsdbInstance
variables:
example:
fn::invoke:
Function: alicloud:tsdb:getZones
Arguments: {}
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,
instance_class: Optional[str] = None,
instance_storage: Optional[str] = None,
payment_type: Optional[str] = None,
vswitch_id: Optional[str] = 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,
zone_id: 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:tsdb: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 exampleinstanceResourceResourceFromTsdbinstance = new AliCloud.Tsdb.Instance("exampleinstanceResourceResourceFromTsdbinstance", new()
{
InstanceClass = "string",
InstanceStorage = "string",
PaymentType = "string",
VswitchId = "string",
AppKey = "string",
DiskCategory = "string",
Duration = "string",
EngineType = "string",
InstanceAlias = "string",
ZoneId = "string",
});
example, err := tsdb.NewInstance(ctx, "exampleinstanceResourceResourceFromTsdbinstance", &tsdb.InstanceArgs{
InstanceClass: pulumi.String("string"),
InstanceStorage: pulumi.String("string"),
PaymentType: pulumi.String("string"),
VswitchId: pulumi.String("string"),
AppKey: pulumi.String("string"),
DiskCategory: pulumi.String("string"),
Duration: pulumi.String("string"),
EngineType: pulumi.String("string"),
InstanceAlias: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var exampleinstanceResourceResourceFromTsdbinstance = new Instance("exampleinstanceResourceResourceFromTsdbinstance", InstanceArgs.builder()
.instanceClass("string")
.instanceStorage("string")
.paymentType("string")
.vswitchId("string")
.appKey("string")
.diskCategory("string")
.duration("string")
.engineType("string")
.instanceAlias("string")
.zoneId("string")
.build());
exampleinstance_resource_resource_from_tsdbinstance = alicloud.tsdb.Instance("exampleinstanceResourceResourceFromTsdbinstance",
instance_class="string",
instance_storage="string",
payment_type="string",
vswitch_id="string",
app_key="string",
disk_category="string",
duration="string",
engine_type="string",
instance_alias="string",
zone_id="string")
const exampleinstanceResourceResourceFromTsdbinstance = new alicloud.tsdb.Instance("exampleinstanceResourceResourceFromTsdbinstance", {
instanceClass: "string",
instanceStorage: "string",
paymentType: "string",
vswitchId: "string",
appKey: "string",
diskCategory: "string",
duration: "string",
engineType: "string",
instanceAlias: "string",
zoneId: "string",
});
type: alicloud:tsdb:Instance
properties:
appKey: string
diskCategory: string
duration: string
engineType: string
instanceAlias: string
instanceClass: string
instanceStorage: string
paymentType: string
vswitchId: string
zoneId: 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:
- Instance
Class 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.
- Instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- Payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - Vswitch
Id string - The vswitch id.
- App
Key string - The app key.
- Disk
Category 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.
- Engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - Instance
Alias string - The alias of the instance.
- Zone
Id string - The zone ID of the instance.
- Instance
Class 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.
- Instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- Payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - Vswitch
Id string - The vswitch id.
- App
Key string - The app key.
- Disk
Category 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.
- Engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - Instance
Alias string - The alias of the instance.
- Zone
Id string - The zone ID of the instance.
- instance
Class 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.
- instance
Storage String - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type String - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - vswitch
Id String - The vswitch id.
- app
Key String - The app key.
- disk
Category 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.
- engine
Type String - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias String - The alias of the instance.
- zone
Id String - The zone ID of the instance.
- instance
Class 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.
- instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - vswitch
Id string - The vswitch id.
- app
Key string - The app key.
- disk
Category 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.
- engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias string - The alias of the instance.
- zone
Id 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
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
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.
- instance
Class 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.
- instance
Storage String - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type String - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - vswitch
Id String - The vswitch id.
- app
Key String - The app key.
- disk
Category 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.
- engine
Type String - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias String - The alias of the instance.
- zone
Id 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:
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.
- App
Key string - The app key.
- Disk
Category 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.
- Engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - Instance
Alias string - The alias of the instance.
- Instance
Class 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.
- Instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- Payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - Status string
- Instance status, enumerative:
ACTIVATION
,DELETED
,CREATING
,CLASS_CHANGING
,LOCKED
. - Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the instance.
- App
Key string - The app key.
- Disk
Category 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.
- Engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - Instance
Alias string - The alias of the instance.
- Instance
Class 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.
- Instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- Payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - Status string
- Instance status, enumerative:
ACTIVATION
,DELETED
,CREATING
,CLASS_CHANGING
,LOCKED
. - Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the instance.
- app
Key String - The app key.
- disk
Category 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.
- engine
Type String - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias String - The alias of the instance.
- instance
Class 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.
- instance
Storage String - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type String - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - status String
- Instance status, enumerative:
ACTIVATION
,DELETED
,CREATING
,CLASS_CHANGING
,LOCKED
. - vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the instance.
- app
Key string - The app key.
- disk
Category 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.
- engine
Type string - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias string - The alias of the instance.
- instance
Class 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.
- instance
Storage string - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type string - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - status string
- Instance status, enumerative:
ACTIVATION
,DELETED
,CREATING
,CLASS_CHANGING
,LOCKED
. - vswitch
Id string - The vswitch id.
- zone
Id 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
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
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.
- app
Key String - The app key.
- disk
Category 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.
- engine
Type String - The engine type of instance Enumerative:
tsdb_tsdb
refers to TSDB,tsdb_influxdb
refers to TSDB for InfluxDB️. - instance
Alias String - The alias of the instance.
- instance
Class 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.
- instance
Storage String - The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment
Type String - The billing method. Valid values:
PayAsYouGo
andSubscription
. ThePayAsYouGo
value indicates the pay-as-you-go method, and theSubscription
value indicates the subscription method. - status String
- Instance status, enumerative:
ACTIVATION
,DELETED
,CREATING
,CLASS_CHANGING
,LOCKED
. - vswitch
Id String - The vswitch id.
- zone
Id 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>
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
alicloud
Terraform Provider.