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

vra.getFabricNetwork

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    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 dictionary

    The 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.
    Tags List<GetFabricNetworkTag>
    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.
    Tags []GetFabricNetworkTag
    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.
    tags List<GetFabricNetworkTag>
    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.
    tags GetFabricNetworkTag[]
    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.
    tags Sequence[GetFabricNetworkTag]
    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.
    tags 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.
    CloudAccountIds List<string>
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    CustomProperties 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.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    The id of the region for which this network is defined.
    Filter string
    Id string
    ID of the vRA fabric network.
    IsDefault bool
    Indicates whether this is the default subnet for the zone.
    IsPublic bool
    Indicates whether the sub-network supports public IP assignment.
    Links List<GetFabricNetworkLink>
    HATEOAS of the entity
    Name string
    Name of the fabric network.
    OrganizationId string
    ID of organization that entity belongs to.
    Owner string
    Email of the user that owns the entity.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Tags List<GetFabricNetworkTag>
    Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
    Cidr string
    Network CIDR to be used.
    CloudAccountIds []string
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    CustomProperties 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.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    The id of the region for which this network is defined.
    Filter string
    Id string
    ID of the vRA fabric network.
    IsDefault bool
    Indicates whether this is the default subnet for the zone.
    IsPublic bool
    Indicates whether the sub-network supports public IP assignment.
    Links []GetFabricNetworkLink
    HATEOAS of the entity
    Name string
    Name of the fabric network.
    OrganizationId string
    ID of organization that entity belongs to.
    Owner string
    Email of the user that owns the entity.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Tags []GetFabricNetworkTag
    Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
    cidr String
    Network CIDR to be used.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    customProperties 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.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    The id of the region for which this network is defined.
    filter String
    id String
    ID of the vRA fabric network.
    isDefault Boolean
    Indicates whether this is the default subnet for the zone.
    isPublic Boolean
    Indicates whether the sub-network supports public IP assignment.
    links List<GetFabricNetworkLink>
    HATEOAS of the entity
    name String
    Name of the fabric network.
    organizationId String
    ID of organization that entity belongs to.
    owner String
    Email of the user that owns the entity.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    tags List<GetFabricNetworkTag>
    Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
    cidr string
    Network CIDR to be used.
    cloudAccountIds string[]
    Set of ids of the cloud accounts this entity belongs to.
    createdAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    customProperties {[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.
    externalId string
    External entity Id on the provider side.
    externalRegionId string
    The id of the region for which this network is defined.
    filter string
    id string
    ID of the vRA fabric network.
    isDefault boolean
    Indicates whether this is the default subnet for the zone.
    isPublic boolean
    Indicates whether the sub-network supports public IP assignment.
    links GetFabricNetworkLink[]
    HATEOAS of the entity
    name string
    Name of the fabric network.
    organizationId string
    ID of organization that entity belongs to.
    owner string
    Email of the user that owns the entity.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    tags GetFabricNetworkTag[]
    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_ids Sequence[str]
    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_id str
    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[GetFabricNetworkLink]
    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.
    tags Sequence[GetFabricNetworkTag]
    Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]
    cidr String
    Network CIDR to be used.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    customProperties 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.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    The id of the region for which this network is defined.
    filter String
    id String
    ID of the vRA fabric network.
    isDefault Boolean
    Indicates whether this is the default subnet for the zone.
    isPublic 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.
    organizationId String
    ID of organization that entity belongs to.
    owner String
    Email of the user that owns the entity.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    tags List<Property Map>
    Set of tag keys and values to apply to the resource. Example: [ { "key" : "vmware", "value": "provider" } ]

    Supporting Types

    Href string
    Hrefs List<string>
    Rel string
    Href string
    Hrefs []string
    Rel string
    href String
    hrefs List<String>
    rel String
    href string
    hrefs string[]
    rel string
    href str
    hrefs Sequence[str]
    rel str
    href String
    hrefs List<String>
    rel String

    GetFabricNetworkTag

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware