Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getAddressGroupV2
Explore with Pulumi AI
Get an Address Group by ExtID
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const addrGroup = nutanix.getAddressGroupV2({
    extId: "{{ address_group uuid }}",
});
import pulumi
import pulumi_nutanix as nutanix
addr_group = nutanix.get_address_group_v2(ext_id="{{ address_group uuid }}")
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.GetAddressGroupV2(ctx, &nutanix.GetAddressGroupV2Args{
			ExtId: "{{ address_group uuid }}",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() => 
{
    var addrGroup = Nutanix.GetAddressGroupV2.Invoke(new()
    {
        ExtId = "{{ address_group uuid }}",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetAddressGroupV2Args;
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 addrGroup = NutanixFunctions.getAddressGroupV2(GetAddressGroupV2Args.builder()
            .extId("{{ address_group uuid }}")
            .build());
    }
}
variables:
  addrGroup:
    fn::invoke:
      function: nutanix:getAddressGroupV2
      arguments:
        extId: '{{ address_group uuid }}'
Using getAddressGroupV2
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 getAddressGroupV2(args: GetAddressGroupV2Args, opts?: InvokeOptions): Promise<GetAddressGroupV2Result>
function getAddressGroupV2Output(args: GetAddressGroupV2OutputArgs, opts?: InvokeOptions): Output<GetAddressGroupV2Result>def get_address_group_v2(ext_id: Optional[str] = None,
                         ipv4_addresses: Optional[Sequence[GetAddressGroupV2Ipv4Address]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAddressGroupV2Result
def get_address_group_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
                         ipv4_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[GetAddressGroupV2Ipv4AddressArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAddressGroupV2Result]func GetAddressGroupV2(ctx *Context, args *GetAddressGroupV2Args, opts ...InvokeOption) (*GetAddressGroupV2Result, error)
func GetAddressGroupV2Output(ctx *Context, args *GetAddressGroupV2OutputArgs, opts ...InvokeOption) GetAddressGroupV2ResultOutput> Note: This function is named GetAddressGroupV2 in the Go SDK.
public static class GetAddressGroupV2 
{
    public static Task<GetAddressGroupV2Result> InvokeAsync(GetAddressGroupV2Args args, InvokeOptions? opts = null)
    public static Output<GetAddressGroupV2Result> Invoke(GetAddressGroupV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddressGroupV2Result> getAddressGroupV2(GetAddressGroupV2Args args, InvokeOptions options)
public static Output<GetAddressGroupV2Result> getAddressGroupV2(GetAddressGroupV2Args args, InvokeOptions options)
fn::invoke:
  function: nutanix:index/getAddressGroupV2:getAddressGroupV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ext
Id string - Address group UUID.
 - Ipv4Addresses
List<Piers
Karsenbarg. Nutanix. Inputs. Get Address Group V2Ipv4Address>  - List of CIDR blocks in the Address Group.
 
- Ext
Id string - Address group UUID.
 - Ipv4Addresses
[]Get
Address Group V2Ipv4Address  - List of CIDR blocks in the Address Group.
 
- ext
Id String - Address group UUID.
 - ipv4Addresses
List<Get
Address Group V2Ipv4Address>  - List of CIDR blocks in the Address Group.
 
- ext
Id string - Address group UUID.
 - ipv4Addresses
Get
Address Group V2Ipv4Address[]  - List of CIDR blocks in the Address Group.
 
- ext_
id str - Address group UUID.
 - ipv4_
addresses Sequence[GetAddress Group V2Ipv4Address]  - List of CIDR blocks in the Address Group.
 
- ext
Id String - Address group UUID.
 - ipv4Addresses List<Property Map>
 - List of CIDR blocks in the Address Group.
 
getAddressGroupV2 Result
The following output properties are available:
- Created
By string - created by.
 - Description string
 - A user defined annotation for an Address Group.
 - Ext
Id string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ip
Ranges List<PiersKarsenbarg. Nutanix. Outputs. Get Address Group V2Ip Range>  - List of IP range containing start and end IP
 - Ipv4Addresses
List<Piers
Karsenbarg. Nutanix. Outputs. Get Address Group V2Ipv4Address>  - List of CIDR blocks in the Address Group.
 - Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Address Group V2Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - Name string
 - A short identifier for an Address Group.
 - Policy
References List<string> - Reference to policy associated with Address Group.
 - Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
 
- Created
By string - created by.
 - Description string
 - A user defined annotation for an Address Group.
 - Ext
Id string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ip
Ranges []GetAddress Group V2Ip Range  - List of IP range containing start and end IP
 - Ipv4Addresses
[]Get
Address Group V2Ipv4Address  - List of CIDR blocks in the Address Group.
 - Links
[]Get
Address Group V2Link  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - Name string
 - A short identifier for an Address Group.
 - Policy
References []string - Reference to policy associated with Address Group.
 - Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
 
- created
By String - created by.
 - description String
 - A user defined annotation for an Address Group.
 - ext
Id String - id String
 - The provider-assigned unique ID for this managed resource.
 - ip
Ranges List<GetAddress Group V2Ip Range>  - List of IP range containing start and end IP
 - ipv4Addresses
List<Get
Address Group V2Ipv4Address>  - List of CIDR blocks in the Address Group.
 - links
List<Get
Address Group V2Link>  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - name String
 - A short identifier for an Address Group.
 - policy
References List<String> - Reference to policy associated with Address Group.
 - tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
 
- created
By string - created by.
 - description string
 - A user defined annotation for an Address Group.
 - ext
Id string - id string
 - The provider-assigned unique ID for this managed resource.
 - ip
Ranges GetAddress Group V2Ip Range[]  - List of IP range containing start and end IP
 - ipv4Addresses
Get
Address Group V2Ipv4Address[]  - List of CIDR blocks in the Address Group.
 - links
Get
Address Group V2Link[]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - name string
 - A short identifier for an Address Group.
 - policy
References string[] - Reference to policy associated with Address Group.
 - tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
 
- created_
by str - created by.
 - description str
 - A user defined annotation for an Address Group.
 - ext_
id str - id str
 - The provider-assigned unique ID for this managed resource.
 - ip_
ranges Sequence[GetAddress Group V2Ip Range]  - List of IP range containing start and end IP
 - ipv4_
addresses Sequence[GetAddress Group V2Ipv4Address]  - List of CIDR blocks in the Address Group.
 - links
Sequence[Get
Address Group V2Link]  - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - name str
 - A short identifier for an Address Group.
 - policy_
references Sequence[str] - Reference to policy associated with Address Group.
 - tenant_
id str - A globally unique identifier that represents the tenant that owns this entity.
 
- created
By String - created by.
 - description String
 - A user defined annotation for an Address Group.
 - ext
Id String - id String
 - The provider-assigned unique ID for this managed resource.
 - ip
Ranges List<Property Map> - List of IP range containing start and end IP
 - ipv4Addresses List<Property Map>
 - List of CIDR blocks in the Address Group.
 - links List<Property Map>
 - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
 - name String
 - A short identifier for an Address Group.
 - policy
References List<String> - Reference to policy associated with Address Group.
 - tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
 
Supporting Types
GetAddressGroupV2IpRange    
GetAddressGroupV2Ipv4Address   
- Prefix
Length int - The prefix length of the network to which this host IPv4 address belongs.
 - Value string
 - ip of address
 
- Prefix
Length int - The prefix length of the network to which this host IPv4 address belongs.
 - Value string
 - ip of address
 
- prefix
Length Integer - The prefix length of the network to which this host IPv4 address belongs.
 - value String
 - ip of address
 
- prefix
Length number - The prefix length of the network to which this host IPv4 address belongs.
 - value string
 - ip of address
 
- prefix_
length int - The prefix length of the network to which this host IPv4 address belongs.
 - value str
 - ip of address
 
- prefix
Length Number - The prefix length of the network to which this host IPv4 address belongs.
 - value String
 - ip of address
 
GetAddressGroupV2Link   
Package Details
- Repository
 - nutanix pierskarsenbarg/pulumi-nutanix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
nutanixTerraform Provider.