1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. Instances
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.ecs.Instances

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of ecs instances

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";

const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
    subnetName: "acc-test-subnet",
    cidrBlock: "172.16.0.0/24",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    vpcId: fooVpc.id,
});
const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
    securityGroupName: "acc-test-security-group",
    vpcId: fooVpc.id,
});
const fooImages = volcengine.ecs.Images({
    osType: "Linux",
    visibility: "public",
    instanceTypeId: "ecs.g1.large",
});
const fooInstance: volcengine.ecs.Instance[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
    fooInstance.push(new volcengine.ecs.Instance(`fooInstance-${range.value}`, {
        instanceName: `acc-test-ecs-${range.value}`,
        description: "acc-test",
        hostName: "tf-acc-test",
        imageId: fooImages.then(fooImages => fooImages.images?.[0]?.imageId),
        instanceType: "ecs.g1.large",
        password: "93f0cb0614Aab12",
        instanceChargeType: "PostPaid",
        systemVolumeType: "ESSD_PL0",
        systemVolumeSize: 40,
        dataVolumes: [{
            volumeType: "ESSD_PL0",
            size: 50,
            deleteWithInstance: true,
        }],
        subnetId: fooSubnet.id,
        securityGroupIds: [fooSecurityGroup.id],
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    }));
}
const fooInstances = volcengine.ecs.InstancesOutput({
    ids: fooInstance.map(__item => __item.id),
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
    subnet_name="acc-test-subnet",
    cidr_block="172.16.0.0/24",
    zone_id=foo_zones.zones[0].id,
    vpc_id=foo_vpc.id)
foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
    security_group_name="acc-test-security-group",
    vpc_id=foo_vpc.id)
foo_images = volcengine.ecs.images(os_type="Linux",
    visibility="public",
    instance_type_id="ecs.g1.large")
foo_instance = []
for range in [{"value": i} for i in range(0, 2)]:
    foo_instance.append(volcengine.ecs.Instance(f"fooInstance-{range['value']}",
        instance_name=f"acc-test-ecs-{range['value']}",
        description="acc-test",
        host_name="tf-acc-test",
        image_id=foo_images.images[0].image_id,
        instance_type="ecs.g1.large",
        password="93f0cb0614Aab12",
        instance_charge_type="PostPaid",
        system_volume_type="ESSD_PL0",
        system_volume_size=40,
        data_volumes=[volcengine.ecs.InstanceDataVolumeArgs(
            volume_type="ESSD_PL0",
            size=50,
            delete_with_instance=True,
        )],
        subnet_id=foo_subnet.id,
        security_group_ids=[foo_security_group.id],
        project_name="default",
        tags=[volcengine.ecs.InstanceTagArgs(
            key="k1",
            value="v1",
        )]))
