avi.Network
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “Avi: avi.Network” sidebar_current: “docs-avi-resource-network” description: |- Creates and manages Avi Network.
avi.Network
The Network resource allows the creation and management of Avi Network
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const foo = new avi.Network("foo", {tenantRef: "/api/tenant/?name=admin"});
import pulumi
import pulumi_avi as avi
foo = avi.Network("foo", tenant_ref="/api/tenant/?name=admin")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.NewNetwork(ctx, "foo", &avi.NetworkArgs{
TenantRef: pulumi.String("/api/tenant/?name=admin"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var foo = new Avi.Network("foo", new()
{
TenantRef = "/api/tenant/?name=admin",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.Network;
import com.pulumi.avi.NetworkArgs;
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 foo = new Network("foo", NetworkArgs.builder()
.tenantRef("/api/tenant/?name=admin")
.build());
}
}
resources:
foo:
type: avi:Network
properties:
tenantRef: /api/tenant/?name=admin
Create Network Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Network(name: string, args?: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
args: Optional[NetworkArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
attrs: Optional[Sequence[NetworkAttrArgs]] = None,
cloud_ref: Optional[str] = None,
configpb_attributes: Optional[Sequence[NetworkConfigpbAttributeArgs]] = None,
configured_subnets: Optional[Sequence[NetworkConfiguredSubnetArgs]] = None,
dhcp_enabled: Optional[str] = None,
exclude_discovered_subnets: Optional[str] = None,
ip6_autocfg_enabled: Optional[str] = None,
markers: Optional[Sequence[NetworkMarkerArgs]] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
synced_from_se: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
vcenter_dvs: Optional[str] = None,
vimgrnw_ref: Optional[str] = None,
vrf_context_ref: Optional[str] = None)
func NewNetwork(ctx *Context, name string, args *NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs? args = null, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: avi:Network
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 NetworkArgs
- 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 NetworkArgs
- 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 NetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkArgs
- 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 networkResource = new Avi.Network("networkResource", new()
{
Attrs = new[]
{
new Avi.Inputs.NetworkAttrArgs
{
Key = "string",
Value = "string",
},
},
CloudRef = "string",
ConfigpbAttributes = new[]
{
new Avi.Inputs.NetworkConfigpbAttributeArgs
{
Version = "string",
},
},
ConfiguredSubnets = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetArgs
{
Prefixes = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetPrefixArgs
{
IpAddrs = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetPrefixIpAddrArgs
{
Addr = "string",
Type = "string",
},
},
Mask = "string",
},
},
StaticIpRanges = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetStaticIpRangeArgs
{
Ranges = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetStaticIpRangeRangeArgs
{
Begins = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetStaticIpRangeRangeBeginArgs
{
Addr = "string",
Type = "string",
},
},
Ends = new[]
{
new Avi.Inputs.NetworkConfiguredSubnetStaticIpRangeRangeEndArgs
{
Addr = "string",
Type = "string",
},
},
},
},
Type = "string",
},
},
},
},
DhcpEnabled = "string",
ExcludeDiscoveredSubnets = "string",
Ip6AutocfgEnabled = "string",
Markers = new[]
{
new Avi.Inputs.NetworkMarkerArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
},
Name = "string",
NetworkId = "string",
SyncedFromSe = "string",
TenantRef = "string",
Uuid = "string",
VcenterDvs = "string",
VimgrnwRef = "string",
VrfContextRef = "string",
});
example, err := avi.NewNetwork(ctx, "networkResource", &avi.NetworkArgs{
Attrs: avi.NetworkAttrArray{
&avi.NetworkAttrArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CloudRef: pulumi.String("string"),
ConfigpbAttributes: avi.NetworkConfigpbAttributeArray{
&avi.NetworkConfigpbAttributeArgs{
Version: pulumi.String("string"),
},
},
ConfiguredSubnets: avi.NetworkConfiguredSubnetArray{
&avi.NetworkConfiguredSubnetArgs{
Prefixes: avi.NetworkConfiguredSubnetPrefixArray{
&avi.NetworkConfiguredSubnetPrefixArgs{
IpAddrs: avi.NetworkConfiguredSubnetPrefixIpAddrArray{
&avi.NetworkConfiguredSubnetPrefixIpAddrArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Mask: pulumi.String("string"),
},
},
StaticIpRanges: avi.NetworkConfiguredSubnetStaticIpRangeArray{
&avi.NetworkConfiguredSubnetStaticIpRangeArgs{
Ranges: avi.NetworkConfiguredSubnetStaticIpRangeRangeArray{
&avi.NetworkConfiguredSubnetStaticIpRangeRangeArgs{
Begins: avi.NetworkConfiguredSubnetStaticIpRangeRangeBeginArray{
&avi.NetworkConfiguredSubnetStaticIpRangeRangeBeginArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Ends: avi.NetworkConfiguredSubnetStaticIpRangeRangeEndArray{
&avi.NetworkConfiguredSubnetStaticIpRangeRangeEndArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
},
Type: pulumi.String("string"),
},
},
},
},
DhcpEnabled: pulumi.String("string"),
ExcludeDiscoveredSubnets: pulumi.String("string"),
Ip6AutocfgEnabled: pulumi.String("string"),
Markers: avi.NetworkMarkerArray{
&avi.NetworkMarkerArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
NetworkId: pulumi.String("string"),
SyncedFromSe: pulumi.String("string"),
TenantRef: pulumi.String("string"),
Uuid: pulumi.String("string"),
VcenterDvs: pulumi.String("string"),
VimgrnwRef: pulumi.String("string"),
VrfContextRef: pulumi.String("string"),
})
var networkResource = new Network("networkResource", NetworkArgs.builder()
.attrs(NetworkAttrArgs.builder()
.key("string")
.value("string")
.build())
.cloudRef("string")
.configpbAttributes(NetworkConfigpbAttributeArgs.builder()
.version("string")
.build())
.configuredSubnets(NetworkConfiguredSubnetArgs.builder()
.prefixes(NetworkConfiguredSubnetPrefixArgs.builder()
.ipAddrs(NetworkConfiguredSubnetPrefixIpAddrArgs.builder()
.addr("string")
.type("string")
.build())
.mask("string")
.build())
.staticIpRanges(NetworkConfiguredSubnetStaticIpRangeArgs.builder()
.ranges(NetworkConfiguredSubnetStaticIpRangeRangeArgs.builder()
.begins(NetworkConfiguredSubnetStaticIpRangeRangeBeginArgs.builder()
.addr("string")
.type("string")
.build())
.ends(NetworkConfiguredSubnetStaticIpRangeRangeEndArgs.builder()
.addr("string")
.type("string")
.build())
.build())
.type("string")
.build())
.build())
.dhcpEnabled("string")
.excludeDiscoveredSubnets("string")
.ip6AutocfgEnabled("string")
.markers(NetworkMarkerArgs.builder()
.key("string")
.values("string")
.build())
.name("string")
.networkId("string")
.syncedFromSe("string")
.tenantRef("string")
.uuid("string")
.vcenterDvs("string")
.vimgrnwRef("string")
.vrfContextRef("string")
.build());
network_resource = avi.Network("networkResource",
attrs=[{
"key": "string",
"value": "string",
}],
cloud_ref="string",
configpb_attributes=[{
"version": "string",
}],
configured_subnets=[{
"prefixes": [{
"ip_addrs": [{
"addr": "string",
"type": "string",
}],
"mask": "string",
}],
"static_ip_ranges": [{
"ranges": [{
"begins": [{
"addr": "string",
"type": "string",
}],
"ends": [{
"addr": "string",
"type": "string",
}],
}],
"type": "string",
}],
}],
dhcp_enabled="string",
exclude_discovered_subnets="string",
ip6_autocfg_enabled="string",
markers=[{
"key": "string",
"values": ["string"],
}],
name="string",
network_id="string",
synced_from_se="string",
tenant_ref="string",
uuid="string",
vcenter_dvs="string",
vimgrnw_ref="string",
vrf_context_ref="string")
const networkResource = new avi.Network("networkResource", {
attrs: [{
key: "string",
value: "string",
}],
cloudRef: "string",
configpbAttributes: [{
version: "string",
}],
configuredSubnets: [{
prefixes: [{
ipAddrs: [{
addr: "string",
type: "string",
}],
mask: "string",
}],
staticIpRanges: [{
ranges: [{
begins: [{
addr: "string",
type: "string",
}],
ends: [{
addr: "string",
type: "string",
}],
}],
type: "string",
}],
}],
dhcpEnabled: "string",
excludeDiscoveredSubnets: "string",
ip6AutocfgEnabled: "string",
markers: [{
key: "string",
values: ["string"],
}],
name: "string",
networkId: "string",
syncedFromSe: "string",
tenantRef: "string",
uuid: "string",
vcenterDvs: "string",
vimgrnwRef: "string",
vrfContextRef: "string",
});
type: avi:Network
properties:
attrs:
- key: string
value: string
cloudRef: string
configpbAttributes:
- version: string
configuredSubnets:
- prefixes:
- ipAddrs:
- addr: string
type: string
mask: string
staticIpRanges:
- ranges:
- begins:
- addr: string
type: string
ends:
- addr: string
type: string
type: string
dhcpEnabled: string
excludeDiscoveredSubnets: string
ip6AutocfgEnabled: string
markers:
- key: string
values:
- string
name: string
networkId: string
syncedFromSe: string
tenantRef: string
uuid: string
vcenterDvs: string
vimgrnwRef: string
vrfContextRef: string
Network 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 Network resource accepts the following input properties:
- Attrs
List<Network
Attr> - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<NetworkConfigpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configured
Subnets List<NetworkConfigured Subnet> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
List<Network
Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Network
Id string - Synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Attrs
[]Network
Attr Args - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []NetworkConfigpb Attribute Args - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configured
Subnets []NetworkConfigured Subnet Args - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
[]Network
Marker Args - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Network
Id string - Synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
List<Network
Attr> - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref String - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<NetworkConfigpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets List<NetworkConfigured Subnet> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled String - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered StringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled String - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
List<Network
Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id String - synced
From StringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref String - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context StringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
Network
Attr[] - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes NetworkConfigpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets NetworkConfigured Subnet[] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Network
Marker[] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id string - synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
Sequence[Network
Attr Args] - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud_
ref str - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[NetworkConfigpb Attribute Args] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured_
subnets Sequence[NetworkConfigured Subnet Args] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp_
enabled str - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude_
discovered_ strsubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6_
autocfg_ strenabled - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Sequence[Network
Marker Args] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network_
id str - synced_
from_ strse - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter_
dvs str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw_
ref str - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf_
context_ strref - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs List<Property Map>
- Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref String - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets List<Property Map> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled String - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered StringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled String - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers List<Property Map>
- List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id String - synced
From StringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref String - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context StringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Network Resource
Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attrs: Optional[Sequence[NetworkAttrArgs]] = None,
cloud_ref: Optional[str] = None,
configpb_attributes: Optional[Sequence[NetworkConfigpbAttributeArgs]] = None,
configured_subnets: Optional[Sequence[NetworkConfiguredSubnetArgs]] = None,
dhcp_enabled: Optional[str] = None,
exclude_discovered_subnets: Optional[str] = None,
ip6_autocfg_enabled: Optional[str] = None,
markers: Optional[Sequence[NetworkMarkerArgs]] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
synced_from_se: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
vcenter_dvs: Optional[str] = None,
vimgrnw_ref: Optional[str] = None,
vrf_context_ref: Optional[str] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
resources: _: type: avi:Network 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.
- Attrs
List<Network
Attr> - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<NetworkConfigpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configured
Subnets List<NetworkConfigured Subnet> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
List<Network
Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Network
Id string - Synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Attrs
[]Network
Attr Args - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []NetworkConfigpb Attribute Args - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configured
Subnets []NetworkConfigured Subnet Args - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Markers
[]Network
Marker Args - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Network
Id string - Synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
List<Network
Attr> - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref String - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<NetworkConfigpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets List<NetworkConfigured Subnet> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled String - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered StringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled String - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
List<Network
Marker> - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id String - synced
From StringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref String - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context StringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
Network
Attr[] - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref string - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes NetworkConfigpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets NetworkConfigured Subnet[] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled string - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered stringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled string - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Network
Marker[] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id string - synced
From stringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref string - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context stringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs
Sequence[Network
Attr Args] - Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud_
ref str - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[NetworkConfigpb Attribute Args] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured_
subnets Sequence[NetworkConfigured Subnet Args] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp_
enabled str - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude_
discovered_ strsubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6_
autocfg_ strenabled - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers
Sequence[Network
Marker Args] - List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network_
id str - synced_
from_ strse - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter_
dvs str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw_
ref str - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf_
context_ strref - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- attrs List<Property Map>
- Key/value network attributes. Field introduced in 20.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cloud
Ref String - It is a reference to an object of type cloud. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configured
Subnets List<Property Map> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- dhcp
Enabled String - Select the ip address management scheme for this network. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- exclude
Discovered StringSubnets - When selected, excludes all discovered subnets in this network from consideration for virtual service placement. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ip6Autocfg
Enabled String - Enable ipv6 auto configuration. Field introduced in 18.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- markers List<Property Map>
- List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- network
Id String - synced
From StringSe - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vcenter
Dvs String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vimgrnw
Ref String - It is a reference to an object of type vimgrnwruntime. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- vrf
Context StringRef - It is a reference to an object of type vrfcontext. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
NetworkAttr, NetworkAttrArgs
NetworkConfigpbAttribute, NetworkConfigpbAttributeArgs
- Version string
- Version string
- version String
- version string
- version str
- version String
NetworkConfiguredSubnet, NetworkConfiguredSubnetArgs
NetworkConfiguredSubnetPrefix, NetworkConfiguredSubnetPrefixArgs
- ip
Addrs List<Property Map> - mask String
NetworkConfiguredSubnetPrefixIpAddr, NetworkConfiguredSubnetPrefixIpAddrArgs
NetworkConfiguredSubnetStaticIpRange, NetworkConfiguredSubnetStaticIpRangeArgs
- ranges List<Property Map>
- type String
NetworkConfiguredSubnetStaticIpRangeRange, NetworkConfiguredSubnetStaticIpRangeRangeArgs
NetworkConfiguredSubnetStaticIpRangeRangeBegin, NetworkConfiguredSubnetStaticIpRangeRangeBeginArgs
NetworkConfiguredSubnetStaticIpRangeRangeEnd, NetworkConfiguredSubnetStaticIpRangeRangeEndArgs
NetworkMarker, NetworkMarkerArgs
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.