Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 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";
// Lookup vSphere fabric datastore using its id
const _this = vra.getFabricDatastoreVsphere({
id: fabricDatastoreVsphereId,
});
import pulumi
import pulumi_vra as vra
# Lookup vSphere fabric datastore using its id
this = vra.get_fabric_datastore_vsphere(id=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 {
// Lookup vSphere fabric datastore using its id
_, err := vra.LookupFabricDatastoreVsphere(ctx, &vra.LookupFabricDatastoreVsphereArgs{
Id: pulumi.StringRef(fabricDatastoreVsphereId),
}, 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(() =>
{
// Lookup vSphere fabric datastore using its id
var @this = Vra.GetFabricDatastoreVsphere.Invoke(new()
{
Id = fabricDatastoreVsphereId,
});
});
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) {
// Lookup vSphere fabric datastore using its id
final var this = VraFunctions.getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs.builder()
.id(fabricDatastoreVsphereId)
.build());
}
}
variables:
# Lookup vSphere fabric datastore using its id
this:
fn::invoke:
function: vra:getFabricDatastoreVsphere
arguments:
id: ${fabricDatastoreVsphereId}
vSphere fabric datastore data source by filter query:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
// Lookup vSphere fabric datastore using its name
const _this = vra.getFabricDatastoreVsphere({
filter: `name eq '${datastoreName}'`,
});
import pulumi
import pulumi_vra as vra
# Lookup vSphere fabric datastore using its name
this = vra.get_fabric_datastore_vsphere(filter=f"name eq '{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 {
// Lookup vSphere fabric datastore using its name
_, err := vra.LookupFabricDatastoreVsphere(ctx, &vra.LookupFabricDatastoreVsphereArgs{
Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", datastoreName)),
}, 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(() =>
{
// Lookup vSphere fabric datastore using its name
var @this = Vra.GetFabricDatastoreVsphere.Invoke(new()
{
Filter = $"name eq '{datastoreName}'",
});
});
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) {
// Lookup vSphere fabric datastore using its name
final var this = VraFunctions.getFabricDatastoreVsphere(GetFabricDatastoreVsphereArgs.builder()
.filter(String.format("name eq '%s'", datastoreName))
.build());
}
}
variables:
# Lookup vSphere fabric datastore using its name
this:
fn::invoke:
function: vra:getFabricDatastoreVsphere
arguments:
filter: name eq '${datastoreName}'
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 dictionaryThe following arguments are supported:
- Filter string
- Search criteria to narrow down the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. - Id string
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. -
List<Get
Fabric Datastore Vsphere Tag> - 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
idorfiltermust be specified. - Id string
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. -
[]Get
Fabric Datastore Vsphere Tag - 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
idorfiltermust be specified. - id String
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. -
List<Get
Fabric Datastore Vsphere Tag> - 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
idorfiltermust be specified. - id string
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. -
Get
Fabric Datastore Vsphere Tag[] - 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
idorfiltermust be specified. - id str
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. -
Sequence[Get
Fabric Datastore Vsphere Tag] - 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
idorfiltermust be specified. - id String
- The id of the vSphere fabric datastore resource instance. Only one of
idorfiltermust be specified. - 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:
- 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 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Free
Size stringGb - Indicates free size available in datastore.
- Id string
- Links
List<Get
Fabric Datastore Vsphere Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id 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.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
-
List<Get
Fabric Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- 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 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Free
Size stringGb - Indicates free size available in datastore.
- Id string
- Links
[]Get
Fabric Datastore Vsphere Link - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id 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.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
-
[]Get
Fabric Datastore Vsphere Tag - A set of tag keys and optional values that were set on this resource:
- 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 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- free
Size StringGb - Indicates free size available in datastore.
- id String
- links
List<Get
Fabric Datastore Vsphere Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name String
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id 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.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
-
List<Get
Fabric Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- 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 8601 and UTC.
- description string
- A human-friendly description.
- external
Id string - External entity Id on the provider side.
- external
Region stringId - Id of datacenter in which the datastore is present.
- free
Size stringGb - Indicates free size available in datastore.
- id string
- links
Get
Fabric Datastore Vsphere Link[] - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id 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.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter string
-
Get
Fabric Datastore Vsphere Tag[] - A set of tag keys and optional values that were set on this resource:
- 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 8601 and UTC.
- description str
- A human-friendly description.
- external_
id str - External entity Id on the provider side.
- external_
region_ strid - Id of datacenter in which the datastore is present.
- free_
size_ strgb - Indicates free size available in datastore.
- id str
- links
Sequence[Get
Fabric Datastore Vsphere Link] - Hypermedia as the Engine of Application State (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
-
Sequence[Get
Fabric Datastore Vsphere Tag] - A set of tag keys and optional values that were set on this resource:
- 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 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- free
Size StringGb - Indicates free size available in datastore.
- id String
- links List<Property Map>
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name String
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id 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.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
- List<Property Map>
- A set of tag keys and optional values that were set on this resource:
Supporting Types
GetFabricDatastoreVsphereLink
GetFabricDatastoreVsphereTag
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
