vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getFabricNetwork
Explore with Pulumi AI
Example Usage
S
This is an example of how to lookup fabric networks.
Fabric network by filter query:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getFabricNetwork({
    filter: `name eq '${_var.name}' and externalRegionId eq '${_var.external_region_id}'`,
});
import pulumi
import pulumi_vra as vra
this = vra.get_fabric_network(filter=f"name eq '{var['name']}' and externalRegionId eq '{var['external_region_id']}'")
package main
import (
	"fmt"
	"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.GetFabricNetwork(ctx, &vra.GetFabricNetworkArgs{
			Filter: fmt.Sprintf("name eq '%v' and externalRegionId eq '%v'", _var.Name, _var.External_region_id),
		}, nil)
		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 = Vra.GetFabricNetwork.Invoke(new()
    {
        Filter = $"name eq '{@var.Name}' and externalRegionId eq '{@var.External_region_id}'",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetFabricNetworkArgs;
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 this = VraFunctions.getFabricNetwork(GetFabricNetworkArgs.builder()
            .filter(String.format("name eq '%s' and externalRegionId eq '%s'", var_.name(),var_.external_region_id()))
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getFabricNetwork
      arguments:
        filter: name eq '${var.name}' and externalRegionId eq '${var.external_region_id}'
A fabric network data source supports the following arguments:
Using getFabricNetwork
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 getFabricNetwork(args: GetFabricNetworkArgs, opts?: InvokeOptions): Promise<GetFabricNetworkResult>
function getFabricNetworkOutput(args: GetFabricNetworkOutputArgs, opts?: InvokeOptions): Output<GetFabricNetworkResult>def get_fabric_network(filter: Optional[str] = None,
                       id: Optional[str] = None,
                       tags: Optional[Sequence[GetFabricNetworkTag]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetFabricNetworkResult
def get_fabric_network_output(filter: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetFabricNetworkTagArgs]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetFabricNetworkResult]func GetFabricNetwork(ctx *Context, args *GetFabricNetworkArgs, opts ...InvokeOption) (*GetFabricNetworkResult, error)
func GetFabricNetworkOutput(ctx *Context, args *GetFabricNetworkOutputArgs, opts ...InvokeOption) GetFabricNetworkResultOutput> Note: This function is named GetFabricNetwork in the Go SDK.
public static class GetFabricNetwork 
{
    public static Task<GetFabricNetworkResult> InvokeAsync(GetFabricNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetFabricNetworkResult> Invoke(GetFabricNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFabricNetworkResult> getFabricNetwork(GetFabricNetworkArgs args, InvokeOptions options)
public static Output<GetFabricNetworkResult> getFabricNetwork(GetFabricNetworkArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getFabricNetwork:getFabricNetwork
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filter string
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - Id string
 - ID of the vRA fabric network.
 - 
List<Get
Fabric Network Tag>  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- Filter string
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - Id string
 - ID of the vRA fabric network.
 - 
[]Get
Fabric Network Tag  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- filter String
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - id String
 - ID of the vRA fabric network.
 - 
List<Get
Fabric Network Tag>  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- filter string
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - id string
 - ID of the vRA fabric network.
 - 
Get
Fabric Network Tag[]  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- filter str
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - id str
 - ID of the vRA fabric network.
 - 
Sequence[Get
Fabric Network Tag]  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- filter String
 - Filter query string that is supported by vRA multi-cloud IaaS API.
 - id String
 - ID of the vRA fabric network.
 - List<Property Map>
 - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
getFabricNetwork Result
The following output properties are available:
- Cidr string
 - Network CIDR to be used.
 - Cloud
Account List<string>Ids  - Set of ids of the cloud accounts this entity belongs to.
 - Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Custom
Properties Dictionary<string, string> - Additional properties that may be used to extend the base resource.
 - Description string
 - State object representing a network on a external cloud provider.
 - External
Id string - External entity Id on the provider side.
 - External
Region stringId  - The id of the region for which this network is defined.
 - Filter string
 - Id string
 - ID of the vRA fabric network.
 - Is
Default bool - Indicates whether this is the default subnet for the zone.
 - Is
Public bool - Indicates whether the sub-network supports public IP assignment.
 - Links
List<Get
Fabric Network Link>  - HATEOAS of the entity
 - Name string
 - Name of the fabric network.
 - Organization
Id string - ID of organization that 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.
 - 
List<Get
Fabric Network Tag>  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- Cidr string
 - Network CIDR to be used.
 - Cloud
Account []stringIds  - Set of ids of the cloud accounts this entity belongs to.
 - Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Custom
Properties map[string]string - Additional properties that may be used to extend the base resource.
 - Description string
 - State object representing a network on a external cloud provider.
 - External
Id string - External entity Id on the provider side.
 - External
Region stringId  - The id of the region for which this network is defined.
 - Filter string
 - Id string
 - ID of the vRA fabric network.
 - Is
Default bool - Indicates whether this is the default subnet for the zone.
 - Is
Public bool - Indicates whether the sub-network supports public IP assignment.
 - Links
[]Get
Fabric Network Link  - HATEOAS of the entity
 - Name string
 - Name of the fabric network.
 - Organization
Id string - ID of organization that 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.
 - 
[]Get
Fabric Network Tag  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- cidr String
 - Network CIDR to be used.
 - cloud
Account List<String>Ids  - Set of ids of the cloud accounts this entity belongs to.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - custom
Properties Map<String,String> - Additional properties that may be used to extend the base resource.
 - description String
 - State object representing a network on a external cloud provider.
 - external
Id String - External entity Id on the provider side.
 - external
Region StringId  - The id of the region for which this network is defined.
 - filter String
 - id String
 - ID of the vRA fabric network.
 - is
Default Boolean - Indicates whether this is the default subnet for the zone.
 - is
Public Boolean - Indicates whether the sub-network supports public IP assignment.
 - links
List<Get
Fabric Network Link>  - HATEOAS of the entity
 - name String
 - Name of the fabric network.
 - organization
Id String - ID of organization that 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.
 - 
List<Get
Fabric Network Tag>  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- cidr string
 - Network CIDR to be used.
 - cloud
Account string[]Ids  - Set of ids of the cloud accounts this entity belongs to.
 - created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - custom
Properties {[key: string]: string} - Additional properties that may be used to extend the base resource.
 - description string
 - State object representing a network on a external cloud provider.
 - external
Id string - External entity Id on the provider side.
 - external
Region stringId  - The id of the region for which this network is defined.
 - filter string
 - id string
 - ID of the vRA fabric network.
 - is
Default boolean - Indicates whether this is the default subnet for the zone.
 - is
Public boolean - Indicates whether the sub-network supports public IP assignment.
 - links
Get
Fabric Network Link[]  - HATEOAS of the entity
 - name string
 - Name of the fabric network.
 - organization
Id string - ID of organization that 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.
 - 
Get
Fabric Network Tag[]  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- cidr str
 - Network CIDR to be used.
 - cloud_
account_ Sequence[str]ids  - Set of ids of the cloud accounts this entity belongs to.
 - created_
at str - Date when the entity was created. The date is in ISO 6801 and UTC.
 - custom_
properties Mapping[str, str] - Additional properties that may be used to extend the base resource.
 - description str
 - State object representing a network on a external cloud provider.
 - external_
id str - External entity Id on the provider side.
 - external_
region_ strid  - The id of the region for which this network is defined.
 - filter str
 - id str
 - ID of the vRA fabric network.
 - is_
default bool - Indicates whether this is the default subnet for the zone.
 - is_
public bool - Indicates whether the sub-network supports public IP assignment.
 - links
Sequence[Get
Fabric Network Link]  - HATEOAS of the entity
 - name str
 - Name of the fabric network.
 - organization_
id str - ID of organization that 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.
 - 
Sequence[Get
Fabric Network Tag]  - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
- cidr String
 - Network CIDR to be used.
 - cloud
Account List<String>Ids  - Set of ids of the cloud accounts this entity belongs to.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - custom
Properties Map<String> - Additional properties that may be used to extend the base resource.
 - description String
 - State object representing a network on a external cloud provider.
 - external
Id String - External entity Id on the provider side.
 - external
Region StringId  - The id of the region for which this network is defined.
 - filter String
 - id String
 - ID of the vRA fabric network.
 - is
Default Boolean - Indicates whether this is the default subnet for the zone.
 - is
Public Boolean - Indicates whether the sub-network supports public IP assignment.
 - links List<Property Map>
 - HATEOAS of the entity
 - name String
 - Name of the fabric network.
 - organization
Id String - ID of organization that 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.
 - List<Property Map>
 - Set of tag keys and values to apply to the resource.
Example: 
[ { "key" : "vmware", "value": "provider" } ] 
Supporting Types
GetFabricNetworkLink   
GetFabricNetworkTag   
Package Details
- Repository
 - vra vmware/terraform-provider-vra
 - License
 - Notes
 - This Pulumi package is based on the 
vraTerraform Provider.