1. Packages
  2. Nutanix
  3. API Docs
  4. AddressGroupsV2
Nutanix v0.7.3 published on Thursday, Mar 13, 2025 by Piers Karsenbarg

nutanix.AddressGroupsV2

Explore with Pulumi AI

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
const addressGroupsV2Resource = new nutanix.AddressGroupsV2("addressGroupsV2Resource", {
    description: "string",
    ipRanges: [{
        endIp: "string",
        startIp: "string",
    }],
    ipv4Addresses: [{
        prefixLength: 0,
        value: "string",
    }],
    name: "string",
});
Copy
type: nutanix:AddressGroupsV2
properties:
    description: string
    ipRanges:
        - endIp: string
          startIp: string
    ipv4Addresses:
        - prefixLength: 0
          value: string
    name: string
Copy

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:

Outputs

All input properties are implicitly available as output properties. Additionally, the AddressGroupsV2 resource produces the following output properties:

CreatedBy string
ExtId string
Id string
The provider-assigned unique ID for this managed resource.
Links List<PiersKarsenbarg.Nutanix.Outputs.AddressGroupsV2Link>
PolicyReferences List<string>
TenantId string
CreatedBy string
ExtId string
Id string
The provider-assigned unique ID for this managed resource.
Links []AddressGroupsV2Link
PolicyReferences []string
TenantId string
createdBy String
extId String
id String
The provider-assigned unique ID for this managed resource.
links List<AddressGroupsV2Link>
policyReferences List<String>
tenantId String
createdBy string
extId string
id string
The provider-assigned unique ID for this managed resource.
links AddressGroupsV2Link[]
policyReferences string[]
tenantId string
created_by str
ext_id str
id str
The provider-assigned unique ID for this managed resource.
links Sequence[AddressGroupsV2Link]
policy_references Sequence[str]
tenant_id str
createdBy String
extId String
id String
The provider-assigned unique ID for this managed resource.
links List<Property Map>
policyReferences List<String>
tenantId String

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) -> AddressGroupsV2
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

AddressGroupsV2IpRange
, AddressGroupsV2IpRangeArgs

EndIp string
StartIp string
EndIp string
StartIp string
endIp String
startIp String
endIp string
startIp string
endIp String
startIp String

AddressGroupsV2Ipv4Address
, AddressGroupsV2Ipv4AddressArgs

prefixLength Integer
value String
prefixLength number
value string
prefixLength Number
value String
Href string
Rel string
Href string
Rel string
href String
rel String
href string
rel string
href str
rel str
href String
rel String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.