Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.vpc.HaVips
Explore with Pulumi AI
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.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 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.HaVipsOutput({
    ids: [fooHaVip.id],
});
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_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.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.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
		}
		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.HaVipsOutput(ctx, vpc.HaVipsOutputArgs{
			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.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 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.HaVips.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.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.HaVip;
import com.pulumi.volcengine.vpc.HaVipArgs;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.HaVipsArgs;
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 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.HaVips(HaVipsArgs.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:Zones
      Arguments: {}
  fooHaVips:
    fn::invoke:
      Function: volcengine:vpc:HaVips
      Arguments:
        ids:
          - ${fooHaVip.id}
Using HaVips
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 haVips(args: HaVipsArgs, opts?: InvokeOptions): Promise<HaVipsResult>
function haVipsOutput(args: HaVipsOutputArgs, opts?: InvokeOptions): Output<HaVipsResult>def 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,
            vpc_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> HaVipsResult
def 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,
            vpc_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[HaVipsResult]func HaVips(ctx *Context, args *HaVipsArgs, opts ...InvokeOption) (*HaVipsResult, error)
func HaVipsOutput(ctx *Context, args *HaVipsOutputArgs, opts ...InvokeOption) HaVipsResultOutputpublic static class HaVips 
{
    public static Task<HaVipsResult> InvokeAsync(HaVipsArgs args, InvokeOptions? opts = null)
    public static Output<HaVipsResult> Invoke(HaVipsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<HaVipsResult> haVips(HaVipsArgs args, InvokeOptions options)
public static Output<HaVipsResult> haVips(HaVipsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:vpc:HaVips
  arguments:
    # arguments dictionaryThe following arguments are supported:
- HaVip stringName 
- The name of Ha Vip.
- Ids List<string>
- A list of Ha Vip IDs.
- IpAddress string
- The ip address of Ha Vip.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- ProjectName string
- The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- SubnetId string
- The id of subnet.
- VpcId string
- The id of vpc.
- HaVip stringName 
- The name of Ha Vip.
- Ids []string
- A list of Ha Vip IDs.
- IpAddress string
- The ip address of Ha Vip.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- ProjectName string
- The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- SubnetId string
- The id of subnet.
- VpcId string
- The id of vpc.
- haVip StringName 
- The name of Ha Vip.
- ids List<String>
- A list of Ha Vip IDs.
- ipAddress String
- The ip address of Ha Vip.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- projectName String
- The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnetId String
- The id of subnet.
- vpcId String
- The id of vpc.
- haVip stringName 
- The name of Ha Vip.
- ids string[]
- A list of Ha Vip IDs.
- ipAddress string
- The ip address of Ha Vip.
- nameRegex string
- A Name Regex of Resource.
- outputFile string
- File name where to save data source results.
- projectName string
- The project name of Ha Vip.
- status string
- The status of Ha Vip.
- subnetId string
- The id of subnet.
- vpcId 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.
- vpc_id str
- The id of vpc.
- haVip StringName 
- The name of Ha Vip.
- ids List<String>
- A list of Ha Vip IDs.
- ipAddress String
- The ip address of Ha Vip.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- projectName String
- The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnetId String
- The id of subnet.
- vpcId String
- The id of vpc.
HaVips Result
The following output properties are available:
- HaVips List<HaVips Ha Vip> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- HaVip stringName 
- The name of the Ha Vip.
- Ids List<string>
- IpAddress string
- The ip address of the Ha Vip.
- NameRegex string
- OutputFile string
- ProjectName string
- The project name of the Ha Vip.
- Status string
- The status of the Ha Vip.
- SubnetId string
- The subnet id of the Ha Vip.
- VpcId string
- The vpc id of the Ha Vip.
- HaVips []HaVips Ha Vip 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- HaVip stringName 
- The name of the Ha Vip.
- Ids []string
- IpAddress string
- The ip address of the Ha Vip.
- NameRegex string
- OutputFile string
- ProjectName string
- The project name of the Ha Vip.
- Status string
- The status of the Ha Vip.
- SubnetId string
- The subnet id of the Ha Vip.
- VpcId string
- The vpc id of the Ha Vip.
- haVips List<HaVips Ha Vip> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of query.
- haVip StringName 
- The name of the Ha Vip.
- ids List<String>
- ipAddress String
- The ip address of the Ha Vip.
- nameRegex String
- outputFile String
- projectName String
- The project name of the Ha Vip.
- status String
- The status of the Ha Vip.
- subnetId String
- The subnet id of the Ha Vip.
- vpcId String
- The vpc id of the Ha Vip.
- haVips HaVips Ha Vip[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of query.
- haVip stringName 
- The name of the Ha Vip.
- ids string[]
- ipAddress string
- The ip address of the Ha Vip.
- nameRegex string
- outputFile string
- projectName string
- The project name of the Ha Vip.
- status string
- The status of the Ha Vip.
- subnetId string
- The subnet id of the Ha Vip.
- vpcId string
- The vpc id of the Ha Vip.
- ha_vips Sequence[HaVips 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.
- vpc_id str
- The vpc id of the Ha Vip.
- haVips List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of query.
- haVip StringName 
- The name of the Ha Vip.
- ids List<String>
- ipAddress String
- The ip address of the Ha Vip.
- nameRegex String
- outputFile String
- projectName String
- The project name of the Ha Vip.
- status String
- The status of the Ha Vip.
- subnetId String
- The subnet id of the Ha Vip.
- vpcId String
- The vpc id of the Ha Vip.
Supporting Types
HaVipsHaVip   
- AccountId string
- The account id of the Ha Vip.
- AssociatedEip stringAddress 
- The associated eip address of the Ha Vip.
- AssociatedEip stringId 
- The associated eip id of the Ha Vip.
- AssociatedInstance List<string>Ids 
- The associated instance ids of the Ha Vip.
- AssociatedInstance stringType 
- The associated instance type of the Ha Vip.
- CreatedAt string
- The create time of the Ha Vip.
- Description string
- The description of the Ha Vip.
- HaVip stringId 
- The id of the Ha Vip.
- HaVip stringName 
- The name of Ha Vip.
- Id string
- The id of the Ha Vip.
- IpAddress string
- The ip address of Ha Vip.
- MasterInstance stringId 
- The master instance id of the Ha Vip.
- ProjectName string
- The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- SubnetId string
- The id of subnet.
- UpdatedAt string
- The update time of the Ha Vip.
- VpcId string
- The id of vpc.
- AccountId string
- The account id of the Ha Vip.
- AssociatedEip stringAddress 
- The associated eip address of the Ha Vip.
- AssociatedEip stringId 
- The associated eip id of the Ha Vip.
- AssociatedInstance []stringIds 
- The associated instance ids of the Ha Vip.
- AssociatedInstance stringType 
- The associated instance type of the Ha Vip.
- CreatedAt string
- The create time of the Ha Vip.
- Description string
- The description of the Ha Vip.
- HaVip stringId 
- The id of the Ha Vip.
- HaVip stringName 
- The name of Ha Vip.
- Id string
- The id of the Ha Vip.
- IpAddress string
- The ip address of Ha Vip.
- MasterInstance stringId 
- The master instance id of the Ha Vip.
- ProjectName string
- The project name of Ha Vip.
- Status string
- The status of Ha Vip.
- SubnetId string
- The id of subnet.
- UpdatedAt string
- The update time of the Ha Vip.
- VpcId string
- The id of vpc.
- accountId String
- The account id of the Ha Vip.
- associatedEip StringAddress 
- The associated eip address of the Ha Vip.
- associatedEip StringId 
- The associated eip id of the Ha Vip.
- associatedInstance List<String>Ids 
- The associated instance ids of the Ha Vip.
- associatedInstance StringType 
- The associated instance type of the Ha Vip.
- createdAt String
- The create time of the Ha Vip.
- description String
- The description of the Ha Vip.
- haVip StringId 
- The id of the Ha Vip.
- haVip StringName 
- The name of Ha Vip.
- id String
- The id of the Ha Vip.
- ipAddress String
- The ip address of Ha Vip.
- masterInstance StringId 
- The master instance id of the Ha Vip.
- projectName String
- The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnetId String
- The id of subnet.
- updatedAt String
- The update time of the Ha Vip.
- vpcId String
- The id of vpc.
- accountId string
- The account id of the Ha Vip.
- associatedEip stringAddress 
- The associated eip address of the Ha Vip.
- associatedEip stringId 
- The associated eip id of the Ha Vip.
- associatedInstance string[]Ids 
- The associated instance ids of the Ha Vip.
- associatedInstance stringType 
- The associated instance type of the Ha Vip.
- createdAt string
- The create time of the Ha Vip.
- description string
- The description of the Ha Vip.
- haVip stringId 
- The id of the Ha Vip.
- haVip stringName 
- The name of Ha Vip.
- id string
- The id of the Ha Vip.
- ipAddress string
- The ip address of Ha Vip.
- masterInstance stringId 
- The master instance id of the Ha Vip.
- projectName string
- The project name of Ha Vip.
- status string
- The status of Ha Vip.
- subnetId string
- The id of subnet.
- updatedAt string
- The update time of the Ha Vip.
- vpcId 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.
- updated_at str
- The update time of the Ha Vip.
- vpc_id str
- The id of vpc.
- accountId String
- The account id of the Ha Vip.
- associatedEip StringAddress 
- The associated eip address of the Ha Vip.
- associatedEip StringId 
- The associated eip id of the Ha Vip.
- associatedInstance List<String>Ids 
- The associated instance ids of the Ha Vip.
- associatedInstance StringType 
- The associated instance type of the Ha Vip.
- createdAt String
- The create time of the Ha Vip.
- description String
- The description of the Ha Vip.
- haVip StringId 
- The id of the Ha Vip.
- haVip StringName 
- The name of Ha Vip.
- id String
- The id of the Ha Vip.
- ipAddress String
- The ip address of Ha Vip.
- masterInstance StringId 
- The master instance id of the Ha Vip.
- projectName String
- The project name of Ha Vip.
- status String
- The status of Ha Vip.
- subnetId String
- The id of subnet.
- updatedAt String
- The update time of the Ha Vip.
- vpcId String
- The id of vpc.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.