avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getIpaddrgroup
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.Ipaddrgroup” sidebar_current: “docs-avi-datasource-ipaddrgroup” description: |- Get information of Avi IpAddrGroup.
avi.Ipaddrgroup
This data source is used to to get avi.Ipaddrgroup objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooIpaddrgroup = avi.getIpaddrgroup({
name: "foo",
uuid: "ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_ipaddrgroup = avi.get_ipaddrgroup(name="foo",
uuid="ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.LookupIpaddrgroup(ctx, &avi.LookupIpaddrgroupArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var fooIpaddrgroup = Avi.GetIpaddrgroup.Invoke(new()
{
Name = "foo",
Uuid = "ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetIpaddrgroupArgs;
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 fooIpaddrgroup = AviFunctions.getIpaddrgroup(GetIpaddrgroupArgs.builder()
.name("foo")
.uuid("ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooIpaddrgroup:
fn::invoke:
function: avi:getIpaddrgroup
arguments:
name: foo
uuid: ipaddrgroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getIpaddrgroup
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 getIpaddrgroup(args: GetIpaddrgroupArgs, opts?: InvokeOptions): Promise<GetIpaddrgroupResult>
function getIpaddrgroupOutput(args: GetIpaddrgroupOutputArgs, opts?: InvokeOptions): Output<GetIpaddrgroupResult>
def get_ipaddrgroup(id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIpaddrgroupResult
def get_ipaddrgroup_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpaddrgroupResult]
func LookupIpaddrgroup(ctx *Context, args *LookupIpaddrgroupArgs, opts ...InvokeOption) (*LookupIpaddrgroupResult, error)
func LookupIpaddrgroupOutput(ctx *Context, args *LookupIpaddrgroupOutputArgs, opts ...InvokeOption) LookupIpaddrgroupResultOutput
> Note: This function is named LookupIpaddrgroup
in the Go SDK.
public static class GetIpaddrgroup
{
public static Task<GetIpaddrgroupResult> InvokeAsync(GetIpaddrgroupArgs args, InvokeOptions? opts = null)
public static Output<GetIpaddrgroupResult> Invoke(GetIpaddrgroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpaddrgroupResult> getIpaddrgroup(GetIpaddrgroupArgs args, InvokeOptions options)
public static Output<GetIpaddrgroupResult> getIpaddrgroup(GetIpaddrgroupArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getIpaddrgroup:getIpaddrgroup
arguments:
# arguments dictionary
The following arguments are supported:
- id str
- name str
- Search IpAddrGroup by name.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Search IpAddrGroup by uuid.
getIpaddrgroup Result
The following output properties are available:
- Addrs
List<Get
Ipaddrgroup Addr> - Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<GetIpaddrgroup Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Country
Codes List<string> - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Ip
Ports List<GetIpaddrgroup Ip Port> - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Marathon
App stringName - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Marathon
Service stringPort - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
List<Get
Ipaddrgroup Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Prefixes
List<Get
Ipaddrgroup Prefix> - Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ranges
List<Get
Ipaddrgroup Range> - Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Addrs
[]Get
Ipaddrgroup Addr - Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []GetIpaddrgroup Configpb Attribute - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Country
Codes []string - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Ip
Ports []GetIpaddrgroup Ip Port - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Marathon
App stringName - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Marathon
Service stringPort - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
[]Get
Ipaddrgroup Marker - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Prefixes
[]Get
Ipaddrgroup Prefix - Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ranges
[]Get
Ipaddrgroup Range - Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- addrs
List<Get
Ipaddrgroup Addr> - Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<GetIpaddrgroup Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- country
Codes List<String> - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- ip
Ports List<GetIpaddrgroup Ip Port> - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
App StringName - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
Service StringPort - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
List<Get
Ipaddrgroup Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- prefixes
List<Get
Ipaddrgroup Prefix> - Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ranges
List<Get
Ipaddrgroup Range> - Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- addrs
Get
Ipaddrgroup Addr[] - Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes GetIpaddrgroup Configpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- country
Codes string[] - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- ip
Ports GetIpaddrgroup Ip Port[] - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
App stringName - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
Service stringPort - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Get
Ipaddrgroup Marker[] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name string
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- prefixes
Get
Ipaddrgroup Prefix[] - Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ranges
Get
Ipaddrgroup Range[] - Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- addrs
Sequence[Get
Ipaddrgroup Addr] - Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[GetIpaddrgroup Configpb Attribute] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- country_
codes Sequence[str] - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- ip_
ports Sequence[GetIpaddrgroup Ip Port] - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon_
app_ strname - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon_
service_ strport - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Sequence[Get
Ipaddrgroup Marker] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name str
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- prefixes
Sequence[Get
Ipaddrgroup Prefix] - Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ranges
Sequence[Get
Ipaddrgroup Range] - Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- addrs List<Property Map>
- Configure ip address(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- country
Codes List<String> - Populate the ip address ranges from the geo database for this country. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- ip
Ports List<Property Map> - Configure (ip address, port) tuple(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
App StringName - Populate ip addresses from tasks of this marathon app. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- marathon
Service StringPort - Task port associated with marathon service port. If marathon app has multiple service ports, this is required. Else, the first task port is used. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers List<Property Map>
- List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Name of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- prefixes List<Property Map>
- Configure ip address prefix(es). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ranges List<Property Map>
- Configure ip address range(s). Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Uuid of the ip address group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
GetIpaddrgroupAddr
GetIpaddrgroupConfigpbAttribute
- Version string
- Version string
- version String
- version string
- version str
- version String
GetIpaddrgroupIpPort
- Hostname string
- Ips
List<Get
Ipaddrgroup Ip Port Ip> - Name string
- Search IpAddrGroup by name.
- Port string
- Hostname string
- Ips
[]Get
Ipaddrgroup Ip Port Ip - Name string
- Search IpAddrGroup by name.
- Port string
- hostname String
- ips
List<Get
Ipaddrgroup Ip Port Ip> - name String
- Search IpAddrGroup by name.
- port String
- hostname string
- ips
Get
Ipaddrgroup Ip Port Ip[] - name string
- Search IpAddrGroup by name.
- port string
- hostname str
- ips
Sequence[Get
Ipaddrgroup Ip Port Ip] - name str
- Search IpAddrGroup by name.
- port str
- hostname String
- ips List<Property Map>
- name String
- Search IpAddrGroup by name.
- port String
GetIpaddrgroupIpPortIp
GetIpaddrgroupMarker
GetIpaddrgroupPrefix
- ip
Addrs List<Property Map> - mask String
GetIpaddrgroupPrefixIpAddr
GetIpaddrgroupRange
GetIpaddrgroupRangeBegin
GetIpaddrgroupRangeEnd
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.