Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides the Havips of the current Alibaba Cloud user.
NOTE: Available in v1.120.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.vpc.getHavips({
ids: ["example_value"],
nameRegex: "the_resource_name",
});
export const firstHavipId = example.then(example => example.havips?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.vpc.get_havips(ids=["example_value"],
name_regex="the_resource_name")
pulumi.export("firstHavipId", example.havips[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vpc.GetHavips(ctx, &vpc.GetHavipsArgs{
Ids: []string{
"example_value",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstHavipId", example.Havips[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Vpc.GetHavips.Invoke(new()
{
Ids = new[]
{
"example_value",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstHavipId"] = example.Apply(getHavipsResult => getHavipsResult.Havips[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.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 example = VpcFunctions.getHavips(GetHavipsArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstHavipId", example.havips()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:vpc:getHavips
arguments:
ids:
- example_value
nameRegex: the_resource_name
outputs:
firstHavipId: ${example.havips[0].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_havips(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHavipsResult
def get_havips_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: 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: alicloud:vpc/getHavips:getHavips
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Ha Vip IDs.
- Name
Regex string - A regex string to filter results by Ha Vip name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of HaVip instance. Valid value:
Available,InUseandPending.
- Ids []string
- A list of Ha Vip IDs.
- Name
Regex string - A regex string to filter results by Ha Vip name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of HaVip instance. Valid value:
Available,InUseandPending.
- ids List<String>
- A list of Ha Vip IDs.
- name
Regex String - A regex string to filter results by Ha Vip name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of HaVip instance. Valid value:
Available,InUseandPending.
- ids string[]
- A list of Ha Vip IDs.
- name
Regex string - A regex string to filter results by Ha Vip name.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of HaVip instance. Valid value:
Available,InUseandPending.
- ids Sequence[str]
- A list of Ha Vip IDs.
- name_
regex str - A regex string to filter results by Ha Vip name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- The status of HaVip instance. Valid value:
Available,InUseandPending.
- ids List<String>
- A list of Ha Vip IDs.
- name
Regex String - A regex string to filter results by Ha Vip name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of HaVip instance. Valid value:
Available,InUseandPending.
getHavips Result
The following output properties are available:
- Havips
List<Pulumi.
Ali Cloud. Vpc. Outputs. Get Havips Havip> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Name
Regex string - Output
File string - Status string
- Havips
[]Get
Havips Havip - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Name
Regex string - Output
File string - Status string
- havips
List<Get
Havips Havip> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
- havips
Get
Havips Havip[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- name
Regex string - output
File string - status string
- havips
Sequence[Get
Havips Havip] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- name_
regex str - output_
file str - status str
- havips List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
Supporting Types
GetHavipsHavip
- Associated
Eip List<string>Addresses - EIP bound to HaVip.
- Associated
Instances List<string> - An ECS instance that is bound to HaVip.
- Description string
- Dependence of a HaVip instance.
- Havip
Id string - The ID of the resource.
- Havip
Name string - The name of the HaVip instance.
- Id string
- The ID of the Ha Vip.
- Ip
Address string - IP address of private network.
- Master
Instance stringId - The primary instance ID bound to HaVip.
- Status string
- The status.
- Vpc
Id string - The VPC ID to which the HaVip instance belongs.
- Vswitch
Id string - The vswitch id.
- Associated
Eip []stringAddresses - EIP bound to HaVip.
- Associated
Instances []string - An ECS instance that is bound to HaVip.
- Description string
- Dependence of a HaVip instance.
- Havip
Id string - The ID of the resource.
- Havip
Name string - The name of the HaVip instance.
- Id string
- The ID of the Ha Vip.
- Ip
Address string - IP address of private network.
- Master
Instance stringId - The primary instance ID bound to HaVip.
- Status string
- The status.
- Vpc
Id string - The VPC ID to which the HaVip instance belongs.
- Vswitch
Id string - The vswitch id.
- associated
Eip List<String>Addresses - EIP bound to HaVip.
- associated
Instances List<String> - An ECS instance that is bound to HaVip.
- description String
- Dependence of a HaVip instance.
- havip
Id String - The ID of the resource.
- havip
Name String - The name of the HaVip instance.
- id String
- The ID of the Ha Vip.
- ip
Address String - IP address of private network.
- master
Instance StringId - The primary instance ID bound to HaVip.
- status String
- The status.
- vpc
Id String - The VPC ID to which the HaVip instance belongs.
- vswitch
Id String - The vswitch id.
- associated
Eip string[]Addresses - EIP bound to HaVip.
- associated
Instances string[] - An ECS instance that is bound to HaVip.
- description string
- Dependence of a HaVip instance.
- havip
Id string - The ID of the resource.
- havip
Name string - The name of the HaVip instance.
- id string
- The ID of the Ha Vip.
- ip
Address string - IP address of private network.
- master
Instance stringId - The primary instance ID bound to HaVip.
- status string
- The status.
- vpc
Id string - The VPC ID to which the HaVip instance belongs.
- vswitch
Id string - The vswitch id.
- associated_
eip_ Sequence[str]addresses - EIP bound to HaVip.
- associated_
instances Sequence[str] - An ECS instance that is bound to HaVip.
- description str
- Dependence of a HaVip instance.
- havip_
id str - The ID of the resource.
- havip_
name str - The name of the HaVip instance.
- id str
- The ID of the Ha Vip.
- ip_
address str - IP address of private network.
- master_
instance_ strid - The primary instance ID bound to HaVip.
- status str
- The status.
- vpc_
id str - The VPC ID to which the HaVip instance belongs.
- vswitch_
id str - The vswitch id.
- associated
Eip List<String>Addresses - EIP bound to HaVip.
- associated
Instances List<String> - An ECS instance that is bound to HaVip.
- description String
- Dependence of a HaVip instance.
- havip
Id String - The ID of the resource.
- havip
Name String - The name of the HaVip instance.
- id String
- The ID of the Ha Vip.
- ip
Address String - IP address of private network.
- master
Instance StringId - The primary instance ID bound to HaVip.
- status String
- The status.
- vpc
Id String - The VPC ID to which the HaVip instance belongs.
- vswitch
Id String - The vswitch id.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
