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 ha vips
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 fooHaVip = new volcengine.vpc.HaVip("fooHaVip", {
haVipName: "acc-test-ha-vip",
description: "acc-test",
subnetId: fooSubnet.id,
});
// ip_address = "172.16.0.5"
const fooHaVips = volcengine.vpc.getHaVipsOutput({
ids: [fooHaVip.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_ha_vip = volcengine.vpc.HaVip("fooHaVip",
ha_vip_name="acc-test-ha-vip",
description="acc-test",
subnet_id=foo_subnet.id)
# ip_address = "172.16.0.5"
foo_ha_vips = volcengine.vpc.get_ha_vips_output(ids=[foo_ha_vip.id])
package main
import (
"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
}
fooHaVip, err := vpc.NewHaVip(ctx, "fooHaVip", &vpc.HaVipArgs{
HaVipName: pulumi.String("acc-test-ha-vip"),
Description: pulumi.String("acc-test"),
SubnetId: fooSubnet.ID(),
})
if err != nil {
return err
}
_ = vpc.GetHaVipsOutput(ctx, vpc.GetHaVipsOutputArgs{
Ids: pulumi.StringArray{
fooHaVip.ID(),
},
}, 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 fooHaVip = new Volcengine.Vpc.HaVip("fooHaVip", new()
{
HaVipName = "acc-test-ha-vip",
Description = "acc-test",
SubnetId = fooSubnet.Id,
});
// ip_address = "172.16.0.5"
var fooHaVips = Volcengine.Vpc.GetHaVips.Invoke(new()
{
Ids = new[]
{
fooHaVip.Id,
},
});
});
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.HaVip;
import com.pulumi.volcengine.vpc.HaVipArgs;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.GetHaVipsArgs;
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 fooHaVip = new HaVip("fooHaVip", HaVipArgs.builder()
.haVipName("acc-test-ha-vip")
.description("acc-test")
.subnetId(fooSubnet.id())
.build());
// ip_address = "172.16.0.5"
final var fooHaVips = VpcFunctions.getHaVips(GetHaVipsArgs.builder()
.ids(fooHaVip.id())
.build());
}
}
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
fooHaVip:
type: volcengine:vpc:HaVip
properties:
haVipName: acc-test-ha-vip
description: acc-test
subnetId: ${fooSubnet.id}
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:getZones
Arguments: {}
fooHaVips:
fn::invoke:
Function: volcengine:vpc:getHaVips
Arguments:
ids:
- ${fooHaVip.id}
Using getHaVips
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 getHaVips(args: GetHaVipsArgs, opts?: InvokeOptions): Promise<GetHaVipsResult>
function getHaVipsOutput(args: GetHaVipsOutputArgs, opts?: InvokeOptions): Output<GetHaVipsResult>def get_ha_vips(ha_vip_name: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
ip_address: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[GetHaVipsTag]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHaVipsResult
def get_ha_vips_output(ha_vip_name: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetHaVipsTagArgs]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHaVipsResult]func GetHaVips(ctx *Context, args *GetHaVipsArgs, opts ...InvokeOption) (*GetHaVipsResult, error)
func GetHaVipsOutput(ctx *Context, args *GetHaVipsOutputArgs, opts ...InvokeOption) GetHaVipsResultOutput> Note: This function is named GetHaVips in the Go SDK.
public static class GetHaVips
{
public static Task<GetHaVipsResult> InvokeAsync(GetHaVipsArgs args, InvokeOptions? opts = null)
public static Output<GetHaVipsResult> Invoke(GetHaVipsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHaVipsResult> getHaVips(GetHaVipsArgs args, InvokeOptions options)
public static Output<GetHaVipsResult> getHaVips(GetHaVipsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc/getHaVips:getHaVips
arguments:
# arguments dictionaryThe following arguments are supported:
- Ha
Vip stringName - The name of Ha Vip.
- Ids List<string>
- A list of Ha Vip IDs.
- Ip
Address string - The ip address of Ha Vip.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- Subnet
Id string - The id of subnet.
-
List<Get
Ha Vips Tag> - Tags.
- Vpc
Id string - The id of vpc.
- Ha
Vip stringName - The name of Ha Vip.
- Ids []string
- A list of Ha Vip IDs.
- Ip
Address string - The ip address of Ha Vip.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- Subnet
Id string - The id of subnet.
-
[]Get
Ha Vips Tag - Tags.
- Vpc
Id string - The id of vpc.
- ha
Vip StringName - The name of Ha Vip.
- ids List<String>
- A list of Ha Vip IDs.
- ip
Address String - The ip address of Ha Vip.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnet
Id String - The id of subnet.
-
List<Get
Ha Vips Tag> - Tags.
- vpc
Id String - The id of vpc.
- ha
Vip stringName - The name of Ha Vip.
- ids string[]
- A list of Ha Vip IDs.
- ip
Address string - The ip address of Ha Vip.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- project
Name string - The project name of Ha Vip.
- status string
- The status of Ha Vip.
- subnet
Id string - The id of subnet.
-
Get
Ha Vips Tag[] - Tags.
- vpc
Id string - The id of vpc.
- ha_
vip_ strname - The name of Ha Vip.
- ids Sequence[str]
- A list of Ha Vip IDs.
- ip_
address str - The ip address of Ha Vip.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of Ha Vip.
- status str
- The status of Ha Vip.
- subnet_
id str - The id of subnet.
-
Sequence[Get
Ha Vips Tag] - Tags.
- vpc_
id str - The id of vpc.
- ha
Vip StringName - The name of Ha Vip.
- ids List<String>
- A list of Ha Vip IDs.
- ip
Address String - The ip address of Ha Vip.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnet
Id String - The id of subnet.
- List<Property Map>
- Tags.
- vpc
Id String - The id of vpc.
getHaVips Result
The following output properties are available:
- Ha
Vips List<GetHa Vips Ha Vip> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ha
Vip stringName - The name of the Ha Vip.
- Ids List<string>
- Ip
Address string - The ip address of the Ha Vip.
- Name
Regex string - Output
File string - Project
Name string - The project name of the Ha Vip.
- Status string
- The status of the Ha Vip.
- Subnet
Id string - The subnet id of the Ha Vip.
-
List<Get
Ha Vips Tag> - Tags.
- Vpc
Id string - The vpc id of the Ha Vip.
- Ha
Vips []GetHa Vips Ha Vip - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ha
Vip stringName - The name of the Ha Vip.
- Ids []string
- Ip
Address string - The ip address of the Ha Vip.
- Name
Regex string - Output
File string - Project
Name string - The project name of the Ha Vip.
- Status string
- The status of the Ha Vip.
- Subnet
Id string - The subnet id of the Ha Vip.
-
[]Get
Ha Vips Tag - Tags.
- Vpc
Id string - The vpc id of the Ha Vip.
- ha
Vips List<GetHa Vips Ha Vip> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- ha
Vip StringName - The name of the Ha Vip.
- ids List<String>
- ip
Address String - The ip address of the Ha Vip.
- name
Regex String - output
File String - project
Name String - The project name of the Ha Vip.
- status String
- The status of the Ha Vip.
- subnet
Id String - The subnet id of the Ha Vip.
-
List<Get
Ha Vips Tag> - Tags.
- vpc
Id String - The vpc id of the Ha Vip.
- ha
Vips GetHa Vips Ha Vip[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- ha
Vip stringName - The name of the Ha Vip.
- ids string[]
- ip
Address string - The ip address of the Ha Vip.
- name
Regex string - output
File string - project
Name string - The project name of the Ha Vip.
- status string
- The status of the Ha Vip.
- subnet
Id string - The subnet id of the Ha Vip.
-
Get
Ha Vips Tag[] - Tags.
- vpc
Id string - The vpc id of the Ha Vip.
- ha_
vips Sequence[GetHa Vips Ha Vip] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- ha_
vip_ strname - The name of the Ha Vip.
- ids Sequence[str]
- ip_
address str - The ip address of the Ha Vip.
- name_
regex str - output_
file str - project_
name str - The project name of the Ha Vip.
- status str
- The status of the Ha Vip.
- subnet_
id str - The subnet id of the Ha Vip.
-
Sequence[Get
Ha Vips Tag] - Tags.
- vpc_
id str - The vpc id of the Ha Vip.
- ha
Vips List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- ha
Vip StringName - The name of the Ha Vip.
- ids List<String>
- ip
Address String - The ip address of the Ha Vip.
- name
Regex String - output
File String - project
Name String - The project name of the Ha Vip.
- status String
- The status of the Ha Vip.
- subnet
Id String - The subnet id of the Ha Vip.
- List<Property Map>
- Tags.
- vpc
Id String - The vpc id of the Ha Vip.
Supporting Types
GetHaVipsHaVip
- Account
Id string - The account id of the Ha Vip.
- Associated
Eip stringAddress - The associated eip address of the Ha Vip.
- Associated
Eip stringId - The associated eip id of the Ha Vip.
- Associated
Instance List<string>Ids - The associated instance ids of the Ha Vip.
- Associated
Instance stringType - The associated instance type of the Ha Vip.
- Created
At string - The create time of the Ha Vip.
- Description string
- The description of the Ha Vip.
- Ha
Vip stringId - The id of the Ha Vip.
- Ha
Vip stringName - The name of Ha Vip.
- Id string
- The id of the Ha Vip.
- Ip
Address string - The ip address of Ha Vip.
- Master
Instance stringId - The master instance id of the Ha Vip.
- Project
Name string - The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- Subnet
Id string - The id of subnet.
-
List<Get
Ha Vips Ha Vip Tag> - Tags.
- Updated
At string - The update time of the Ha Vip.
- Vpc
Id string - The id of vpc.
- Account
Id string - The account id of the Ha Vip.
- Associated
Eip stringAddress - The associated eip address of the Ha Vip.
- Associated
Eip stringId - The associated eip id of the Ha Vip.
- Associated
Instance []stringIds - The associated instance ids of the Ha Vip.
- Associated
Instance stringType - The associated instance type of the Ha Vip.
- Created
At string - The create time of the Ha Vip.
- Description string
- The description of the Ha Vip.
- Ha
Vip stringId - The id of the Ha Vip.
- Ha
Vip stringName - The name of Ha Vip.
- Id string
- The id of the Ha Vip.
- Ip
Address string - The ip address of Ha Vip.
- Master
Instance stringId - The master instance id of the Ha Vip.
- Project
Name string - The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- Subnet
Id string - The id of subnet.
-
[]Get
Ha Vips Ha Vip Tag - Tags.
- Updated
At string - The update time of the Ha Vip.
- Vpc
Id string - The id of vpc.
- account
Id String - The account id of the Ha Vip.
- associated
Eip StringAddress - The associated eip address of the Ha Vip.
- associated
Eip StringId - The associated eip id of the Ha Vip.
- associated
Instance List<String>Ids - The associated instance ids of the Ha Vip.
- associated
Instance StringType - The associated instance type of the Ha Vip.
- created
At String - The create time of the Ha Vip.
- description String
- The description of the Ha Vip.
- ha
Vip StringId - The id of the Ha Vip.
- ha
Vip StringName - The name of Ha Vip.
- id String
- The id of the Ha Vip.
- ip
Address String - The ip address of Ha Vip.
- master
Instance StringId - The master instance id of the Ha Vip.
- project
Name String - The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnet
Id String - The id of subnet.
-
List<Get
Ha Vips Ha Vip Tag> - Tags.
- updated
At String - The update time of the Ha Vip.
- vpc
Id String - The id of vpc.
- account
Id string - The account id of the Ha Vip.
- associated
Eip stringAddress - The associated eip address of the Ha Vip.
- associated
Eip stringId - The associated eip id of the Ha Vip.
- associated
Instance string[]Ids - The associated instance ids of the Ha Vip.
- associated
Instance stringType - The associated instance type of the Ha Vip.
- created
At string - The create time of the Ha Vip.
- description string
- The description of the Ha Vip.
- ha
Vip stringId - The id of the Ha Vip.
- ha
Vip stringName - The name of Ha Vip.
- id string
- The id of the Ha Vip.
- ip
Address string - The ip address of Ha Vip.
- master
Instance stringId - The master instance id of the Ha Vip.
- project
Name string - The project name of Ha Vip.
- status string
- The status of Ha Vip.
- subnet
Id string - The id of subnet.
-
Get
Ha Vips Ha Vip Tag[] - Tags.
- updated
At string - The update time of the Ha Vip.
- vpc
Id string - The id of vpc.
- account_
id str - The account id of the Ha Vip.
- associated_
eip_ straddress - The associated eip address of the Ha Vip.
- associated_
eip_ strid - The associated eip id of the Ha Vip.
- associated_
instance_ Sequence[str]ids - The associated instance ids of the Ha Vip.
- associated_
instance_ strtype - The associated instance type of the Ha Vip.
- created_
at str - The create time of the Ha Vip.
- description str
- The description of the Ha Vip.
- ha_
vip_ strid - The id of the Ha Vip.
- ha_
vip_ strname - The name of Ha Vip.
- id str
- The id of the Ha Vip.
- ip_
address str - The ip address of Ha Vip.
- master_
instance_ strid - The master instance id of the Ha Vip.
- project_
name str - The project name of Ha Vip.
- status str
- The status of Ha Vip.
- subnet_
id str - The id of subnet.
-
Sequence[Get
Ha Vips Ha Vip Tag] - Tags.
- updated_
at str - The update time of the Ha Vip.
- vpc_
id str - The id of vpc.
- account
Id String - The account id of the Ha Vip.
- associated
Eip StringAddress - The associated eip address of the Ha Vip.
- associated
Eip StringId - The associated eip id of the Ha Vip.
- associated
Instance List<String>Ids - The associated instance ids of the Ha Vip.
- associated
Instance StringType - The associated instance type of the Ha Vip.
- created
At String - The create time of the Ha Vip.
- description String
- The description of the Ha Vip.
- ha
Vip StringId - The id of the Ha Vip.
- ha
Vip StringName - The name of Ha Vip.
- id String
- The id of the Ha Vip.
- ip
Address String - The ip address of Ha Vip.
- master
Instance StringId - The master instance id of the Ha Vip.
- project
Name String - The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnet
Id String - The id of subnet.
- List<Property Map>
- Tags.
- updated
At String - The update time of the Ha Vip.
- vpc
Id String - The id of vpc.
GetHaVipsHaVipTag
GetHaVipsTag
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
