Alibaba Cloud
getHavips
This data source provides the Havips of the current Alibaba Cloud user.
NOTE: Available in v1.120.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.Vpc.GetHavips.InvokeAsync(new AliCloud.Vpc.GetHavipsArgs
{
Ids =
{
"example_value",
},
NameRegex = "the_resource_name",
}));
this.FirstHavipId = example.Apply(example => example.Havips?[0]?.Id);
}
[Output("firstHavipId")]
public Output<string> FirstHavipId { get; set; }
}
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
})
}
Coming soon!
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)
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);
Coming soon!
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:vpc/getHavips:getHavips
Arguments:
# Arguments dictionary
The 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 - Status string
The status.
- Ids []string
A list of Ha Vip IDs.
- Name
Regex string A regex string to filter results by Ha Vip name.
- Output
File string - Status string
The status.
- 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 - status String
The status.
- ids string[]
A list of Ha Vip IDs.
- name
Regex string A regex string to filter results by Ha Vip name.
- output
File string - status string
The status.
- 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 - status str
The status.
- 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 - status String
The status.
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
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.