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",
}],
});
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",
}])
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
})
}
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",
},
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args NetworkIpRangeArgs
- 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 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 string
- The unique name of the resource.
- args NetworkIpRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkIpRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
});
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: vra.NetworkIpRangeTagArray{
&vra.NetworkIpRangeTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
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());
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",
}])
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",
}],
});
type: vra:NetworkIpRange
properties:
description: string
endIpAddress: string
fabricNetworkIds:
- string
ipVersion: string
name: string
networkIpRangeId: string
startIpAddress: string
tags:
- key: string
value: string
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:
- End
Ip stringAddress - End IP address of the range.
- Ip
Version string - IP address version: IPv4 or IPv6.
- Start
Ip stringAddress - Start IP address of the range.
- Description string
- A human-friendly description.
- Fabric
Network stringId - The Id of the fabric network.
- Fabric
Network List<string>Ids - The Ids of the fabric networks.
- Name string
- The name of the network IP range.
- Network
Ip stringRange Id - ID of the network IP range
- List<Network
Ip Range Tag> - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- End
Ip stringAddress - End IP address of the range.
- Ip
Version string - IP address version: IPv4 or IPv6.
- Start
Ip stringAddress - Start IP address of the range.
- Description string
- A human-friendly description.
- Fabric
Network stringId - The Id of the fabric network.
- Fabric
Network []stringIds - The Ids of the fabric networks.
- Name string
- The name of the network IP range.
- Network
Ip stringRange Id - ID of the network IP range
- []Network
Ip Range Tag Args - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- end
Ip StringAddress - End IP address of the range.
- ip
Version String - IP address version: IPv4 or IPv6.
- start
Ip StringAddress - Start IP address of the range.
- description String
- A human-friendly description.
- fabric
Network StringId - The Id of the fabric network.
- fabric
Network List<String>Ids - The Ids of the fabric networks.
- name String
- The name of the network IP range.
- network
Ip StringRange Id - ID of the network IP range
- List<Network
Ip Range Tag> - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- end
Ip stringAddress - End IP address of the range.
- ip
Version string - IP address version: IPv4 or IPv6.
- start
Ip stringAddress - Start IP address of the range.
- description string
- A human-friendly description.
- fabric
Network stringId - The Id of the fabric network.
- fabric
Network string[]Ids - The Ids of the fabric networks.
- name string
- The name of the network IP range.
- network
Ip stringRange Id - ID of the network IP range
- Network
Ip Range Tag[] - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- end_
ip_ straddress - End IP address of the range.
- ip_
version str - IP address version: IPv4 or IPv6.
- start_
ip_ straddress - Start IP address of the range.
- description str
- A human-friendly description.
- fabric_
network_ strid - The Id of the fabric network.
- fabric_
network_ Sequence[str]ids - The Ids of the fabric networks.
- name str
- The name of the network IP range.
- network_
ip_ strrange_ id - ID of the network IP range
- Sequence[Network
Ip Range Tag Args] - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- end
Ip StringAddress - End IP address of the range.
- ip
Version String - IP address version: IPv4 or IPv6.
- start
Ip StringAddress - Start IP address of the range.
- description String
- A human-friendly description.
- fabric
Network StringId - The Id of the fabric network.
- fabric
Network List<String>Ids - The Ids of the fabric networks.
- name String
- The name of the network IP range.
- network
Ip StringRange Id - ID of the network IP range
- 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:
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- External
Id string - External entity Id on the provider side.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Network
Ip Range Link> - HATEOAS of the entity
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- External
Id string - External entity Id on the provider side.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Network
Ip Range Link - HATEOAS of the entity
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- external
Id String - External entity Id on the provider side.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Network
Ip Range Link> - HATEOAS of the entity
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- external
Id string - External entity Id on the provider side.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Network
Ip Range Link[] - HATEOAS of the entity
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- updated
At 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[Network
Ip Range Link] - 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.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- external
Id 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
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- updated
At 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
- 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
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- End
Ip stringAddress - End IP address of the range.
- External
Id string - External entity Id on the provider side.
- Fabric
Network stringId - The Id of the fabric network.
- Fabric
Network List<string>Ids - The Ids of the fabric networks.
- Ip
Version string - IP address version: IPv4 or IPv6.
- Links
List<Network
Ip Range Link> - HATEOAS of the entity
- Name string
- The name of the network IP range.
- Network
Ip stringRange Id - ID of the network IP range
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Start
Ip stringAddress - Start IP address of the range.
- List<Network
Ip Range Tag> - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- End
Ip stringAddress - End IP address of the range.
- External
Id string - External entity Id on the provider side.
- Fabric
Network stringId - The Id of the fabric network.
- Fabric
Network []stringIds - The Ids of the fabric networks.
- Ip
Version string - IP address version: IPv4 or IPv6.
- Links
[]Network
Ip Range Link Args - HATEOAS of the entity
- Name string
- The name of the network IP range.
- Network
Ip stringRange Id - ID of the network IP range
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Start
Ip stringAddress - Start IP address of the range.
- []Network
Ip Range Tag Args - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- end
Ip StringAddress - End IP address of the range.
- external
Id String - External entity Id on the provider side.
- fabric
Network StringId - The Id of the fabric network.
- fabric
Network List<String>Ids - The Ids of the fabric networks.
- ip
Version String - IP address version: IPv4 or IPv6.
- links
List<Network
Ip Range Link> - HATEOAS of the entity
- name String
- The name of the network IP range.
- network
Ip StringRange Id - ID of the network IP range
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- start
Ip StringAddress - Start IP address of the range.
- List<Network
Ip Range Tag> - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- description string
- A human-friendly description.
- end
Ip stringAddress - End IP address of the range.
- external
Id string - External entity Id on the provider side.
- fabric
Network stringId - The Id of the fabric network.
- fabric
Network string[]Ids - The Ids of the fabric networks.
- ip
Version string - IP address version: IPv4 or IPv6.
- links
Network
Ip Range Link[] - HATEOAS of the entity
- name string
- The name of the network IP range.
- network
Ip stringRange Id - ID of the network IP range
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- start
Ip stringAddress - Start IP address of the range.
- Network
Ip Range Tag[] - Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At 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_ straddress - End IP address of the range.
- external_
id str - External entity Id on the provider side.
- fabric_
network_ strid - The Id of the fabric network.
- fabric_
network_ Sequence[str]ids - The Ids of the fabric networks.
- ip_
version str - IP address version: IPv4 or IPv6.
- links
Sequence[Network
Ip Range Link Args] - HATEOAS of the entity
- name str
- The name of the network IP range.
- network_
ip_ strrange_ id - 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_ straddress - Start IP address of the range.
- Sequence[Network
Ip Range Tag Args] - 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.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- end
Ip StringAddress - End IP address of the range.
- external
Id String - External entity Id on the provider side.
- fabric
Network StringId - The Id of the fabric network.
- fabric
Network List<String>Ids - The Ids of the fabric networks.
- ip
Version String - IP address version: IPv4 or IPv6.
- links List<Property Map>
- HATEOAS of the entity
- name String
- The name of the network IP range.
- network
Ip StringRange Id - ID of the network IP range
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- start
Ip StringAddress - Start IP address of the range.
- List<Property Map>
- Set of tag keys and values to apply to the resource.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
Supporting Types
NetworkIpRangeLink, NetworkIpRangeLinkArgs
NetworkIpRangeTag, NetworkIpRangeTagArgs
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`
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.