foo_instances = volcengine.ecs.instances_output(ids=[__item.id for __item in foo_instance])
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil);
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
SecurityGroupName: pulumi.String("acc-test-security-group"),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooImages, err := ecs.Images(ctx, &ecs.ImagesArgs{
OsType: pulumi.StringRef("Linux"),
Visibility: pulumi.StringRef("public"),
InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
}, nil);
if err != nil {
return err
}
var fooInstance []*ecs.Instance
for index := 0; index < 2; index++ {
    key0 := index
    val0 := index
__res, err := ecs.NewInstance(ctx, fmt.Sprintf("fooInstance-%v", key0), &ecs.InstanceArgs{
InstanceName: pulumi.String(fmt.Sprintf("acc-test-ecs-%v", val0)),
Description: pulumi.String("acc-test"),
HostName: pulumi.String("tf-acc-test"),
ImageId: pulumi.String(fooImages.Images[0].ImageId),
InstanceType: pulumi.String("ecs.g1.large"),
Password: pulumi.String("93f0cb0614Aab12"),
InstanceChargeType: pulumi.String("PostPaid"),
SystemVolumeType: pulumi.String("ESSD_PL0"),
SystemVolumeSize: pulumi.Int(40),
DataVolumes: ecs.InstanceDataVolumeArray{
&ecs.InstanceDataVolumeArgs{
VolumeType: pulumi.String("ESSD_PL0"),
Size: pulumi.Int(50),
DeleteWithInstance: pulumi.Bool(true),
},
},
SubnetId: fooSubnet.ID(),
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
ProjectName: pulumi.String("default"),
Tags: ecs.InstanceTagArray{
&ecs.InstanceTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooInstance = append(fooInstance, __res)
}
_ = ecs.InstancesOutput(ctx, ecs.InstancesOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:ecs-instances:Instances.pp:49,9-26),
}, nil);
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Ecs.Zones.Invoke();

    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });

    var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
    {
        SubnetName = "acc-test-subnet",
        CidrBlock = "172.16.0.0/24",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        VpcId = fooVpc.Id,
    });

    var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
    {
        SecurityGroupName = "acc-test-security-group",
        VpcId = fooVpc.Id,
    });

    var fooImages = Volcengine.Ecs.Images.Invoke(new()
    {
        OsType = "Linux",
        Visibility = "public",
        InstanceTypeId = "ecs.g1.large",
    });

    var fooInstance = new List<Volcengine.Ecs.Instance>();
    for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooInstance.Add(new Volcengine.Ecs.Instance($"fooInstance-{range.Value}", new()
        {
            InstanceName = $"acc-test-ecs-{range.Value}",
            Description = "acc-test",
            HostName = "tf-acc-test",
            ImageId = fooImages.Apply(imagesResult => imagesResult.Images[0]?.ImageId),
            InstanceType = "ecs.g1.large",
            Password = "93f0cb0614Aab12",
            InstanceChargeType = "PostPaid",
            SystemVolumeType = "ESSD_PL0",
            SystemVolumeSize = 40,
            DataVolumes = new[]
            {
                new Volcengine.Ecs.Inputs.InstanceDataVolumeArgs
                {
                    VolumeType = "ESSD_PL0",
                    Size = 50,
                    DeleteWithInstance = true,
                },
            },
            SubnetId = fooSubnet.Id,
            SecurityGroupIds = new[]
            {
                fooSecurityGroup.Id,
            },
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Ecs.Inputs.InstanceTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        }));
    }
    var fooInstances = Volcengine.Ecs.Instances.Invoke(new()
    {
        Ids = fooInstance.Select(__item => __item.Id).ToList(),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpc.SecurityGroup;
import com.pulumi.volcengine.vpc.SecurityGroupArgs;
import com.pulumi.volcengine.ecs.inputs.ImagesArgs;
import com.pulumi.volcengine.ecs.Instance;
import com.pulumi.volcengine.ecs.InstanceArgs;
import com.pulumi.volcengine.ecs.inputs.InstanceDataVolumeArgs;
import com.pulumi.volcengine.ecs.inputs.InstanceTagArgs;
import com.pulumi.volcengine.ecs.inputs.InstancesArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 fooZones = EcsFunctions.Zones();

        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());

        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
            .subnetName("acc-test-subnet")
            .cidrBlock("172.16.0.0/24")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .vpcId(fooVpc.id())
            .build());

        var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
            .securityGroupName("acc-test-security-group")
            .vpcId(fooVpc.id())
            .build());

        final var fooImages = EcsFunctions.Images(ImagesArgs.builder()
            .osType("Linux")
            .visibility("public")
            .instanceTypeId("ecs.g1.large")
            .build());

        for (var i = 0; i < 2; i++) {
            new Instance("fooInstance-" + i, InstanceArgs.builder()            
                .instanceName(String.format("acc-test-ecs-%s", range.value()))
                .description("acc-test")
                .hostName("tf-acc-test")
                .imageId(fooImages.applyValue(imagesResult -> imagesResult.images()[0].imageId()))
                .instanceType("ecs.g1.large")
                .password("93f0cb0614Aab12")
                .instanceChargeType("PostPaid")
                .systemVolumeType("ESSD_PL0")
                .systemVolumeSize(40)
                .dataVolumes(InstanceDataVolumeArgs.builder()
                    .volumeType("ESSD_PL0")
                    .size(50)
                    .deleteWithInstance(true)
                    .build())
                .subnetId(fooSubnet.id())
                .securityGroupIds(fooSecurityGroup.id())
                .projectName("default")
                .tags(InstanceTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());

        
}
        final var fooInstances = EcsFunctions.Instances(InstancesArgs.builder()
            .ids(fooInstance.stream().map(element -> element.id()).collect(toList()))
            .build());

    }
}
Copy
Coming soon!

