published on Tuesday, Apr 28, 2026 by Piers Karsenbarg
published on Tuesday, Apr 28, 2026 by Piers Karsenbarg
Create an Address Group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// Create Address group with ipv4 addresses
const ipv4_address = new nutanix.AddressGroupsV2("ipv4-address", {
name: "address_group_ipv4_address",
description: "address group description",
ipv4Addresses: [
{
value: "10.0.0.0",
prefixLength: 24,
},
{
value: "172.0.0.0",
prefixLength: 24,
},
],
});
// Create Address group. with ip range
const ip_ranges = new nutanix.AddressGroupsV2("ip-ranges", {
name: "address_group_ip_ranges",
description: "address group description",
ipRanges: [{
startIp: "10.0.0.1",
endIp: "10.0.0.10",
}],
});
import pulumi
import pulumi_nutanix as nutanix
# Create Address group with ipv4 addresses
ipv4_address = nutanix.AddressGroupsV2("ipv4-address",
name="address_group_ipv4_address",
description="address group description",
ipv4_addresses=[
{
"value": "10.0.0.0",
"prefix_length": 24,
},
{
"value": "172.0.0.0",
"prefix_length": 24,
},
])
# Create Address group. with ip range
ip_ranges = nutanix.AddressGroupsV2("ip-ranges",
name="address_group_ip_ranges",
description="address group description",
ip_ranges=[{
"start_ip": "10.0.0.1",
"end_ip": "10.0.0.10",
}])
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 {
// Create Address group with ipv4 addresses
_, err := nutanix.NewAddressGroupsV2(ctx, "ipv4-address", &nutanix.AddressGroupsV2Args{
Name: pulumi.String("address_group_ipv4_address"),
Description: pulumi.String("address group description"),
Ipv4Addresses: nutanix.AddressGroupsV2Ipv4AddressArray{
&nutanix.AddressGroupsV2Ipv4AddressArgs{
Value: pulumi.String("10.0.0.0"),
PrefixLength: pulumi.Int(24),
},
&nutanix.AddressGroupsV2Ipv4AddressArgs{
Value: pulumi.String("172.0.0.0"),
PrefixLength: pulumi.Int(24),
},
},
})
if err != nil {
return err
}
// Create Address group. with ip range
_, err = nutanix.NewAddressGroupsV2(ctx, "ip-ranges", &nutanix.AddressGroupsV2Args{
Name: pulumi.String("address_group_ip_ranges"),
Description: pulumi.String("address group description"),
IpRanges: nutanix.AddressGroupsV2IpRangeArray{
&nutanix.AddressGroupsV2IpRangeArgs{
StartIp: pulumi.String("10.0.0.1"),
EndIp: pulumi.String("10.0.0.10"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
// Create Address group with ipv4 addresses
var ipv4_address = new Nutanix.Index.AddressGroupsV2("ipv4-address", new()
{
Name = "address_group_ipv4_address",
Description = "address group description",
Ipv4Addresses = new[]
{
new Nutanix.Inputs.AddressGroupsV2Ipv4AddressArgs
{
Value = "10.0.0.0",
PrefixLength = 24,
},
new Nutanix.Inputs.AddressGroupsV2Ipv4AddressArgs
{
Value = "172.0.0.0",
PrefixLength = 24,
},
},
});
// Create Address group. with ip range
var ip_ranges = new Nutanix.Index.AddressGroupsV2("ip-ranges", new()
{
Name = "address_group_ip_ranges",
Description = "address group description",
IpRanges = new[]
{
new Nutanix.Inputs.AddressGroupsV2IpRangeArgs
{
StartIp = "10.0.0.1",
EndIp = "10.0.0.10",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.AddressGroupsV2;
import com.pulumi.nutanix.AddressGroupsV2Args;
import com.pulumi.nutanix.inputs.AddressGroupsV2Ipv4AddressArgs;
import com.pulumi.nutanix.inputs.AddressGroupsV2IpRangeArgs;
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) {
// Create Address group with ipv4 addresses
var ipv4_address = new AddressGroupsV2("ipv4-address", AddressGroupsV2Args.builder()
.name("address_group_ipv4_address")
.description("address group description")
.ipv4Addresses(
AddressGroupsV2Ipv4AddressArgs.builder()
.value("10.0.0.0")
.prefixLength(24)
.build(),
AddressGroupsV2Ipv4AddressArgs.builder()
.value("172.0.0.0")
.prefixLength(24)
.build())
.build());
// Create Address group. with ip range
var ip_ranges = new AddressGroupsV2("ip-ranges", AddressGroupsV2Args.builder()
.name("address_group_ip_ranges")
.description("address group description")
.ipRanges(AddressGroupsV2IpRangeArgs.builder()
.startIp("10.0.0.1")
.endIp("10.0.0.10")
.build())
.build());
}
}
resources:
# Create Address group with ipv4 addresses
ipv4-address:
type: nutanix:AddressGroupsV2
properties:
name: address_group_ipv4_address
description: address group description
ipv4Addresses:
- value: 10.0.0.0
prefixLength: 24
- value: 172.0.0.0
prefixLength: 24
# Create Address group. with ip range
ip-ranges:
type: nutanix:AddressGroupsV2
properties:
name: address_group_ip_ranges
description: address group description
ipRanges:
- startIp: 10.0.0.1
endIp: 10.0.0.10
Create AddressGroupsV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AddressGroupsV2(name: string, args?: AddressGroupsV2Args, opts?: CustomResourceOptions);@overload
def AddressGroupsV2(resource_name: str,
args: Optional[AddressGroupsV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AddressGroupsV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_ranges: Optional[Sequence[AddressGroupsV2IpRangeArgs]] = None,
ipv4_addresses: Optional[Sequence[AddressGroupsV2Ipv4AddressArgs]] = None,
name: Optional[str] = None)func NewAddressGroupsV2(ctx *Context, name string, args *AddressGroupsV2Args, opts ...ResourceOption) (*AddressGroupsV2, error)public AddressGroupsV2(string name, AddressGroupsV2Args? args = null, CustomResourceOptions? opts = null)
public AddressGroupsV2(String name, AddressGroupsV2Args args)
public AddressGroupsV2(String name, AddressGroupsV2Args args, CustomResourceOptions options)
type: nutanix:AddressGroupsV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var addressGroupsV2Resource = new Nutanix.AddressGroupsV2("addressGroupsV2Resource", new()
{
Description = "string",
IpRanges = new[]
{
new Nutanix.Inputs.AddressGroupsV2IpRangeArgs
{
EndIp = "string",
StartIp = "string",
},
},
Ipv4Addresses = new[]
{
new Nutanix.Inputs.AddressGroupsV2Ipv4AddressArgs
{
PrefixLength = 0,
Value = "string",
},
},
Name = "string",
});
example, err := nutanix.NewAddressGroupsV2(ctx, "addressGroupsV2Resource", &nutanix.AddressGroupsV2Args{
Description: pulumi.String("string"),
IpRanges: nutanix.AddressGroupsV2IpRangeArray{
&nutanix.AddressGroupsV2IpRangeArgs{
EndIp: pulumi.String("string"),
StartIp: pulumi.String("string"),
},
},
Ipv4Addresses: nutanix.AddressGroupsV2Ipv4AddressArray{
&nutanix.AddressGroupsV2Ipv4AddressArgs{
PrefixLength: pulumi.Int(0),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var addressGroupsV2Resource = new AddressGroupsV2("addressGroupsV2Resource", AddressGroupsV2Args.builder()
.description("string")
.ipRanges(AddressGroupsV2IpRangeArgs.builder()
.endIp("string")
.startIp("string")
.build())
.ipv4Addresses(AddressGroupsV2Ipv4AddressArgs.builder()
.prefixLength(0)
.value("string")
.build())
.name("string")
.build());
address_groups_v2_resource = nutanix.AddressGroupsV2("addressGroupsV2Resource",
description="string",
ip_ranges=[{
"end_ip": "string",
"start_ip": "string",
}],
ipv4_addresses=[{
"prefix_length": 0,
"value": "string",
}],
name="string")
const addressGroupsV2Resource = new nutanix.AddressGroupsV2("addressGroupsV2Resource", {
description: "string",
ipRanges: [{
endIp: "string",
startIp: "string",
}],
ipv4Addresses: [{
prefixLength: 0,
value: "string",
}],
name: "string",
});
type: nutanix:AddressGroupsV2
properties:
description: string
ipRanges:
- endIp: string
startIp: string
ipv4Addresses:
- prefixLength: 0
value: string
name: string
AddressGroupsV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AddressGroupsV2 resource accepts the following input properties:
- Description string
- (Optional) Description of the Address group
- Ip
Ranges List<PiersKarsenbarg. Nutanix. Inputs. Address Groups V2Ip Range> - (Optional) List of IP range containing start and end IP.
- Ipv4Addresses
List<Piers
Karsenbarg. Nutanix. Inputs. Address Groups V2Ipv4Address> - (Optional) List of CIDR blocks in the Address Group.
- Name string
- (Required) Name of the Address group
- Description string
- (Optional) Description of the Address group
- Ip
Ranges []AddressGroups V2Ip Range Args - (Optional) List of IP range containing start and end IP.
- Ipv4Addresses
[]Address
Groups V2Ipv4Address Args - (Optional) List of CIDR blocks in the Address Group.
- Name string
- (Required) Name of the Address group
- description String
- (Optional) Description of the Address group
- ip
Ranges List<AddressGroups V2Ip Range> - (Optional) List of IP range containing start and end IP.
- ipv4Addresses
List<Address
Groups V2Ipv4Address> - (Optional) List of CIDR blocks in the Address Group.
- name String
- (Required) Name of the Address group
- description string
- (Optional) Description of the Address group
- ip
Ranges AddressGroups V2Ip Range[] - (Optional) List of IP range containing start and end IP.
- ipv4Addresses
Address
Groups V2Ipv4Address[] - (Optional) List of CIDR blocks in the Address Group.
- name string
- (Required) Name of the Address group
- description str
- (Optional) Description of the Address group
- ip_
ranges Sequence[AddressGroups V2Ip Range Args] - (Optional) List of IP range containing start and end IP.
- ipv4_
addresses Sequence[AddressGroups V2Ipv4Address Args] - (Optional) List of CIDR blocks in the Address Group.
- name str
- (Required) Name of the Address group
- description String
- (Optional) Description of the Address group
- ip
Ranges List<Property Map> - (Optional) List of IP range containing start and end IP.
- ipv4Addresses List<Property Map>
- (Optional) List of CIDR blocks in the Address Group.
- name String
- (Required) Name of the Address group
Outputs
All input properties are implicitly available as output properties. Additionally, the AddressGroupsV2 resource produces the following output properties:
- Created
By string - created by.
- Ext
Id string - address group uuid.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Address Groups 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.
- 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.
- Ext
Id string - address group uuid.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Address
Groups 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.
- 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.
- ext
Id String - address group uuid.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Address
Groups 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.
- 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.
- ext
Id string - address group uuid.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Address
Groups 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.
- 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.
- ext_
id str - address group uuid.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Address
Groups 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.
- 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.
- ext
Id String - address group uuid.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- 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.
Look up Existing AddressGroupsV2 Resource
Get an existing AddressGroupsV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AddressGroupsV2State, opts?: CustomResourceOptions): AddressGroupsV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
ext_id: Optional[str] = None,
ip_ranges: Optional[Sequence[AddressGroupsV2IpRangeArgs]] = None,
ipv4_addresses: Optional[Sequence[AddressGroupsV2Ipv4AddressArgs]] = None,
links: Optional[Sequence[AddressGroupsV2LinkArgs]] = None,
name: Optional[str] = None,
policy_references: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None) -> AddressGroupsV2func GetAddressGroupsV2(ctx *Context, name string, id IDInput, state *AddressGroupsV2State, opts ...ResourceOption) (*AddressGroupsV2, error)public static AddressGroupsV2 Get(string name, Input<string> id, AddressGroupsV2State? state, CustomResourceOptions? opts = null)public static AddressGroupsV2 get(String name, Output<String> id, AddressGroupsV2State state, CustomResourceOptions options)resources: _: type: nutanix:AddressGroupsV2 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
By string - created by.
- Description string
- (Optional) Description of the Address group
- Ext
Id string - address group uuid.
- Ip
Ranges List<PiersKarsenbarg. Nutanix. Inputs. Address Groups V2Ip Range> - (Optional) List of IP range containing start and end IP.
- Ipv4Addresses
List<Piers
Karsenbarg. Nutanix. Inputs. Address Groups V2Ipv4Address> - (Optional) List of CIDR blocks in the Address Group.
- Links
List<Piers
Karsenbarg. Nutanix. Inputs. Address Groups 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
- (Required) Name of the 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
- (Optional) Description of the Address group
- Ext
Id string - address group uuid.
- Ip
Ranges []AddressGroups V2Ip Range Args - (Optional) List of IP range containing start and end IP.
- Ipv4Addresses
[]Address
Groups V2Ipv4Address Args - (Optional) List of CIDR blocks in the Address Group.
- Links
[]Address
Groups V2Link Args - 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
- (Required) Name of the 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
- (Optional) Description of the Address group
- ext
Id String - address group uuid.
- ip
Ranges List<AddressGroups V2Ip Range> - (Optional) List of IP range containing start and end IP.
- ipv4Addresses
List<Address
Groups V2Ipv4Address> - (Optional) List of CIDR blocks in the Address Group.
- links
List<Address
Groups 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
- (Required) Name of the 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
- (Optional) Description of the Address group
- ext
Id string - address group uuid.
- ip
Ranges AddressGroups V2Ip Range[] - (Optional) List of IP range containing start and end IP.
- ipv4Addresses
Address
Groups V2Ipv4Address[] - (Optional) List of CIDR blocks in the Address Group.
- links
Address
Groups 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
- (Required) Name of the 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
- (Optional) Description of the Address group
- ext_
id str - address group uuid.
- ip_
ranges Sequence[AddressGroups V2Ip Range Args] - (Optional) List of IP range containing start and end IP.
- ipv4_
addresses Sequence[AddressGroups V2Ipv4Address Args] - (Optional) List of CIDR blocks in the Address Group.
- links
Sequence[Address
Groups V2Link Args] - 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
- (Required) Name of the 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
- (Optional) Description of the Address group
- ext
Id String - address group uuid.
- ip
Ranges List<Property Map> - (Optional) List of IP range containing start and end IP.
- ipv4Addresses List<Property Map>
- (Optional) 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
- (Required) Name of the 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
AddressGroupsV2IpRange, AddressGroupsV2IpRangeArgs
AddressGroupsV2Ipv4Address, AddressGroupsV2Ipv4AddressArgs
- 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
AddressGroupsV2Link, AddressGroupsV2LinkArgs
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
published on Tuesday, Apr 28, 2026 by Piers Karsenbarg
