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 fabric vSphere storage policies.
Fabric vSphere storage policy by Id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
// Lookup fabric vSphere storage account using its Id
const _this = vra.getFabricStoragePolicyVsphere({
id: fabricStoragePolicyVsphereId,
});
import pulumi
import pulumi_vra as vra
# Lookup fabric vSphere storage account using its Id
this = vra.get_fabric_storage_policy_vsphere(id=fabric_storage_policy_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 fabric vSphere storage account using its Id
_, err := vra.GetFabricStoragePolicyVsphere(ctx, &vra.GetFabricStoragePolicyVsphereArgs{
Id: pulumi.StringRef(fabricStoragePolicyVsphereId),
}, 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 fabric vSphere storage account using its Id
var @this = Vra.GetFabricStoragePolicyVsphere.Invoke(new()
{
Id = fabricStoragePolicyVsphereId,
});
});
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.GetFabricStoragePolicyVsphereArgs;
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 fabric vSphere storage account using its Id
final var this = VraFunctions.getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs.builder()
.id(fabricStoragePolicyVsphereId)
.build());
}
}
variables:
# Lookup fabric vSphere storage account using its Id
this:
fn::invoke:
function: vra:getFabricStoragePolicyVsphere
arguments:
id: ${fabricStoragePolicyVsphereId}
Fabric vSphere storage policy by filter query:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
// Lookup fabric vSphere storage policy using its name
const _this = vra.getFabricStoragePolicyVsphere({
filter: `name eq '${name}'`,
});
import pulumi
import pulumi_vra as vra
# Lookup fabric vSphere storage policy using its name
this = vra.get_fabric_storage_policy_vsphere(filter=f"name eq '{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 fabric vSphere storage policy using its name
_, err := vra.GetFabricStoragePolicyVsphere(ctx, &vra.GetFabricStoragePolicyVsphereArgs{
Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", 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(() =>
{
// Lookup fabric vSphere storage policy using its name
var @this = Vra.GetFabricStoragePolicyVsphere.Invoke(new()
{
Filter = $"name eq '{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.GetFabricStoragePolicyVsphereArgs;
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 fabric vSphere storage policy using its name
final var this = VraFunctions.getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs.builder()
.filter(String.format("name eq '%s'", name))
.build());
}
}
variables:
# Lookup fabric vSphere storage policy using its name
this:
fn::invoke:
function: vra:getFabricStoragePolicyVsphere
arguments:
filter: name eq '${name}'
A fabric vSphere storage policy supports the following arguments:
Using getFabricStoragePolicyVsphere
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 getFabricStoragePolicyVsphere(args: GetFabricStoragePolicyVsphereArgs, opts?: InvokeOptions): Promise<GetFabricStoragePolicyVsphereResult>
function getFabricStoragePolicyVsphereOutput(args: GetFabricStoragePolicyVsphereOutputArgs, opts?: InvokeOptions): Output<GetFabricStoragePolicyVsphereResult>def get_fabric_storage_policy_vsphere(filter: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFabricStoragePolicyVsphereResult
def get_fabric_storage_policy_vsphere_output(filter: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFabricStoragePolicyVsphereResult]func GetFabricStoragePolicyVsphere(ctx *Context, args *GetFabricStoragePolicyVsphereArgs, opts ...InvokeOption) (*GetFabricStoragePolicyVsphereResult, error)
func GetFabricStoragePolicyVsphereOutput(ctx *Context, args *GetFabricStoragePolicyVsphereOutputArgs, opts ...InvokeOption) GetFabricStoragePolicyVsphereResultOutput> Note: This function is named GetFabricStoragePolicyVsphere in the Go SDK.
public static class GetFabricStoragePolicyVsphere
{
public static Task<GetFabricStoragePolicyVsphereResult> InvokeAsync(GetFabricStoragePolicyVsphereArgs args, InvokeOptions? opts = null)
public static Output<GetFabricStoragePolicyVsphereResult> Invoke(GetFabricStoragePolicyVsphereInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFabricStoragePolicyVsphereResult> getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs args, InvokeOptions options)
public static Output<GetFabricStoragePolicyVsphereResult> getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getFabricStoragePolicyVsphere:getFabricStoragePolicyVsphere
arguments:
# arguments dictionaryThe following arguments are supported:
getFabricStoragePolicyVsphere 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 6801 and UTC.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - The id of the region for which this entity is defined.
- Id string
- Links
List<Get
Fabric Storage Policy Vsphere Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- A human-friendly name used as an identifier in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - Org
Id string - The id of the organization this entity belongs to.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- 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.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - The id of the region for which this entity is defined.
- Id string
- Links
[]Get
Fabric Storage Policy Vsphere Link - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- A human-friendly name used as an identifier in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - Org
Id string - The id of the organization this entity belongs to.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- 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.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - The id of the region for which this entity is defined.
- id String
- links
List<Get
Fabric Storage Policy Vsphere Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name String
- A human-friendly name used as an identifier in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - org
Id String - The id of the organization this entity belongs to.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
- 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.
- external
Id string - External entity Id on the provider side.
- external
Region stringId - The id of the region for which this entity is defined.
- id string
- links
Get
Fabric Storage Policy Vsphere Link[] - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name string
- A human-friendly name used as an identifier in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - org
Id string - The id of the organization this entity belongs to.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter string
- 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.
- external_
id str - External entity Id on the provider side.
- external_
region_ strid - The id of the region for which this entity is defined.
- id str
- links
Sequence[Get
Fabric Storage Policy Vsphere Link] - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name str
- A human-friendly name used as an identifier in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - org_
id str - The id of the organization this entity belongs to.
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter str
- 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.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - The id of the region for which this entity is defined.
- 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 in APIs that support this option. Only one of
filter,id,name, orregion_idmust be specified. - org
Id String - The id of the organization this entity belongs to.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
Supporting Types
GetFabricStoragePolicyVsphereLink
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
