Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI:<span pulumi-lang-nodejs=” avi.Network"" pulumi-lang-dotnet=" avi.Network"" pulumi-lang-go=" Network"" pulumi-lang-python=" Network"" pulumi-lang-yaml=" avi.Network"" pulumi-lang-java=" avi.Network""> avi.Network" sidebar_current: “docs-avi-datasource-network” description: |- Get information of Avi Network.
# avi.Network This data source is used to to get avi.Network objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooNetwork = avi.getNetwork({
uuid: "network-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name: "foo",
cloudRef: "/api/cloud/?tenant=admin&name=Default-Cloud",
});
import pulumi
import pulumi_avi as avi
foo_network = avi.get_network(uuid="network-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name="foo",
cloud_ref="/api/cloud/?tenant=admin&name=Default-Cloud")
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.LookupNetwork(ctx, &avi.LookupNetworkArgs{
Uuid: pulumi.StringRef("network-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
Name: pulumi.StringRef("foo"),
CloudRef: pulumi.StringRef("/api/cloud/?tenant=admin&name=Default-Cloud"),
}, nil)
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 fooNetwork = Avi.GetNetwork.Invoke(new()
{
Uuid = "network-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
Name = "foo",
CloudRef = "/api/cloud/?tenant=admin&name=Default-Cloud",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetNetworkArgs;
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) {
final var fooNetwork = AviFunctions.getNetwork(GetNetworkArgs.builder()
.uuid("network-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.name("foo")
.cloudRef("/api/cloud/?tenant=admin&name=Default-Cloud")
.build());
}
}
variables:
fooNetwork:
fn::invoke:
function: avi:getNetwork
arguments:
uuid: network-f9cf6b3e-a411-436f-95e2-2982ba2b217b
name: foo
cloudRef: /api/cloud/?tenant=admin&name=Default-Cloud
Using getNetwork
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>def get_network(cloud_ref: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(cloud_ref: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput> Note: This function is named LookupNetwork in the Go SDK.
public static class GetNetwork
{
public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getNetwork:getNetwork
arguments:
# arguments dictionaryThe following arguments are supported:
- cloud_
ref str - Search Network by cloud_ref.
- id str
- name str
- Search Network by name.
- 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
- Search Network by uuid.
getNetwork Result
The following output properties are available:
- Attrs
List<Get
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<GetNetwork Configpb 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<GetNetwork Configured 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.
- Id string
- 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<Get
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.
- 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
[]Get
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 []GetNetwork Configpb 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 []GetNetwork Configured 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.
- Id string
- 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
[]Get
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.
- 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<Get
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<GetNetwork Configpb 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<GetNetwork Configured 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.
- id String
- 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<Get
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.
- 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
Get
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 GetNetwork Configpb 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 GetNetwork Configured 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.
- id string
- 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
Get
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.
- 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[Get
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 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[GetNetwork Configpb 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 Sequence[GetNetwork Configured Subnet] - 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.
- id str
- 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[Get
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 str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- 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.
- id String
- 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.
- 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
GetNetworkAttr
GetNetworkConfigpbAttribute
- Version string
- Version string
- version String
- version string
- version str
- version String
GetNetworkConfiguredSubnet
GetNetworkConfiguredSubnetPrefix
- ip
Addrs List<Property Map> - mask String
GetNetworkConfiguredSubnetPrefixIpAddr
GetNetworkConfiguredSubnetStaticIpRange
- ranges List<Property Map>
- type String
GetNetworkConfiguredSubnetStaticIpRangeRange
GetNetworkConfiguredSubnetStaticIpRangeRangeBegin
GetNetworkConfiguredSubnetStaticIpRangeRangeEnd
GetNetworkMarker
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
aviTerraform Provider.
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
