1. Packages
  2. Vra Provider
  3. API Docs
  4. NetworkIpRange
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.NetworkIpRange

Explore with Pulumi AI

Creates a VMware vRealize Automation network_ip_range resource.

Example Usage

S

Create vRA Network IP range resource:

This is an example of how to create a vRA Network IP range resource.

import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";

const _this = new vra.NetworkIpRange("this", {
    description: "Internal Network IP Range Example",
    startIpAddress: _var.start_ip,
    endIpAddress: _var.end_ip,
    ipVersion: _var.ip_version,
    fabricNetworkIds: [data.fabric_network.subnet.id],
    tags: [{
        key: "foo",
        value: "bar",
    }],
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.NetworkIpRange("this",
    description="Internal Network IP Range Example",
    start_ip_address=var["start_ip"],
    end_ip_address=var["end_ip"],
    ip_version=var["ip_version"],
    fabric_network_ids=[data["fabric_network"]["subnet"]["id"]],
    tags=[{
        "key": "foo",
        "value": "bar",
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vra.NewNetworkIpRange(ctx, "this", &vra.NetworkIpRangeArgs{
			Description:    pulumi.String("Internal Network IP Range Example"),
			StartIpAddress: pulumi.Any(_var.Start_ip),
			EndIpAddress:   pulumi.Any(_var.End_ip),
			IpVersion:      pulumi.Any(_var.Ip_version),
			FabricNetworkIds: pulumi.StringArray{
				data.Fabric_network.Subnet.Id,
			},
			Tags: vra.NetworkIpRangeTagArray{
				&vra.NetworkIpRangeTagArgs{
					Key:   pulumi.String("foo"),
					Value: pulumi.String("bar"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;

return await Deployment.RunAsync(() => 
{
    var @this = new Vra.NetworkIpRange("this", new()
    {
        Description = "Internal Network IP Range Example",
        StartIpAddress = @var.Start_ip,
        EndIpAddress = @var.End_ip,
        IpVersion = @var.Ip_version,
        FabricNetworkIds = new[]
        {
            data.Fabric_network.Subnet.Id,
        },
        Tags = new[]
        {
            new Vra.Inputs.NetworkIpRangeTagArgs
            {
                Key = "foo",
                Value = "bar",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.NetworkIpRange;
import com.pulumi.vra.NetworkIpRangeArgs;
import com.pulumi.vra.inputs.NetworkIpRangeTagArgs;
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) {
        var this_ = new NetworkIpRange("this", NetworkIpRangeArgs.builder()
            .description("Internal Network IP Range Example")
            .startIpAddress(var_.start_ip())
            .endIpAddress(var_.end_ip())
            .ipVersion(var_.ip_version())
            .fabricNetworkIds(data.fabric_network().subnet().id())
            .tags(NetworkIpRangeTagArgs.builder()
                .key("foo")
                .value("bar")
                .build())
            .build());

    }
}
Copy
resources:
  this:
    type: vra:NetworkIpRange
    properties:
      description: Internal Network IP Range Example
      startIpAddress: ${var.start_ip}
      endIpAddress: ${var.end_ip}
      ipVersion: ${var.ip_version}
      fabricNetworkIds:
        - ${data.fabric_network.subnet.id}
      tags:
        - key: foo
          value: bar
Copy

Create NetworkIpRange Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new NetworkIpRange(name: string, args: NetworkIpRangeArgs, opts?: CustomResourceOptions);
@overload
def NetworkIpRange(resource_name: str,
                   args: NetworkIpRangeArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def NetworkIpRange(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   end_ip_address: Optional[str] = None,
                   ip_version: Optional[str] = None,
                   start_ip_address: Optional[str] = None,
                   description: Optional[str] = None,
                   fabric_network_id: Optional[str] = None,
                   fabric_network_ids: Optional[Sequence[str]] = None,
                   name: Optional[str] = None,
                   network_ip_range_id: Optional[str] = None,
                   tags: Optional[Sequence[NetworkIpRangeTagArgs]] = None)
func NewNetworkIpRange(ctx *Context, name string, args NetworkIpRangeArgs, opts ...ResourceOption) (*NetworkIpRange, error)
public NetworkIpRange(string name, NetworkIpRangeArgs args, CustomResourceOptions? opts = null)
public NetworkIpRange(String name, NetworkIpRangeArgs args)
public NetworkIpRange(String name, NetworkIpRangeArgs args, CustomResourceOptions options)
type: vra:NetworkIpRange
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 This property is required. NetworkIpRangeArgs
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 This property is required. NetworkIpRangeArgs
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 This property is required. NetworkIpRangeArgs
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 This property is required. NetworkIpRangeArgs
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. NetworkIpRangeArgs
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 networkIpRangeResource = new Vra.NetworkIpRange("networkIpRangeResource", new()
{
    EndIpAddress = "string",
    IpVersion = "string",
    StartIpAddress = "string",
    Description = "string",
    FabricNetworkIds = new[]
    {
        "string",
    },
    Name = "string",
    NetworkIpRangeId = "string",
    Tags = new[]
    {
        new Vra.Inputs.NetworkIpRangeTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
Copy
example, err := vra.NewNetworkIpRange(ctx, "networkIpRangeResource", &vra.NetworkIpRangeArgs{
EndIpAddress: pulumi.String("string"),
IpVersion: pulumi.String("string"),
StartIpAddress: pulumi.String("string"),
Description: pulumi.String("string"),
FabricNetworkIds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
NetworkIpRangeId: pulumi.String("string"),
Tags: .NetworkIpRangeTagArray{
&.NetworkIpRangeTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
Copy
var networkIpRangeResource = new NetworkIpRange("networkIpRangeResource", NetworkIpRangeArgs.builder()
    .endIpAddress("string")
    .ipVersion("string")
    .startIpAddress("string")
    .description("string")
    .fabricNetworkIds("string")
    .name("string")
    .networkIpRangeId("string")
    .tags(NetworkIpRangeTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
Copy
network_ip_range_resource = vra.NetworkIpRange("networkIpRangeResource",
    end_ip_address="string",
    ip_version="string",
    start_ip_address="string",
    description="string",
    fabric_network_ids=["string"],
    name="string",
    network_ip_range_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
Copy
const networkIpRangeResource = new vra.NetworkIpRange("networkIpRangeResource", {
    endIpAddress: "string",
    ipVersion: "string",
    startIpAddress: "string",
    description: "string",
    fabricNetworkIds: ["string"],
    name: "string",
    networkIpRangeId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
Copy
type: vra:NetworkIpRange
properties:
    description: string
    endIpAddress: string
    fabricNetworkIds:
        - string
    ipVersion: string
    name: string
    networkIpRangeId: string
    startIpAddress: string
    tags:
        - key: string
          value: string
Copy

NetworkIpRange 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 NetworkIpRange resource accepts the following input properties:

EndIpAddress This property is required. string
End IP address of the range.
IpVersion This property is required. string
IP address version: IPv4 or IPv6.
StartIpAddress This property is required. string
Start IP address of the range.
Description string
A human-friendly description.
FabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

FabricNetworkIds List<string>
The Ids of the fabric networks.
Name string
The name of the network IP range.
NetworkIpRangeId string
ID of the network IP range
Tags List<NetworkIpRangeTag>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
EndIpAddress This property is required. string
End IP address of the range.
IpVersion This property is required. string
IP address version: IPv4 or IPv6.
StartIpAddress This property is required. string
Start IP address of the range.
Description string
A human-friendly description.
FabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

FabricNetworkIds []string
The Ids of the fabric networks.
Name string
The name of the network IP range.
NetworkIpRangeId string
ID of the network IP range
Tags []NetworkIpRangeTagArgs
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
endIpAddress This property is required. String
End IP address of the range.
ipVersion This property is required. String
IP address version: IPv4 or IPv6.
startIpAddress This property is required. String
Start IP address of the range.
description String
A human-friendly description.
fabricNetworkId String
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds List<String>
The Ids of the fabric networks.
name String
The name of the network IP range.
networkIpRangeId String
ID of the network IP range
tags List<NetworkIpRangeTag>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
endIpAddress This property is required. string
End IP address of the range.
ipVersion This property is required. string
IP address version: IPv4 or IPv6.
startIpAddress This property is required. string
Start IP address of the range.
description string
A human-friendly description.
fabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds string[]
The Ids of the fabric networks.
name string
The name of the network IP range.
networkIpRangeId string
ID of the network IP range
tags NetworkIpRangeTag[]
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
end_ip_address This property is required. str
End IP address of the range.
ip_version This property is required. str
IP address version: IPv4 or IPv6.
start_ip_address This property is required. str
Start IP address of the range.
description str
A human-friendly description.
fabric_network_id str
The Id of the fabric network.

Deprecated: Deprecated

fabric_network_ids Sequence[str]
The Ids of the fabric networks.
name str
The name of the network IP range.
network_ip_range_id str
ID of the network IP range
tags Sequence[NetworkIpRangeTagArgs]
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
endIpAddress This property is required. String
End IP address of the range.
ipVersion This property is required. String
IP address version: IPv4 or IPv6.
startIpAddress This property is required. String
Start IP address of the range.
description String
A human-friendly description.
fabricNetworkId String
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds List<String>
The Ids of the fabric networks.
name String
The name of the network IP range.
networkIpRangeId String
ID of the network IP range
tags List<Property Map>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]

Outputs

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

CreatedAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
ExternalId string
External entity Id on the provider side.
Id string
The provider-assigned unique ID for this managed resource.
Links List<NetworkIpRangeLink>
HATEOAS of the entity
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
CreatedAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
ExternalId string
External entity Id on the provider side.
Id string
The provider-assigned unique ID for this managed resource.
Links []NetworkIpRangeLink
HATEOAS of the entity
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt String
Date when the entity was created. The date is in ISO 8601 and UTC.
externalId String
External entity Id on the provider side.
id String
The provider-assigned unique ID for this managed resource.
links List<NetworkIpRangeLink>
HATEOAS of the entity
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
externalId string
External entity Id on the provider side.
id string
The provider-assigned unique ID for this managed resource.
links NetworkIpRangeLink[]
HATEOAS of the entity
orgId string
The id of the organization this entity belongs to.
owner string
Email of the user that owns the entity.
updatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
created_at str
Date when the entity was created. The date is in ISO 8601 and UTC.
external_id str
External entity Id on the provider side.
id str
The provider-assigned unique ID for this managed resource.
links Sequence[NetworkIpRangeLink]
HATEOAS of the entity
org_id str
The id of the organization this entity belongs to.
owner str
Email of the user that owns the entity.
updated_at str
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt String
Date when the entity was created. The date is in ISO 8601 and UTC.
externalId String
External entity Id on the provider side.
id String
The provider-assigned unique ID for this managed resource.
links List<Property Map>
HATEOAS of the entity
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.

Look up Existing NetworkIpRange Resource

Get an existing NetworkIpRange 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?: NetworkIpRangeState, opts?: CustomResourceOptions): NetworkIpRange
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        end_ip_address: Optional[str] = None,
        external_id: Optional[str] = None,
        fabric_network_id: Optional[str] = None,
        fabric_network_ids: Optional[Sequence[str]] = None,
        ip_version: Optional[str] = None,
        links: Optional[Sequence[NetworkIpRangeLinkArgs]] = None,
        name: Optional[str] = None,
        network_ip_range_id: Optional[str] = None,
        org_id: Optional[str] = None,
        owner: Optional[str] = None,
        start_ip_address: Optional[str] = None,
        tags: Optional[Sequence[NetworkIpRangeTagArgs]] = None,
        updated_at: Optional[str] = None) -> NetworkIpRange
func GetNetworkIpRange(ctx *Context, name string, id IDInput, state *NetworkIpRangeState, opts ...ResourceOption) (*NetworkIpRange, error)
public static NetworkIpRange Get(string name, Input<string> id, NetworkIpRangeState? state, CustomResourceOptions? opts = null)
public static NetworkIpRange get(String name, Output<String> id, NetworkIpRangeState state, CustomResourceOptions options)
resources:  _:    type: vra:NetworkIpRange    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.
The following state arguments are supported:
CreatedAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
Description string
A human-friendly description.
EndIpAddress string
End IP address of the range.
ExternalId string
External entity Id on the provider side.
FabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

FabricNetworkIds List<string>
The Ids of the fabric networks.
IpVersion string
IP address version: IPv4 or IPv6.
Links List<NetworkIpRangeLink>
HATEOAS of the entity
Name string
The name of the network IP range.
NetworkIpRangeId string
ID of the network IP range
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
StartIpAddress string
Start IP address of the range.
Tags List<NetworkIpRangeTag>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
CreatedAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
Description string
A human-friendly description.
EndIpAddress string
End IP address of the range.
ExternalId string
External entity Id on the provider side.
FabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

FabricNetworkIds []string
The Ids of the fabric networks.
IpVersion string
IP address version: IPv4 or IPv6.
Links []NetworkIpRangeLinkArgs
HATEOAS of the entity
Name string
The name of the network IP range.
NetworkIpRangeId string
ID of the network IP range
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
StartIpAddress string
Start IP address of the range.
Tags []NetworkIpRangeTagArgs
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt String
Date when the entity was created. The date is in ISO 8601 and UTC.
description String
A human-friendly description.
endIpAddress String
End IP address of the range.
externalId String
External entity Id on the provider side.
fabricNetworkId String
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds List<String>
The Ids of the fabric networks.
ipVersion String
IP address version: IPv4 or IPv6.
links List<NetworkIpRangeLink>
HATEOAS of the entity
name String
The name of the network IP range.
networkIpRangeId String
ID of the network IP range
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
startIpAddress String
Start IP address of the range.
tags List<NetworkIpRangeTag>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt string
Date when the entity was created. The date is in ISO 8601 and UTC.
description string
A human-friendly description.
endIpAddress string
End IP address of the range.
externalId string
External entity Id on the provider side.
fabricNetworkId string
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds string[]
The Ids of the fabric networks.
ipVersion string
IP address version: IPv4 or IPv6.
links NetworkIpRangeLink[]
HATEOAS of the entity
name string
The name of the network IP range.
networkIpRangeId string
ID of the network IP range
orgId string
The id of the organization this entity belongs to.
owner string
Email of the user that owns the entity.
startIpAddress string
Start IP address of the range.
tags NetworkIpRangeTag[]
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
updatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
created_at str
Date when the entity was created. The date is in ISO 8601 and UTC.
description str
A human-friendly description.
end_ip_address str
End IP address of the range.
external_id str
External entity Id on the provider side.
fabric_network_id str
The Id of the fabric network.

Deprecated: Deprecated

fabric_network_ids Sequence[str]
The Ids of the fabric networks.
ip_version str
IP address version: IPv4 or IPv6.
links Sequence[NetworkIpRangeLinkArgs]
HATEOAS of the entity
name str
The name of the network IP range.
network_ip_range_id str
ID of the network IP range
org_id str
The id of the organization this entity belongs to.
owner str
Email of the user that owns the entity.
start_ip_address str
Start IP address of the range.
tags Sequence[NetworkIpRangeTagArgs]
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
updated_at str
Date when the entity was last updated. The date is ISO 8601 and UTC.
createdAt String
Date when the entity was created. The date is in ISO 8601 and UTC.
description String
A human-friendly description.
endIpAddress String
End IP address of the range.
externalId String
External entity Id on the provider side.
fabricNetworkId String
The Id of the fabric network.

Deprecated: Deprecated

fabricNetworkIds List<String>
The Ids of the fabric networks.
ipVersion String
IP address version: IPv4 or IPv6.
links List<Property Map>
HATEOAS of the entity
name String
The name of the network IP range.
networkIpRangeId String
ID of the network IP range
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
startIpAddress String
Start IP address of the range.
tags List<Property Map>
Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.

Supporting Types

Href This property is required. string
Hrefs This property is required. List<string>
Rel This property is required. string
Href This property is required. string
Hrefs This property is required. []string
Rel This property is required. string
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String
href This property is required. string
hrefs This property is required. string[]
rel This property is required. string
href This property is required. str
hrefs This property is required. Sequence[str]
rel This property is required. str
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String

NetworkIpRangeTag
, NetworkIpRangeTagArgs

Key This property is required. string
Value This property is required. string
Key This property is required. string
Value This property is required. string
key This property is required. String
value This property is required. String
key This property is required. string
value This property is required. string
key This property is required. str
value This property is required. str
key This property is required. String
value This property is required. String

Import

To import the vRA Network IP range, use the ID as in the following example:

$ pulumi import vra:index/networkIpRange:NetworkIpRange new_ip_range 05956583-6488-4e7d-84c9-92a7b7219a15`
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
vra vmware/terraform-provider-vra
License
Notes
This Pulumi package is based on the vra Terraform Provider.