Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 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.getZones({});
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.getImages({
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.getInstancesOutput({
ids: fooInstance.map(__item => __item.id),
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.get_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.get_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.get_instances_output(ids=[__item.id for __item in foo_instance])
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.GetZones(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.GetImages(ctx, &ecs.GetImagesArgs{
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.GetInstancesOutput(ctx, ecs.GetInstancesOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:ecs-getInstances:getInstances.pp:49,9-26),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.GetZones.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(getZonesResult => getZonesResult.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.GetImages.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(getImagesResult => getImagesResult.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.GetInstances.Invoke(new()
{
Ids = fooInstance.Select(__item => __item.Id).ToList(),
});
});
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.GetZonesArgs;
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.GetImagesArgs;
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.GetInstancesArgs;
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.getZones();
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(getZonesResult -> getZonesResult.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.getImages(GetImagesArgs.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(getImagesResult -> getImagesResult.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.getInstances(GetInstancesArgs.builder()
.ids(fooInstance.stream().map(element -> element.id()).collect(toList()))
.build());
}
}
Example coming soon!
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>def get_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[GetInstancesTag]] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_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[GetInstancesTagArgs]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput> Note: This function is named GetInstances in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
public static Output<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:ecs/getInstances:getInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Deployment
Set List<string>Ids - A list of DeploymentSet IDs.
- Eip
Addresses List<string> - A list of Eip addresses.
- Hpc
Cluster stringId - The hpc cluster ID of ECS instance.
- Ids List<string>
- A list of ECS instance IDs.
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Name string - The name of ECS instance. This field support fuzzy query.
- Instance
Type List<string>Families - A list of instance type families.
- Instance
Type List<string>Ids - A list of instance type IDs.
- Ipv6Addresses List<string>
- A list of ipv6 addresses.
- Key
Pair stringName - The key pair name of ECS instance.
- Name
Regex string - A Name Regex of ECS instance.
- Output
File string - File name where to save data source results.
- Primary
Ip stringAddress - The primary ip address of ECS instance.
- Project
Name string - The ProjectName of ECS instance.
- Status string
- The status of ECS instance.
-
List<Get
Instances Tag> - Tags.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- Deployment
Set []stringIds - A list of DeploymentSet IDs.
- Eip
Addresses []string - A list of Eip addresses.
- Hpc
Cluster stringId - The hpc cluster ID of ECS instance.
- Ids []string
- A list of ECS instance IDs.
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Name string - The name of ECS instance. This field support fuzzy query.
- Instance
Type []stringFamilies - A list of instance type families.
- Instance
Type []stringIds - A list of instance type IDs.
- Ipv6Addresses []string
- A list of ipv6 addresses.
- Key
Pair stringName - The key pair name of ECS instance.
- Name
Regex string - A Name Regex of ECS instance.
- Output
File string - File name where to save data source results.
- Primary
Ip stringAddress - The primary ip address of ECS instance.
- Project
Name string - The ProjectName of ECS instance.
- Status string
- The status of ECS instance.
-
[]Get
Instances Tag - Tags.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- deployment
Set List<String>Ids - A list of DeploymentSet IDs.
- eip
Addresses List<String> - A list of Eip addresses.
- hpc
Cluster StringId - The hpc cluster ID of ECS instance.
- ids List<String>
- A list of ECS instance IDs.
- instance
Charge StringType - The charge type of ECS instance.
- instance
Name String - The name of ECS instance. This field support fuzzy query.
- instance
Type List<String>Families - A list of instance type families.
- instance
Type List<String>Ids - A list of instance type IDs.
- ipv6Addresses List<String>
- A list of ipv6 addresses.
- key
Pair StringName - The key pair name of ECS instance.
- name
Regex String - A Name Regex of ECS instance.
- output
File String - File name where to save data source results.
- primary
Ip StringAddress - The primary ip address of ECS instance.
- project
Name String - The ProjectName of ECS instance.
- status String
- The status of ECS instance.
-
List<Get
Instances Tag> - Tags.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
- deployment
Set string[]Ids - A list of DeploymentSet IDs.
- eip
Addresses string[] - A list of Eip addresses.
- hpc
Cluster stringId - The hpc cluster ID of ECS instance.
- ids string[]
- A list of ECS instance IDs.
- instance
Charge stringType - The charge type of ECS instance.
- instance
Name string - The name of ECS instance. This field support fuzzy query.
- instance
Type string[]Families - A list of instance type families.
- instance
Type string[]Ids - A list of instance type IDs.
- ipv6Addresses string[]
- A list of ipv6 addresses.
- key
Pair stringName - The key pair name of ECS instance.
- name
Regex string - A Name Regex of ECS instance.
- output
File string - File name where to save data source results.
- primary
Ip stringAddress - The primary ip address of ECS instance.
- project
Name string - The ProjectName of ECS instance.
- status string
- The status of ECS instance.
-
Get
Instances Tag[] - Tags.
- vpc
Id string - The VPC ID of ECS instance.
- zone
Id string - The available zone ID of ECS instance.
- deployment_
set_ Sequence[str]ids - A list of DeploymentSet IDs.
- eip_
addresses Sequence[str] - A list of Eip addresses.
- hpc_
cluster_ strid - The hpc cluster ID of ECS instance.
- ids Sequence[str]
- A list of ECS instance IDs.
- instance_
charge_ strtype - The charge type of ECS instance.
- instance_
name str - The name of ECS instance. This field support fuzzy query.
- instance_
type_ Sequence[str]families - A list of instance type families.
- instance_
type_ Sequence[str]ids - A list of instance type IDs.
- ipv6_
addresses Sequence[str] - A list of ipv6 addresses.
- key_
pair_ strname - 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_ straddress - The primary ip address of ECS instance.
- project_
name str - The ProjectName of ECS instance.
- status str
- The status of ECS instance.
-
Sequence[Get
Instances Tag] - Tags.
- vpc_
id str - The VPC ID of ECS instance.
- zone_
id str - The available zone ID of ECS instance.
- deployment
Set List<String>Ids - A list of DeploymentSet IDs.
- eip
Addresses List<String> - A list of Eip addresses.
- hpc
Cluster StringId - The hpc cluster ID of ECS instance.
- ids List<String>
- A list of ECS instance IDs.
- instance
Charge StringType - The charge type of ECS instance.
- instance
Name String - The name of ECS instance. This field support fuzzy query.
- instance
Type List<String>Families - A list of instance type families.
- instance
Type List<String>Ids - A list of instance type IDs.
- ipv6Addresses List<String>
- A list of ipv6 addresses.
- key
Pair StringName - The key pair name of ECS instance.
- name
Regex String - A Name Regex of ECS instance.
- output
File String - File name where to save data source results.
- primary
Ip StringAddress - The primary ip address of ECS instance.
- project
Name String - The ProjectName of ECS instance.
- status String
- The status of ECS instance.
- List<Property Map>
- Tags.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Get
Instances Instance> - The collection of ECS instance query.
- Total
Count int - The total count of ECS instance query.
- Deployment
Set List<string>Ids - Eip
Addresses List<string> - Hpc
Cluster stringId - Ids List<string>
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Name string - The name of ECS instance.
- Instance
Type List<string>Families - Instance
Type List<string>Ids - Ipv6Addresses List<string>
- The IPv6 address list of the ECS instance.
- Key
Pair stringName - The ssh key name of ECS instance.
- Name
Regex string - Output
File string - Primary
Ip stringAddress - The private ip address of networkInterface.
- Project
Name string - The ProjectName of ECS instance.
- Status string
- The status of ECS instance.
-
List<Get
Instances Tag> - Tags.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Get
Instances Instance - The collection of ECS instance query.
- Total
Count int - The total count of ECS instance query.
- Deployment
Set []stringIds - Eip
Addresses []string - Hpc
Cluster stringId - Ids []string
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Name string - The name of ECS instance.
- Instance
Type []stringFamilies - Instance
Type []stringIds - Ipv6Addresses []string
- The IPv6 address list of the ECS instance.
- Key
Pair stringName - The ssh key name of ECS instance.
- Name
Regex string - Output
File string - Primary
Ip stringAddress - The private ip address of networkInterface.
- Project
Name string - The ProjectName of ECS instance.
- Status string
- The status of ECS instance.
-
[]Get
Instances Tag - Tags.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Get
Instances Instance> - The collection of ECS instance query.
- total
Count Integer - The total count of ECS instance query.
- deployment
Set List<String>Ids - eip
Addresses List<String> - hpc
Cluster StringId - ids List<String>
- instance
Charge StringType - The charge type of ECS instance.
- instance
Name String - The name of ECS instance.
- instance
Type List<String>Families - instance
Type List<String>Ids - ipv6Addresses List<String>
- The IPv6 address list of the ECS instance.
- key
Pair StringName - The ssh key name of ECS instance.
- name
Regex String - output
File String - primary
Ip StringAddress - The private ip address of networkInterface.
- project
Name String - The ProjectName of ECS instance.
- status String
- The status of ECS instance.
-
List<Get
Instances Tag> - Tags.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Get
Instances Instance[] - The collection of ECS instance query.
- total
Count number - The total count of ECS instance query.
- deployment
Set string[]Ids - eip
Addresses string[] - hpc
Cluster stringId - ids string[]
- instance
Charge stringType - The charge type of ECS instance.
- instance
Name string - The name of ECS instance.
- instance
Type string[]Families - instance
Type string[]Ids - ipv6Addresses string[]
- The IPv6 address list of the ECS instance.
- key
Pair stringName - The ssh key name of ECS instance.
- name
Regex string - output
File string - primary
Ip stringAddress - The private ip address of networkInterface.
- project
Name string - The ProjectName of ECS instance.
- status string
- The status of ECS instance.
-
Get
Instances Tag[] - Tags.
- vpc
Id string - The VPC ID of ECS instance.
- zone
Id string - The available zone ID of ECS instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Get
Instances Instance] - The collection of ECS instance query.
- total_
count int - The total count of ECS instance query.
- deployment_
set_ Sequence[str]ids - eip_
addresses Sequence[str] - hpc_
cluster_ strid - ids Sequence[str]
- instance_
charge_ strtype - The charge type of ECS instance.
- instance_
name str - The name of ECS instance.
- instance_
type_ Sequence[str]families - instance_
type_ Sequence[str]ids - ipv6_
addresses Sequence[str] - The IPv6 address list of the ECS instance.
- key_
pair_ strname - The ssh key name of ECS instance.
- name_
regex str - output_
file str - primary_
ip_ straddress - The private ip address of networkInterface.
- project_
name str - The ProjectName of ECS instance.
- status str
- The status of ECS instance.
-
Sequence[Get
Instances Tag] - 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.
- total
Count Number - The total count of ECS instance query.
- deployment
Set List<String>Ids - eip
Addresses List<String> - hpc
Cluster StringId - ids List<String>
- instance
Charge StringType - The charge type of ECS instance.
- instance
Name String - The name of ECS instance.
- instance
Type List<String>Families - instance
Type List<String>Ids - ipv6Addresses List<String>
- The IPv6 address list of the ECS instance.
- key
Pair StringName - The ssh key name of ECS instance.
- name
Regex String - output
File String - primary
Ip StringAddress - The private ip address of networkInterface.
- project
Name String - The ProjectName of ECS instance.
- status String
- The status of ECS instance.
- List<Property Map>
- Tags.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
Supporting Types
GetInstancesInstance
- Cpus int
- The number of ECS instance CPU cores.
- Created
At string - The create time of ECS instance.
- Deployment
Set stringId - The ID of DeploymentSet.
- Description string
- The description of ECS instance.
- Eip
Addresses List<GetInstances Instance Eip Address> - The EIP address of the ECS instance.
- Gpu
Devices List<GetInstances Instance Gpu Device> - The GPU device info of Instance.
- Host
Name string - The host name of ECS instance.
- Image
Id string - The image ID of ECS instance.
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Id string - The ID of ECS instance.
- Instance
Name string - The name of ECS instance. This field support fuzzy query.
- Instance
Type string - The spec type of ECS instance.
- Ipv6Address
Count int - The number of IPv6 addresses of the ECS instance.
- Ipv6Addresses List<string>
- A list of ipv6 addresses.
- Is
Gpu bool - The Flag of GPU instance.If the instance is GPU,The flag is true.
- Key
Pair stringId - The ssh key ID of ECS instance.
- Key
Pair stringName - The key pair name of ECS instance.
- Memory
Size int - The memory size of ECS instance.
- Network
Interfaces List<GetInstances Instance Network Interface> - The networkInterface detail collection of ECS instance.
- Os
Name string - The os name of ECS instance.
- Os
Type string - The os type of ECS instance.
- Project
Name string - The ProjectName of ECS instance.
- Spot
Price doubleLimit - The spot price limit of ECS instance.
- Spot
Strategy string - The spot strategy of ECS instance.
- Status string
- The status of ECS instance.
- Stopped
Mode string - The stop mode of ECS instance.
-
List<Get
Instances Instance Tag> - Tags.
- Updated
At string - The update time of ECS instance.
- Volume
Ids List<string> - The volume ID list of ECS instance.
- Volumes
List<Get
Instances Instance Volume> - The volume detail collection of volume.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- Cpus int
- The number of ECS instance CPU cores.
- Created
At string - The create time of ECS instance.
- Deployment
Set stringId - The ID of DeploymentSet.
- Description string
- The description of ECS instance.
- Eip
Addresses []GetInstances Instance Eip Address - The EIP address of the ECS instance.
- Gpu
Devices []GetInstances Instance Gpu Device - The GPU device info of Instance.
- Host
Name string - The host name of ECS instance.
- Image
Id string - The image ID of ECS instance.
- Instance
Charge stringType - The charge type of ECS instance.
- Instance
Id string - The ID of ECS instance.
- Instance
Name string - The name of ECS instance. This field support fuzzy query.
- Instance
Type string - The spec type of ECS instance.
- Ipv6Address
Count int - The number of IPv6 addresses of the ECS instance.
- Ipv6Addresses []string
- A list of ipv6 addresses.
- Is
Gpu bool - The Flag of GPU instance.If the instance is GPU,The flag is true.
- Key
Pair stringId - The ssh key ID of ECS instance.
- Key
Pair stringName - The key pair name of ECS instance.
- Memory
Size int - The memory size of ECS instance.
- Network
Interfaces []GetInstances Instance Network Interface - The networkInterface detail collection of ECS instance.
- Os
Name string - The os name of ECS instance.
- Os
Type string - The os type of ECS instance.
- Project
Name string - The ProjectName of ECS instance.
- Spot
Price float64Limit - The spot price limit of ECS instance.
- Spot
Strategy string - The spot strategy of ECS instance.
- Status string
- The status of ECS instance.
- Stopped
Mode string - The stop mode of ECS instance.
-
[]Get
Instances Instance Tag - Tags.
- Updated
At string - The update time of ECS instance.
- Volume
Ids []string - The volume ID list of ECS instance.
- Volumes
[]Get
Instances Instance Volume - The volume detail collection of volume.
- Vpc
Id string - The VPC ID of ECS instance.
- Zone
Id string - The available zone ID of ECS instance.
- cpus Integer
- The number of ECS instance CPU cores.
- created
At String - The create time of ECS instance.
- deployment
Set StringId - The ID of DeploymentSet.
- description String
- The description of ECS instance.
- eip
Addresses List<GetInstances Instance Eip Address> - The EIP address of the ECS instance.
- gpu
Devices List<GetInstances Instance Gpu Device> - The GPU device info of Instance.
- host
Name String - The host name of ECS instance.
- image
Id String - The image ID of ECS instance.
- instance
Charge StringType - The charge type of ECS instance.
- instance
Id String - The ID of ECS instance.
- instance
Name String - The name of ECS instance. This field support fuzzy query.
- instance
Type String - The spec type of ECS instance.
- ipv6Address
Count Integer - The number of IPv6 addresses of the ECS instance.
- ipv6Addresses List<String>
- A list of ipv6 addresses.
- is
Gpu Boolean - The Flag of GPU instance.If the instance is GPU,The flag is true.
- key
Pair StringId - The ssh key ID of ECS instance.
- key
Pair StringName - The key pair name of ECS instance.
- memory
Size Integer - The memory size of ECS instance.
- network
Interfaces List<GetInstances Instance Network Interface> - The networkInterface detail collection of ECS instance.
- os
Name String - The os name of ECS instance.
- os
Type String - The os type of ECS instance.
- project
Name String - The ProjectName of ECS instance.
- spot
Price DoubleLimit - The spot price limit of ECS instance.
- spot
Strategy String - The spot strategy of ECS instance.
- status String
- The status of ECS instance.
- stopped
Mode String - The stop mode of ECS instance.
-
List<Get
Instances Instance Tag> - Tags.
- updated
At String - The update time of ECS instance.
- volume
Ids List<String> - The volume ID list of ECS instance.
- volumes
List<Get
Instances Instance Volume> - The volume detail collection of volume.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
- cpus number
- The number of ECS instance CPU cores.
- created
At string - The create time of ECS instance.
- deployment
Set stringId - The ID of DeploymentSet.
- description string
- The description of ECS instance.
- eip
Addresses GetInstances Instance Eip Address[] - The EIP address of the ECS instance.
- gpu
Devices GetInstances Instance Gpu Device[] - The GPU device info of Instance.
- host
Name string - The host name of ECS instance.
- image
Id string - The image ID of ECS instance.
- instance
Charge stringType - The charge type of ECS instance.
- instance
Id string - The ID of ECS instance.
- instance
Name string - The name of ECS instance. This field support fuzzy query.
- instance
Type string - The spec type of ECS instance.
- ipv6Address
Count number - The number of IPv6 addresses of the ECS instance.
- ipv6Addresses string[]
- A list of ipv6 addresses.
- is
Gpu boolean - The Flag of GPU instance.If the instance is GPU,The flag is true.
- key
Pair stringId - The ssh key ID of ECS instance.
- key
Pair stringName - The key pair name of ECS instance.
- memory
Size number - The memory size of ECS instance.
- network
Interfaces GetInstances Instance Network Interface[] - The networkInterface detail collection of ECS instance.
- os
Name string - The os name of ECS instance.
- os
Type string - The os type of ECS instance.
- project
Name string - The ProjectName of ECS instance.
- spot
Price numberLimit - The spot price limit of ECS instance.
- spot
Strategy string - The spot strategy of ECS instance.
- status string
- The status of ECS instance.
- stopped
Mode string - The stop mode of ECS instance.
-
Get
Instances Instance Tag[] - Tags.
- updated
At string - The update time of ECS instance.
- volume
Ids string[] - The volume ID list of ECS instance.
- volumes
Get
Instances Instance Volume[] - The volume detail collection of volume.
- vpc
Id string - The VPC ID of ECS instance.
- zone
Id string - The available zone ID of ECS instance.
- cpus int
- The number of ECS instance CPU cores.
- created_
at str - The create time of ECS instance.
- deployment_
set_ strid - The ID of DeploymentSet.
- description str
- The description of ECS instance.
- eip_
addresses Sequence[GetInstances Instance Eip Address] - The EIP address of the ECS instance.
- gpu_
devices Sequence[GetInstances Instance Gpu Device] - The GPU device info of Instance.
- host_
name str - The host name of ECS instance.
- image_
id str - The image ID of ECS instance.
- instance_
charge_ strtype - The charge type of ECS instance.
- instance_
id str - The ID of ECS instance.
- instance_
name str - The name of ECS instance. This field support fuzzy query.
- instance_
type str - The spec type of ECS instance.
- ipv6_
address_ intcount - The number of IPv6 addresses of the ECS instance.
- ipv6_
addresses Sequence[str] - A list of ipv6 addresses.
- is_
gpu bool - The Flag of GPU instance.If the instance is GPU,The flag is true.
- key_
pair_ strid - The ssh key ID of ECS instance.
- key_
pair_ strname - The key pair name of ECS instance.
- memory_
size int - The memory size of ECS instance.
- network_
interfaces Sequence[GetInstances Instance Network Interface] - The networkInterface detail collection of ECS instance.
- os_
name str - The os name of ECS instance.
- os_
type str - The os type of ECS instance.
- project_
name str - The ProjectName of ECS instance.
- spot_
price_ floatlimit - The spot price limit of ECS instance.
- spot_
strategy str - The spot strategy of ECS instance.
- status str
- The status of ECS instance.
- stopped_
mode str - The stop mode of ECS instance.
-
Sequence[Get
Instances Instance Tag] - Tags.
- updated_
at str - The update time of ECS instance.
- volume_
ids Sequence[str] - The volume ID list of ECS instance.
- volumes
Sequence[Get
Instances Instance Volume] - The volume detail collection of volume.
- vpc_
id str - The VPC ID of ECS instance.
- zone_
id str - The available zone ID of ECS instance.
- cpus Number
- The number of ECS instance CPU cores.
- created
At String - The create time of ECS instance.
- deployment
Set StringId - The ID of DeploymentSet.
- description String
- The description of ECS instance.
- eip
Addresses List<Property Map> - The EIP address of the ECS instance.
- gpu
Devices List<Property Map> - The GPU device info of Instance.
- host
Name String - The host name of ECS instance.
- image
Id String - The image ID of ECS instance.
- instance
Charge StringType - The charge type of ECS instance.
- instance
Id String - The ID of ECS instance.
- instance
Name String - The name of ECS instance. This field support fuzzy query.
- instance
Type String - The spec type of ECS instance.
- ipv6Address
Count Number - The number of IPv6 addresses of the ECS instance.
- ipv6Addresses List<String>
- A list of ipv6 addresses.
- is
Gpu Boolean - The Flag of GPU instance.If the instance is GPU,The flag is true.
- key
Pair StringId - The ssh key ID of ECS instance.
- key
Pair StringName - The key pair name of ECS instance.
- memory
Size Number - The memory size of ECS instance.
- network
Interfaces List<Property Map> - The networkInterface detail collection of ECS instance.
- os
Name String - The os name of ECS instance.
- os
Type String - The os type of ECS instance.
- project
Name String - The ProjectName of ECS instance.
- spot
Price NumberLimit - The spot price limit of ECS instance.
- spot
Strategy String - The spot strategy of ECS instance.
- status String
- The status of ECS instance.
- stopped
Mode String - The stop mode of ECS instance.
- List<Property Map>
- Tags.
- updated
At String - The update time of ECS instance.
- volume
Ids List<String> - The volume ID list of ECS instance.
- volumes List<Property Map>
- The volume detail collection of volume.
- vpc
Id String - The VPC ID of ECS instance.
- zone
Id String - The available zone ID of ECS instance.
GetInstancesInstanceEipAddress
- Allocation
Id string - The EIP ID of the ECS instance.
- Ip
Address string - The EIP address of the ECS instance.
- Allocation
Id string - The EIP ID of the ECS instance.
- Ip
Address string - The EIP address of the ECS instance.
- allocation
Id String - The EIP ID of the ECS instance.
- ip
Address String - The EIP address of the ECS instance.
- allocation
Id string - The EIP ID of the ECS instance.
- ip
Address string - The EIP address of the ECS instance.
- allocation_
id str - The EIP ID of the ECS instance.
- ip_
address str - The EIP address of the ECS instance.
- allocation
Id String - The EIP ID of the ECS instance.
- ip
Address String - The EIP address of the ECS instance.
GetInstancesInstanceGpuDevice
- Count int
- The Count of GPU device.
- Encrypted
Memory intSize - The Encrypted Memory Size of GPU device.
- Memory
Size int - The memory size of ECS instance.
- Product
Name string - The Product Name of GPU device.
- Count int
- The Count of GPU device.
- Encrypted
Memory intSize - The Encrypted Memory Size of GPU device.
- Memory
Size int - The memory size of ECS instance.
- Product
Name string - The Product Name of GPU device.
- count Integer
- The Count of GPU device.
- encrypted
Memory IntegerSize - The Encrypted Memory Size of GPU device.
- memory
Size Integer - The memory size of ECS instance.
- product
Name String - The Product Name of GPU device.
- count number
- The Count of GPU device.
- encrypted
Memory numberSize - The Encrypted Memory Size of GPU device.
- memory
Size number - The memory size of ECS instance.
- product
Name string - The Product Name of GPU device.
- count int
- The Count of GPU device.
- encrypted_
memory_ intsize - The Encrypted Memory Size of GPU device.
- memory_
size int - The memory size of ECS instance.
- product_
name str - The Product Name of GPU device.
- count Number
- The Count of GPU device.
- encrypted
Memory NumberSize - The Encrypted Memory Size of GPU device.
- memory
Size Number - The memory size of ECS instance.
- product
Name String - The Product Name of GPU device.
GetInstancesInstanceNetworkInterface
- Mac
Address string - The mac address of networkInterface.
- Network
Interface stringId - The ID of networkInterface.
- Primary
Ip stringAddress - The primary ip address of ECS instance.
- Subnet
Id string - The subnet ID of networkInterface.
- Type string
- The type of networkInterface.
- Vpc
Id string - The VPC ID of ECS instance.
- Mac
Address string - The mac address of networkInterface.
- Network
Interface stringId - The ID of networkInterface.
- Primary
Ip stringAddress - The primary ip address of ECS instance.
- Subnet
Id string - The subnet ID of networkInterface.
- Type string
- The type of networkInterface.
- Vpc
Id string - The VPC ID of ECS instance.
- mac
Address String - The mac address of networkInterface.
- network
Interface StringId - The ID of networkInterface.
- primary
Ip StringAddress - The primary ip address of ECS instance.
- subnet
Id String - The subnet ID of networkInterface.
- type String
- The type of networkInterface.
- vpc
Id String - The VPC ID of ECS instance.
- mac
Address string - The mac address of networkInterface.
- network
Interface stringId - The ID of networkInterface.
- primary
Ip stringAddress - The primary ip address of ECS instance.
- subnet
Id string - The subnet ID of networkInterface.
- type string
- The type of networkInterface.
- vpc
Id string - The VPC ID of ECS instance.
- mac_
address str - The mac address of networkInterface.
- network_
interface_ strid - The ID of networkInterface.
- primary_
ip_ straddress - The primary ip address of ECS instance.
- subnet_
id str - The subnet ID of networkInterface.
- type str
- The type of networkInterface.
- vpc_
id str - The VPC ID of ECS instance.
- mac
Address String - The mac address of networkInterface.
- network
Interface StringId - The ID of networkInterface.
- primary
Ip StringAddress - The primary ip address of ECS instance.
- subnet
Id String - The subnet ID of networkInterface.
- type String
- The type of networkInterface.
- vpc
Id String - The VPC ID of ECS instance.
GetInstancesInstanceTag
GetInstancesInstanceVolume
- Delete
With boolInstance - The delete with instance flag of volume.
- Size int
- The size of volume.
- Volume
Id string - The ID of volume.
- Volume
Name string - The Name of volume.
- Volume
Type string - The type of volume.
- Delete
With boolInstance - The delete with instance flag of volume.
- Size int
- The size of volume.
- Volume
Id string - The ID of volume.
- Volume
Name string - The Name of volume.
- Volume
Type string - The type of volume.
- delete
With BooleanInstance - The delete with instance flag of volume.
- size Integer
- The size of volume.
- volume
Id String - The ID of volume.
- volume
Name String - The Name of volume.
- volume
Type String - The type of volume.
- delete
With booleanInstance - The delete with instance flag of volume.
- size number
- The size of volume.
- volume
Id string - The ID of volume.
- volume
Name string - The Name of volume.
- volume
Type string - The type of volume.
- delete_
with_ boolinstance - The delete with instance flag of volume.
- size int
- The size of volume.
- volume_
id str - The ID of volume.
- volume_
name str - The Name of volume.
- volume_
type str - The type of volume.
- delete
With BooleanInstance - The delete with instance flag of volume.
- size Number
- The size of volume.
- volume
Id String - The ID of volume.
- volume
Name String - The Name of volume.
- volume
Type String - The type of volume.
GetInstancesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