Using Instances

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function instances(args: InstancesArgs, opts?: InvokeOptions): Promise<InstancesResult>
function instancesOutput(args: InstancesOutputArgs, opts?: InvokeOptions): Output<InstancesResult>
Copy
def instances(deployment_set_ids: Optional[Sequence[str]] = None,
              eip_addresses: Optional[Sequence[str]] = None,
              hpc_cluster_id: Optional[str] = None,
              ids: Optional[Sequence[str]] = None,
              instance_charge_type: Optional[str] = None,
              instance_name: Optional[str] = None,
              instance_type_families: Optional[Sequence[str]] = None,
              instance_type_ids: Optional[Sequence[str]] = None,
              ipv6_addresses: Optional[Sequence[str]] = None,
              key_pair_name: Optional[str] = None,
              name_regex: Optional[str] = None,
              output_file: Optional[str] = None,
              primary_ip_address: Optional[str] = None,
              project_name: Optional[str] = None,
              status: Optional[str] = None,
              tags: Optional[Sequence[InstancesTag]] = None,
              vpc_id: Optional[str] = None,
              zone_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> InstancesResult
def instances_output(deployment_set_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              eip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              hpc_cluster_id: Optional[pulumi.Input[str]] = None,
              ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              instance_charge_type: Optional[pulumi.Input[str]] = None,
              instance_name: Optional[pulumi.Input[str]] = None,
              instance_type_families: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              instance_type_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              ipv6_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              key_pair_name: Optional[pulumi.Input[str]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              primary_ip_address: Optional[pulumi.Input[str]] = None,
              project_name: Optional[pulumi.Input[str]] = None,
              status: Optional[pulumi.Input[str]] = None,
              tags: Optional[pulumi.Input[Sequence[pulumi.Input[InstancesTagArgs]]]] = None,
              vpc_id: Optional[pulumi.Input[str]] = None,
              zone_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[InstancesResult]
Copy
func Instances(ctx *Context, args *InstancesArgs, opts ...InvokeOption) (*InstancesResult, error)
func InstancesOutput(ctx *Context, args *InstancesOutputArgs, opts ...InvokeOption) InstancesResultOutput
Copy
public static class Instances 
{
    public static Task<InstancesResult> InvokeAsync(InstancesArgs args, InvokeOptions? opts = null)
    public static Output<InstancesResult> Invoke(InstancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<InstancesResult> instances(InstancesArgs args, InvokeOptions options)
public static Output<InstancesResult> instances(InstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:ecs:Instances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DeploymentSetIds List<string>
A list of DeploymentSet IDs.
EipAddresses List<string>
A list of Eip addresses.
HpcClusterId string
The hpc cluster ID of ECS instance.
Ids List<string>
A list of ECS instance IDs.
InstanceChargeType string
The charge type of ECS instance.
InstanceName string
The name of ECS instance. This field support fuzzy query.
InstanceTypeFamilies List<string>
A list of instance type families.
InstanceTypeIds List<string>
A list of instance type IDs.
Ipv6Addresses List<string>
A list of ipv6 addresses.
KeyPairName string
The key pair name of ECS instance.
NameRegex string
A Name Regex of ECS instance.
OutputFile string
File name where to save data source results.
PrimaryIpAddress string
The primary ip address of ECS instance.
ProjectName string
The ProjectName of ECS instance.
Status string
The status of ECS instance.
Tags List<InstancesTag>
Tags.
VpcId string
The VPC ID of ECS instance.
ZoneId string
The available zone ID of ECS instance.
DeploymentSetIds []string
A list of DeploymentSet IDs.
EipAddresses []string
A list of Eip addresses.
HpcClusterId string
The hpc cluster ID of ECS instance.
Ids []string
A list of ECS instance IDs.
InstanceChargeType string
The charge type of ECS instance.
InstanceName string
The name of ECS instance. This field support fuzzy query.
InstanceTypeFamilies []string
A list of instance type families.
InstanceTypeIds []string
A list of instance type IDs.
Ipv6Addresses []string
A list of ipv6 addresses.
KeyPairName string
The key pair name of ECS instance.
NameRegex string
A Name Regex of ECS instance.
OutputFile string
File name where to save data source results.
PrimaryIpAddress string
The primary ip address of ECS instance.
ProjectName string
The ProjectName of ECS instance.
Status string
The status of ECS instance.
Tags []InstancesTag
Tags.
VpcId string
The VPC ID of ECS instance.
ZoneId string
The available zone ID of ECS instance.
deploymentSetIds List<String>
A list of DeploymentSet IDs.
eipAddresses List<String>
A list of Eip addresses.
hpcClusterId String
The hpc cluster ID of ECS instance.
ids List<String>
A list of ECS instance IDs.
instanceChargeType String
The charge type of ECS instance.
instanceName String
The name of ECS instance. This field support fuzzy query.
instanceTypeFamilies List<String>
A list of instance type families.
instanceTypeIds List<String>
A list of instance type IDs.
ipv6Addresses List<String>
A list of ipv6 addresses.
keyPairName String
The key pair name of ECS instance.
nameRegex String
A Name Regex of ECS instance.
outputFile String
File name where to save data source results.
primaryIpAddress String
The primary ip address of ECS instance.
projectName String
The ProjectName of ECS instance.
status String
The status of ECS instance.
tags List<InstancesTag>
Tags.
vpcId String
The VPC ID of ECS instance.
zoneId String
The available zone ID of ECS instance.
deploymentSetIds string[]
A list of DeploymentSet IDs.
eipAddresses string[]
A list of Eip addresses.
hpcClusterId string
The hpc cluster ID of ECS instance.
ids string[]
A list of ECS instance IDs.
instanceChargeType string
The charge type of ECS instance.
instanceName string
The name of ECS instance. This field support fuzzy query.
instanceTypeFamilies string[]
A list of instance type families.
instanceTypeIds string[]
A list of instance type IDs.
ipv6Addresses string[]
A list of ipv6 addresses.
keyPairName string
The key pair name of ECS instance.
nameRegex string
A Name Regex of ECS instance.
outputFile string
File name where to save data source results.
primaryIpAddress string
The primary ip address of ECS instance.
projectName string
The ProjectName of ECS instance.
status string
The status of ECS instance.
tags InstancesTag[]
Tags.
vpcId string
The VPC ID of ECS instance.
zoneId string
The available zone ID of ECS instance.
deployment_set_ids Sequence[str]
A list of DeploymentSet IDs.
eip_addresses Sequence[str]
A list of Eip addresses.
hpc_cluster_id str
The hpc cluster ID of ECS instance.
ids Sequence[str]
A list of ECS instance IDs.
instance_charge_type str
The charge type of ECS instance.
instance_name str
The name of ECS instance. This field support fuzzy query.
instance_type_families Sequence[str]
A list of instance type families.
instance_type_ids Sequence[str]
A list of instance type IDs.
ipv6_addresses Sequence[str]
A list of ipv6 addresses.
key_pair_name str
The key pair name of ECS instance.
name_regex str
A Name Regex of ECS instance.
output_file str
File name where to save data source results.
primary_ip_address str
The primary ip address of ECS instance.
project_name str
The ProjectName of ECS instance.
status str
The status of ECS instance.
tags Sequence[InstancesTag]
Tags.
vpc_id str
The VPC ID of ECS instance.
zone_id str
The available zone ID of ECS instance.
deploymentSetIds List<String>
A list of DeploymentSet IDs.
eipAddresses List<String>
A list of Eip addresses.
hpcClusterId String
The hpc cluster ID of ECS instance.
ids List<String>
A list of ECS instance IDs.
instanceChargeType String
The charge type of ECS instance.
instanceName String
The name of ECS instance. This field support fuzzy query.
instanceTypeFamilies List<String>
A list of instance type families.
instanceTypeIds List<String>
A list of instance type IDs.
ipv6Addresses List<String>
A list of ipv6 addresses.
keyPairName String
The key pair name of ECS instance.
nameRegex String
A Name Regex of ECS instance.
outputFile String
File name where to save data source results.
primaryIpAddress String
The primary ip address of ECS instance.
projectName String
The ProjectName of ECS instance.
status String
The status of ECS instance.
tags List<Property Map>
Tags.
vpcId String
The VPC ID of ECS instance.
zoneId String
The available zone ID of ECS instance.

Instances Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Instances List<InstancesInstance>
The collection of ECS instance query.
TotalCount int
The total count of ECS instance query.
DeploymentSetIds List<string>
EipAddresses List<string>
HpcClusterId string
Ids List<string>
InstanceChargeType string
The charge type of ECS instance.
InstanceName string
The name of ECS instance.
InstanceTypeFamilies List<string>
InstanceTypeIds List<string>
Ipv6Addresses List<string>
The IPv6 address list of the ECS instance.
KeyPairName string
The ssh key name of ECS instance.
NameRegex string
OutputFile string
PrimaryIpAddress string
The private ip address of networkInterface.
ProjectName string
The ProjectName of ECS instance.
Status string
The status of ECS instance.
Tags List<InstancesTag>
Tags.
VpcId string
The VPC ID of ECS instance.
ZoneId string
The available zone ID of ECS instance.
Id string
The provider-assigned unique ID for this managed resource.
Instances []InstancesInstance
The collection of ECS instance query.
TotalCount int
The total count of ECS instance query.
DeploymentSetIds []string
EipAddresses []string
HpcClusterId string
Ids []string
InstanceChargeType string
The charge type of ECS instance.
InstanceName string
The name of ECS instance.
InstanceTypeFamilies []string
InstanceTypeIds []string
Ipv6Addresses []string
The IPv6 address list of the ECS instance.
KeyPairName string
The ssh key name of ECS instance.
NameRegex string
OutputFile string
PrimaryIpAddress string
The private ip address of networkInterface.
ProjectName string
The ProjectName of ECS instance.
Status string
The status of ECS instance.
Tags []InstancesTag
Tags.
VpcId string
The VPC ID of ECS instance.
ZoneId string
The available zone ID of ECS instance.
id String
The provider-assigned unique ID for this managed resource.
instances List<InstancesInstance>
The collection of ECS instance query.
totalCount Integer
The total count of ECS instance query.
deploymentSetIds List<String>
eipAddresses List<String>
hpcClusterId String
ids List<String>
instanceChargeType String
The charge type of ECS instance.
instanceName String
The name of ECS instance.
instanceTypeFamilies List<String>
instanceTypeIds List<String>
ipv6Addresses List<String>
The IPv6 address list of the ECS instance.
keyPairName String
The ssh key name of ECS instance.
nameRegex String
outputFile String
primaryIpAddress String
The private ip address of networkInterface.
projectName String
The ProjectName of ECS instance.
status String
The status of ECS instance.
tags List<InstancesTag>
Tags.
vpcId String
The VPC ID of ECS instance.
zoneId String
The available zone ID of ECS instance.
id string
The provider-assigned unique ID for this managed resource.
instances InstancesInstance[]
The collection of ECS instance query.
totalCount number
The total count of ECS instance query.
deploymentSetIds string[]
eipAddresses string[]
hpcClusterId string
ids string[]
instanceChargeType string
The charge type of ECS instance.
instanceName string
The name of ECS instance.
instanceTypeFamilies string[]
instanceTypeIds string[]
ipv6Addresses string[]
The IPv6 address list of the ECS instance.
keyPairName string
The ssh key name of ECS instance.
nameRegex string
outputFile string
primaryIpAddress string
The private ip address of networkInterface.
projectName string
The ProjectName of ECS instance.
status string
The status of ECS instance.
tags InstancesTag[]
Tags.
vpcId string
The VPC ID of ECS instance.
zoneId string
The available zone ID of ECS instance.
id str
The provider-assigned unique ID for this managed resource.
instances Sequence[InstancesInstance]
The collection of ECS instance query.
total_count int
The total count of ECS instance query.
deployment_set_ids Sequence[str]
eip_addresses Sequence[str]
hpc_cluster_id str
ids Sequence[str]
instance_charge_type str
The charge type of ECS instance.
instance_name str
The name of ECS instance.
instance_type_families Sequence[str]
instance_type_ids Sequence[str]
ipv6_addresses Sequence[str]
The IPv6 address list of the ECS instance.
key_pair_name str
The ssh key name of ECS instance.
name_regex str
output_file str
primary_ip_address str
The private ip address of networkInterface.
project_name str
The ProjectName of ECS instance.
status str
The status of ECS instance.
tags Sequence[InstancesTag]
Tags.
vpc_id str
The VPC ID of ECS instance.
zone_id str
The available zone ID of ECS instance.
id String
The provider-assigned unique ID for this managed resource.
instances List<Property Map>
The collection of ECS instance query.
totalCount Number
The total count of ECS instance query.
deploymentSetIds List<String>
eipAddresses List<String>
hpcClusterId String
ids List<String>
instanceChargeType String
The charge type of ECS instance.
instanceName String
The name of ECS instance.
instanceTypeFamilies List<String>
instanceTypeIds List<String>
ipv6Addresses List<String>
The IPv6 address list of the ECS instance.
keyPairName String
The ssh key name of ECS instance.
nameRegex String
outputFile String
primaryIpAddress String
The private ip address of networkInterface.
projectName String
The ProjectName of ECS instance.
status String
The status of ECS instance.
tags List<Property Map>
Tags.
vpcId String
The VPC ID of ECS instance.
zoneId String
The available zone ID of ECS instance.

Supporting Types

InstancesInstance

Cpus This property is required. int
The number of ECS instance CPU cores.
CreatedAt This property is required. string
The create time of ECS instance.
DeploymentSetId This property is required. string
The ID of DeploymentSet.
Description This property is required. string
The description of ECS instance.
GpuDevices This property is required. List<InstancesInstanceGpuDevice>
The GPU device info of Instance.
HostName This property is required. string
The host name of ECS instance.
ImageId This property is required. string
The image ID of ECS instance.
InstanceChargeType This property is required. string
The charge type of ECS instance.
InstanceId This property is required. string
The ID of ECS instance.
InstanceName This property is required. string
The name of ECS instance. This field support fuzzy query.
InstanceType This property is required. string
The spec type of ECS instance.
Ipv6AddressCount This property is required. int
The number of IPv6 addresses of the ECS instance.
Ipv6Addresses This property is required. List<string>
A list of ipv6 addresses.
IsGpu This property is required. bool
The Flag of GPU instance.If the instance is GPU,The flag is true.
KeyPairId This property is required. string
The ssh key ID of ECS instance.
KeyPairName This property is required. string
The key pair name of ECS instance.
MemorySize This property is required. int
The memory size of ECS instance.
NetworkInterfaces This property is required. List<InstancesInstanceNetworkInterface>
The networkInterface detail collection of ECS instance.
OsName This property is required. string
The os name of ECS instance.
OsType This property is required. string
The os type of ECS instance.
ProjectName This property is required. string
The ProjectName of ECS instance.
SpotPriceLimit This property is required. double
The spot price limit of ECS instance.
SpotStrategy This property is required. string
The spot strategy of ECS instance.
Status This property is required. string
The status of ECS instance.
StoppedMode This property is required. string
The stop mode of ECS instance.
Tags This property is required. List<InstancesInstanceTag>
Tags.
UpdatedAt This property is required. string
The update time of ECS instance.
Volumes This property is required. List<InstancesInstanceVolume>
The volume detail collection of volume.
VpcId This property is required. string
The VPC ID of ECS instance.
ZoneId This property is required. string
The available zone ID of ECS instance.
Cpus This property is required. int
The number of ECS instance CPU cores.
CreatedAt This property is required. string
The create time of ECS instance.
DeploymentSetId This property is required. string
The ID of DeploymentSet.
Description This property is required. string
The description of ECS instance.
GpuDevices This property is required. []InstancesInstanceGpuDevice
The GPU device info of Instance.
HostName This property is required. string
The host name of ECS instance.
ImageId This property is required. string
The image ID of ECS instance.
InstanceChargeType This property is required. string
The charge type of ECS instance.
InstanceId This property is required. string
The ID of ECS instance.
InstanceName This property is required. string
The name of ECS instance. This field support fuzzy query.
InstanceType This property is required. string
The spec type of ECS instance.
Ipv6AddressCount This property is required. int
The number of IPv6 addresses of the ECS instance.
Ipv6Addresses This property is required. []string
A list of ipv6 addresses.
IsGpu This property is required. bool
The Flag of GPU instance.If the instance is GPU,The flag is true.
KeyPairId This property is required. string
The ssh key ID of ECS instance.
KeyPairName This property is required. string
The key pair name of ECS instance.
MemorySize This property is required. int
The memory size of ECS instance.
NetworkInterfaces This property is required. []InstancesInstanceNetworkInterface
The networkInterface detail collection of ECS instance.
OsName This property is required. string
The os name of ECS instance.
OsType This property is required. string
The os type of ECS instance.
ProjectName This property is required. string
The ProjectName of ECS instance.
SpotPriceLimit This property is required. float64
The spot price limit of ECS instance.
SpotStrategy This property is required. string
The spot strategy of ECS instance.
Status This property is required. string
The status of ECS instance.
StoppedMode This property is required. string
The stop mode of ECS instance.
Tags This property is required. []InstancesInstanceTag
Tags.
UpdatedAt This property is required. string
The update time of ECS instance.
Volumes This property is required. []InstancesInstanceVolume
The volume detail collection of volume.
VpcId This property is required. string
The VPC ID of ECS instance.
ZoneId This property is required. string
The available zone ID of ECS instance.
cpus This property is required. Integer
The number of ECS instance CPU cores.
createdAt This property is required. String
The create time of ECS instance.
deploymentSetId This property is required. String
The ID of DeploymentSet.
description This property is required. String
The description of ECS instance.
gpuDevices This property is required. List<InstancesInstanceGpuDevice>
The GPU device info of Instance.
hostName This property is required. String
The host name of ECS instance.
imageId This property is required. String
The image ID of ECS instance.
instanceChargeType This property is required. String
The charge type of ECS instance.
instanceId This property is required. String
The ID of ECS instance.
instanceName This property is required. String
The name of ECS instance. This field support fuzzy query.
instanceType This property is required. String
The spec type of ECS instance.
ipv6AddressCount This property is required. Integer
The number of IPv6 addresses of the ECS instance.
ipv6Addresses This property is required. List<String>
A list of ipv6 addresses.
isGpu This property is required. Boolean
The Flag of GPU instance.If the instance is GPU,The flag is true.
keyPairId This property is required. String
The ssh key ID of ECS instance.
keyPairName This property is required. String
The key pair name of ECS instance.
memorySize This property is required. Integer
The memory size of ECS instance.
networkInterfaces This property is required. List<InstancesInstanceNetworkInterface>
The networkInterface detail collection of ECS instance.
osName This property is required. String
The os name of ECS instance.
osType This property is required. String
The os type of ECS instance.
projectName This property is required. String
The ProjectName of ECS instance.
spotPriceLimit This property is required. Double
The spot price limit of ECS instance.
spotStrategy This property is required. String
The spot strategy of ECS instance.
status This property is required. String
The status of ECS instance.
stoppedMode This property is required. String
The stop mode of ECS instance.
tags This property is required. List<InstancesInstanceTag>
Tags.
updatedAt This property is required. String
The update time of ECS instance.
volumes This property is required. List<InstancesInstanceVolume>
The volume detail collection of volume.
vpcId This property is required. String
The VPC ID of ECS instance.
zoneId This property is required. String
The available zone ID of ECS instance.
cpus This property is required. number
The number of ECS instance CPU cores.
createdAt This property is required. string
The create time of ECS instance.
deploymentSetId This property is required. string
The ID of DeploymentSet.
description This property is required. string
The description of ECS instance.
gpuDevices This property is required. InstancesInstanceGpuDevice[]
The GPU device info of Instance.
hostName This property is required. string
The host name of ECS instance.
imageId This property is required. string
The image ID of ECS instance.
instanceChargeType This property is required. string
The charge type of ECS instance.
instanceId This property is required. string
The ID of ECS instance.
instanceName This property is required. string
The name of ECS instance. This field support fuzzy query.
instanceType This property is required. string
The spec type of ECS instance.
ipv6AddressCount This property is required. number
The number of IPv6 addresses of the ECS instance.
ipv6Addresses This property is required. string[]
A list of ipv6 addresses.
isGpu This property is required. boolean
The Flag of GPU instance.If the instance is GPU,The flag is true.
keyPairId This property is required. string
The ssh key ID of ECS instance.
keyPairName This property is required. string
The key pair name of ECS instance.
memorySize This property is required. number
The memory size of ECS instance.
networkInterfaces This property is required. InstancesInstanceNetworkInterface[]
The networkInterface detail collection of ECS instance.
osName This property is required. string
The os name of ECS instance.
osType This property is required. string
The os type of ECS instance.
projectName This property is required. string
The ProjectName of ECS instance.
spotPriceLimit This property is required. number
The spot price limit of ECS instance.
spotStrategy This property is required. string
The spot strategy of ECS instance.
status This property is required. string
The status of ECS instance.
stoppedMode This property is required. string
The stop mode of ECS instance.
tags This property is required. InstancesInstanceTag[]
Tags.
updatedAt This property is required. string
The update time of ECS instance.
volumes This property is required. InstancesInstanceVolume[]
The volume detail collection of volume.
vpcId This property is required. string
The VPC ID of ECS instance.
zoneId This property is required. string
The available zone ID of ECS instance.
cpus This property is required. int
The number of ECS instance CPU cores.
created_at This property is required. str
The create time of ECS instance.
deployment_set_id This property is required. str
The ID of DeploymentSet.
description This property is required. str
The description of ECS instance.
gpu_devices This property is required. Sequence[InstancesInstanceGpuDevice]
The GPU device info of Instance.
host_name This property is required. str
The host name of ECS instance.
image_id This property is required. str
The image ID of ECS instance.
instance_charge_type This property is required. str
The charge type of ECS instance.
instance_id This property is required. str
The ID of ECS instance.
instance_name This property is required. str
The name of ECS instance. This field support fuzzy query.
instance_type This property is required. str
The spec type of ECS instance.
ipv6_address_count This property is required. int
The number of IPv6 addresses of the ECS instance.
ipv6_addresses This property is required. Sequence[str]
A list of ipv6 addresses.
is_gpu This property is required. bool
The Flag of GPU instance.If the instance is GPU,The flag is true.
key_pair_id This property is required. str
The ssh key ID of ECS instance.
key_pair_name This property is required. str
The key pair name of ECS instance.
memory_size This property is required. int
The memory size of ECS instance.
network_interfaces This property is required. Sequence[InstancesInstanceNetworkInterface]
The networkInterface detail collection of ECS instance.
os_name This property is required. str
The os name of ECS instance.
os_type This property is required. str
The os type of ECS instance.
project_name This property is required. str
The ProjectName of ECS instance.
spot_price_limit This property is required. float
The spot price limit of ECS instance.
spot_strategy This property is required. str
The spot strategy of ECS instance.
status This property is required. str
The status of ECS instance.
stopped_mode This property is required. str
The stop mode of ECS instance.
tags This property is required. Sequence[InstancesInstanceTag]
Tags.
updated_at This property is required. str
The update time of ECS instance.
volumes This property is required. Sequence[InstancesInstanceVolume]
The volume detail collection of volume.
vpc_id This property is required. str
The VPC ID of ECS instance.
zone_id This property is required. str
The available zone ID of ECS instance.
cpus This property is required. Number
The number of ECS instance CPU cores.
createdAt This property is required. String
The create time of ECS instance.
deploymentSetId This property is required. String
The ID of DeploymentSet.
description This property is required. String
The description of ECS instance.
gpuDevices This property is required. List<Property Map>
The GPU device info of Instance.
hostName This property is required. String
The host name of ECS instance.
imageId This property is required. String
The image ID of ECS instance.
instanceChargeType This property is required. String
The charge type of ECS instance.
instanceId This property is required. String
The ID of ECS instance.
instanceName This property is required. String
The name of ECS instance. This field support fuzzy query.
instanceType This property is required. String
The spec type of ECS instance.
ipv6AddressCount This property is required. Number
The number of IPv6 addresses of the ECS instance.
ipv6Addresses This property is required. List<String>
A list of ipv6 addresses.
isGpu This property is required. Boolean
The Flag of GPU instance.If the instance is GPU,The flag is true.
keyPairId This property is required. String
The ssh key ID of ECS instance.
keyPairName This property is required. String
The key pair name of ECS instance.
memorySize This property is required. Number
The memory size of ECS instance.
networkInterfaces This property is required. List<Property Map>
The networkInterface detail collection of ECS instance.
osName This property is required. String
The os name of ECS instance.
osType This property is required. String
The os type of ECS instance.
projectName This property is required. String
The ProjectName of ECS instance.
spotPriceLimit This property is required. Number
The spot price limit of ECS instance.
spotStrategy This property is required. String
The spot strategy of ECS instance.
status This property is required. String
The status of ECS instance.
stoppedMode This property is required. String
The stop mode of ECS instance.
tags This property is required. List<Property Map>
Tags.
updatedAt This property is required. String
The update time of ECS instance.
volumes This property is required. List<Property Map>
The volume detail collection of volume.
vpcId This property is required. String
The VPC ID of ECS instance.
zoneId This property is required. String
The available zone ID of ECS instance.

InstancesInstanceGpuDevice

Count This property is required. int
The Count of GPU device.
EncryptedMemorySize This property is required. int
The Encrypted Memory Size of GPU device.
MemorySize This property is required. int
The memory size of ECS instance.
ProductName This property is required. string
The Product Name of GPU device.
Count This property is required. int
The Count of GPU device.
EncryptedMemorySize This property is required. int
The Encrypted Memory Size of GPU device.
MemorySize This property is required. int
The memory size of ECS instance.
ProductName This property is required. string
The Product Name of GPU device.
count This property is required. Integer
The Count of GPU device.
encryptedMemorySize This property is required. Integer
The Encrypted Memory Size of GPU device.
memorySize This property is required. Integer
The memory size of ECS instance.
productName This property is required. String
The Product Name of GPU device.
count This property is required. number
The Count of GPU device.
encryptedMemorySize This property is required. number
The Encrypted Memory Size of GPU device.
memorySize This property is required. number
The memory size of ECS instance.
productName This property is required. string
The Product Name of GPU device.
count This property is required. int
The Count of GPU device.
encrypted_memory_size This property is required. int
The Encrypted Memory Size of GPU device.
memory_size This property is required. int
The memory size of ECS instance.
product_name This property is required. str
The Product Name of GPU device.
count This property is required. Number
The Count of GPU device.
encryptedMemorySize This property is required. Number
The Encrypted Memory Size of GPU device.
memorySize This property is required. Number
The memory size of ECS instance.
productName This property is required. String
The Product Name of GPU device.

InstancesInstanceNetworkInterface

MacAddress This property is required. string
The mac address of networkInterface.
NetworkInterfaceId This property is required. string
The ID of networkInterface.
PrimaryIpAddress This property is required. string
The primary ip address of ECS instance.
SubnetId This property is required. string
The subnet ID of networkInterface.
Type This property is required. string
The type of networkInterface.
VpcId This property is required. string
The VPC ID of ECS instance.
MacAddress This property is required. string
The mac address of networkInterface.
NetworkInterfaceId This property is required. string
The ID of networkInterface.
PrimaryIpAddress This property is required. string
The primary ip address of ECS instance.
SubnetId This property is required. string
The subnet ID of networkInterface.
Type This property is required. string
The type of networkInterface.
VpcId This property is required. string
The VPC ID of ECS instance.
macAddress This property is required. String
The mac address of networkInterface.
networkInterfaceId This property is required. String
The ID of networkInterface.
primaryIpAddress This property is required. String
The primary ip address of ECS instance.
subnetId This property is required. String
The subnet ID of networkInterface.
type This property is required. String
The type of networkInterface.
vpcId This property is required. String
The VPC ID of ECS instance.
macAddress This property is required. string
The mac address of networkInterface.
networkInterfaceId This property is required. string
The ID of networkInterface.
primaryIpAddress This property is required. string
The primary ip address of ECS instance.
subnetId This property is required. string
The subnet ID of networkInterface.
type This property is required. string
The type of networkInterface.
vpcId This property is required. string
The VPC ID of ECS instance.
mac_address This property is required. str
The mac address of networkInterface.
network_interface_id This property is required. str
The ID of networkInterface.
primary_ip_address This property is required. str
The primary ip address of ECS instance.
subnet_id This property is required. str
The subnet ID of networkInterface.
type This property is required. str
The type of networkInterface.
vpc_id This property is required. str
The VPC ID of ECS instance.
macAddress This property is required. String
The mac address of networkInterface.
networkInterfaceId This property is required. String
The ID of networkInterface.
primaryIpAddress This property is required. String
The primary ip address of ECS instance.
subnetId This property is required. String
The subnet ID of networkInterface.
type This property is required. String
The type of networkInterface.
vpcId This property is required. String
The VPC ID of ECS instance.

InstancesInstanceTag

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

InstancesInstanceVolume

DeleteWithInstance This property is required. bool
The delete with instance flag of volume.
Size This property is required. int
The size of volume.
VolumeId This property is required. string
The ID of volume.
VolumeName This property is required. string
The Name of volume.
VolumeType This property is required. string
The type of volume.
DeleteWithInstance This property is required. bool
The delete with instance flag of volume.
Size This property is required. int
The size of volume.
VolumeId This property is required. string
The ID of volume.
VolumeName This property is required. string
The Name of volume.
VolumeType This property is required. string
The type of volume.
deleteWithInstance This property is required. Boolean
The delete with instance flag of volume.
size This property is required. Integer
The size of volume.
volumeId This property is required. String
The ID of volume.
volumeName This property is required. String
The Name of volume.
volumeType This property is required. String
The type of volume.
deleteWithInstance This property is required. boolean
The delete with instance flag of volume.
size This property is required. number
The size of volume.
volumeId This property is required. string
The ID of volume.
volumeName This property is required. string
The Name of volume.
volumeType This property is required. string
The type of volume.
delete_with_instance This property is required. bool
The delete with instance flag of volume.
size This property is required. int
The size of volume.
volume_id This property is required. str
The ID of volume.
volume_name This property is required. str
The Name of volume.
volume_type This property is required. str
The type of volume.
deleteWithInstance This property is required. Boolean
The delete with instance flag of volume.
size This property is required. Number
The size of volume.
volumeId This property is required. String
The ID of volume.
volumeName This property is required. String
The Name of volume.
volumeType This property is required. String
The type of volume.

InstancesTag

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine