1. Packages
  2. Nutanix
  3. API Docs
  4. getAddressGroupV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.getAddressGroupV2

Explore with Pulumi AI

Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

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 }}",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

addr_group = nutanix.get_address_group_v2(ext_id="{{ address_group uuid }}")
Copy
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
	})
}
Copy
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 }}",
    });

});
Copy
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());

    }
}
Copy
variables:
  addrGroup:
    fn::invoke:
      function: nutanix:getAddressGroupV2
      arguments:
        extId: '{{ address_group uuid }}'
Copy

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>
Copy
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]
Copy
func GetAddressGroupV2(ctx *Context, args *GetAddressGroupV2Args, opts ...InvokeOption) (*GetAddressGroupV2Result, error)
func GetAddressGroupV2Output(ctx *Context, args *GetAddressGroupV2OutputArgs, opts ...InvokeOption) GetAddressGroupV2ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAddressGroupV2Result> getAddressGroupV2(GetAddressGroupV2Args args, InvokeOptions options)
public static Output<GetAddressGroupV2Result> getAddressGroupV2(GetAddressGroupV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getAddressGroupV2:getAddressGroupV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExtId This property is required. string
Address group UUID.
Ipv4Addresses List<PiersKarsenbarg.Nutanix.Inputs.GetAddressGroupV2Ipv4Address>
List of CIDR blocks in the Address Group.
ExtId This property is required. string
Address group UUID.
Ipv4Addresses []GetAddressGroupV2Ipv4Address
List of CIDR blocks in the Address Group.
extId This property is required. String
Address group UUID.
ipv4Addresses List<GetAddressGroupV2Ipv4Address>
List of CIDR blocks in the Address Group.
extId This property is required. string
Address group UUID.
ipv4Addresses GetAddressGroupV2Ipv4Address[]
List of CIDR blocks in the Address Group.
ext_id This property is required. str
Address group UUID.
ipv4_addresses Sequence[GetAddressGroupV2Ipv4Address]
List of CIDR blocks in the Address Group.
extId This property is required. String
Address group UUID.
ipv4Addresses List<Property Map>
List of CIDR blocks in the Address Group.

getAddressGroupV2 Result

The following output properties are available:

CreatedBy string
created by.
Description string
A user defined annotation for an Address Group.
ExtId string
Id string
The provider-assigned unique ID for this managed resource.
IpRanges List<PiersKarsenbarg.Nutanix.Outputs.GetAddressGroupV2IpRange>
List of IP range containing start and end IP
Ipv4Addresses List<PiersKarsenbarg.Nutanix.Outputs.GetAddressGroupV2Ipv4Address>
List of CIDR blocks in the Address Group.
Links List<PiersKarsenbarg.Nutanix.Outputs.GetAddressGroupV2Link>
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.
PolicyReferences List<string>
Reference to policy associated with Address Group.
TenantId string
A globally unique identifier that represents the tenant that owns this entity.
CreatedBy string
created by.
Description string
A user defined annotation for an Address Group.
ExtId string
Id string
The provider-assigned unique ID for this managed resource.
IpRanges []GetAddressGroupV2IpRange
List of IP range containing start and end IP
Ipv4Addresses []GetAddressGroupV2Ipv4Address
List of CIDR blocks in the Address Group.
Links []GetAddressGroupV2Link
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.
PolicyReferences []string
Reference to policy associated with Address Group.
TenantId string
A globally unique identifier that represents the tenant that owns this entity.
createdBy String
created by.
description String
A user defined annotation for an Address Group.
extId String
id String
The provider-assigned unique ID for this managed resource.
ipRanges List<GetAddressGroupV2IpRange>
List of IP range containing start and end IP
ipv4Addresses List<GetAddressGroupV2Ipv4Address>
List of CIDR blocks in the Address Group.
links List<GetAddressGroupV2Link>
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.
policyReferences List<String>
Reference to policy associated with Address Group.
tenantId String
A globally unique identifier that represents the tenant that owns this entity.
createdBy string
created by.
description string
A user defined annotation for an Address Group.
extId string
id string
The provider-assigned unique ID for this managed resource.
ipRanges GetAddressGroupV2IpRange[]
List of IP range containing start and end IP
ipv4Addresses GetAddressGroupV2Ipv4Address[]
List of CIDR blocks in the Address Group.
links GetAddressGroupV2Link[]
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.
policyReferences string[]
Reference to policy associated with Address Group.
tenantId 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[GetAddressGroupV2IpRange]
List of IP range containing start and end IP
ipv4_addresses Sequence[GetAddressGroupV2Ipv4Address]
List of CIDR blocks in the Address Group.
links Sequence[GetAddressGroupV2Link]
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.
createdBy String
created by.
description String
A user defined annotation for an Address Group.
extId String
id String
The provider-assigned unique ID for this managed resource.
ipRanges 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.
policyReferences List<String>
Reference to policy associated with Address Group.
tenantId String
A globally unique identifier that represents the tenant that owns this entity.

Supporting Types

GetAddressGroupV2IpRange

EndIp This property is required. string
end ip
StartIp This property is required. string
start ip
EndIp This property is required. string
end ip
StartIp This property is required. string
start ip
endIp This property is required. String
end ip
startIp This property is required. String
start ip
endIp This property is required. string
end ip
startIp This property is required. string
start ip
end_ip This property is required. str
end ip
start_ip This property is required. str
start ip
endIp This property is required. String
end ip
startIp This property is required. String
start ip

GetAddressGroupV2Ipv4Address

PrefixLength This property is required. int
The prefix length of the network to which this host IPv4 address belongs.
Value This property is required. string
ip of address
PrefixLength This property is required. int
The prefix length of the network to which this host IPv4 address belongs.
Value This property is required. string
ip of address
prefixLength This property is required. Integer
The prefix length of the network to which this host IPv4 address belongs.
value This property is required. String
ip of address
prefixLength This property is required. number
The prefix length of the network to which this host IPv4 address belongs.
value This property is required. string
ip of address
prefix_length This property is required. int
The prefix length of the network to which this host IPv4 address belongs.
value This property is required. str
ip of address
prefixLength This property is required. Number
The prefix length of the network to which this host IPv4 address belongs.
value This property is required. String
ip of address
Href This property is required. string
Rel This property is required. string
Href This property is required. string
Rel This property is required. string
href This property is required. String
rel This property is required. String
href This property is required. string
rel This property is required. string
href This property is required. str
rel This property is required. str
href This property is required. String
rel This property is required. String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg