Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.vpc.HaVips
Explore with Pulumi AI
Use this data source to query detailed information of ha vips
Example Usage
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 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
	})
}
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());
        final var fooHaVips = VpcFunctions.HaVips(HaVipsArgs.builder()
            .ids(fooHaVip.id())
            .build());
    }
}
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])
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],
});
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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: volcengine:vpc:HaVips
  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.
 - 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.
 - 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.
 - 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.
 - 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.
 - 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.
 - vpc
Id String - The id of vpc.
 
HaVips Result
The following output properties are available:
- Ha
Vips List<HaVips 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.
 - Vpc
Id string - The vpc id of the Ha Vip.
 
- Ha
Vips []HaVips 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.
 - Vpc
Id string - The vpc id of the Ha Vip.
 
- ha
Vips List<HaVips 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.
 - vpc
Id String - The vpc id of the Ha Vip.
 
- ha
Vips HaVips 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.
 - vpc
Id 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.
 
- 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.
 - vpc
Id String - The vpc id of the Ha Vip.
 
Supporting Types
HaVipsHaVip   
- 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.
 - 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.
 - 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.
 - 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.
 - 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.
 - 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.
 - updated
At String - The update time of the Ha Vip.
 - vpc
Id 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.