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

vra.getFabricDatastoreVsphere

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 vSphere fabric datastores.

    vSphere fabric datastore data source by Id:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getFabricDatastoreVsphere({
        id: _var.fabric_datastore_vsphere_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_fabric_datastore_vsphere(id=var["fabric_datastore_vsphere_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vra.LookupFabricDatastoreVsphere(ctx, &vra.LookupFabricDatastoreVsphereArgs{
    			Id: pulumi.StringRef(_var.Fabric_datastore_vsphere_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.GetFabricDatastoreVsphere.Invoke(new()
        {
            Id = @var.Fabric_datastore_vsphere_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.GetFabricDatastoreVsphereArgs;
    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.getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs.builder()
                .id(var_.fabric_datastore_vsphere_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getFabricDatastoreVsphere
          arguments:
            id: ${var.fabric_datastore_vsphere_id}
    

    vSphere fabric datastore data source by filter query:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getFabricDatastoreVsphere({
        filter: `name eq '${_var.datastore_name}'`,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_fabric_datastore_vsphere(filter=f"name eq '{var['datastore_name']}'")
    
    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.LookupFabricDatastoreVsphere(ctx, &vra.LookupFabricDatastoreVsphereArgs{
    			Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", _var.Datastore_name)),
    		}, 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.GetFabricDatastoreVsphere.Invoke(new()
        {
            Filter = $"name eq '{@var.Datastore_name}'",
        });
    
    });
    
    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.GetFabricDatastoreVsphereArgs;
    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.getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs.builder()
                .filter(String.format("name eq '%s'", var_.datastore_name()))
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getFabricDatastoreVsphere
          arguments:
            filter: name eq '${var.datastore_name}'
    

    A vSphere fabric datastore data source supports the following arguments:

    Using getFabricDatastoreVsphere

    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 getFabricDatastoreVsphere(args: GetFabricDatastoreVsphereArgs, opts?: InvokeOptions): Promise<GetFabricDatastoreVsphereResult>
    function getFabricDatastoreVsphereOutput(args: GetFabricDatastoreVsphereOutputArgs, opts?: InvokeOptions): Output<GetFabricDatastoreVsphereResult>
    def get_fabric_datastore_vsphere(filter: Optional[str] = None,
                                     id: Optional[str] = None,
                                     tags: Optional[Sequence[GetFabricDatastoreVsphereTag]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetFabricDatastoreVsphereResult
    def get_fabric_datastore_vsphere_output(filter: Optional[pulumi.Input[str]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetFabricDatastoreVsphereTagArgs]]]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetFabricDatastoreVsphereResult]
    func LookupFabricDatastoreVsphere(ctx *Context, args *LookupFabricDatastoreVsphereArgs, opts ...InvokeOption) (*LookupFabricDatastoreVsphereResult, error)
    func LookupFabricDatastoreVsphereOutput(ctx *Context, args *LookupFabricDatastoreVsphereOutputArgs, opts ...InvokeOption) LookupFabricDatastoreVsphereResultOutput

    > Note: This function is named LookupFabricDatastoreVsphere in the Go SDK.

    public static class GetFabricDatastoreVsphere 
    {
        public static Task<GetFabricDatastoreVsphereResult> InvokeAsync(GetFabricDatastoreVsphereArgs args, InvokeOptions? opts = null)
        public static Output<GetFabricDatastoreVsphereResult> Invoke(GetFabricDatastoreVsphereInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFabricDatastoreVsphereResult> getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs args, InvokeOptions options)
    public static Output<GetFabricDatastoreVsphereResult> getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getFabricDatastoreVsphere:getFabricDatastoreVsphere
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    Id string
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    Tags List<GetFabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    Filter string
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    Id string
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    Tags []GetFabricDatastoreVsphereTag
    A set of tag keys and optional values that were set on this resource:
    filter String
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    id String
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    tags List<GetFabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    filter string
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    id string
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    tags GetFabricDatastoreVsphereTag[]
    A set of tag keys and optional values that were set on this resource:
    filter str
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    id str
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    tags Sequence[GetFabricDatastoreVsphereTag]
    A set of tag keys and optional values that were set on this resource:
    filter String
    Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    id String
    The id of the vSphere fabric datastore resource instance. Only one of 'id' or 'filter' must be specified.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:

    getFabricDatastoreVsphere Result

    The following output properties are available:

    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 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FreeSizeGb string
    Indicates free size available in datastore.
    Id string
    Links List<GetFabricDatastoreVsphereLink>
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Filter string
    Tags List<GetFabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    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 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FreeSizeGb string
    Indicates free size available in datastore.
    Id string
    Links []GetFabricDatastoreVsphereLink
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Filter string
    Tags []GetFabricDatastoreVsphereTag
    A set of tag keys and optional values that were set on this resource:
    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 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    freeSizeGb String
    Indicates free size available in datastore.
    id String
    links List<GetFabricDatastoreVsphereLink>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter String
    tags List<GetFabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    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 8601 and UTC.
    description string
    A human-friendly description.
    externalId string
    External entity Id on the provider side.
    externalRegionId string
    Id of datacenter in which the datastore is present.
    freeSizeGb string
    Indicates free size available in datastore.
    id string
    links GetFabricDatastoreVsphereLink[]
    HATEOAS of the entity
    name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId string
    The id of the organization this entity belongs to.
    owner string
    Email of the user that owns the entity.
    type string
    Type of datastore.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter string
    tags GetFabricDatastoreVsphereTag[]
    A set of tag keys and optional values that were set on this resource:
    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 8601 and UTC.
    description str
    A human-friendly description.
    external_id str
    External entity Id on the provider side.
    external_region_id str
    Id of datacenter in which the datastore is present.
    free_size_gb str
    Indicates free size available in datastore.
    id str
    links Sequence[GetFabricDatastoreVsphereLink]
    HATEOAS of the entity
    name str
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    org_id str
    The id of the organization this entity belongs to.
    owner str
    Email of the user that owns the entity.
    type str
    Type of datastore.
    updated_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter str
    tags Sequence[GetFabricDatastoreVsphereTag]
    A set of tag keys and optional values that were set on this resource:
    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 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    freeSizeGb String
    Indicates free size available in datastore.
    id String
    links List<Property Map>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter String
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:

    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

    GetFabricDatastoreVsphereTag

    Key string
    Tag’s key.
    Value string
    Tag’s value.
    Key string
    Tag’s key.
    Value string
    Tag’s value.
    key String
    Tag’s key.
    value String
    Tag’s value.
    key string
    Tag’s key.
    value string
    Tag’s value.
    key str
    Tag’s key.
    value str
    Tag’s value.
    key String
    Tag’s key.
    value String
    Tag’s value.

    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