vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getFabricStoragePolicyVsphere
Explore with Pulumi AI
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";
const _this = vra.getFabricStoragePolicyVsphere({
    id: _var.fabric_storage_policy_vsphere_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_fabric_storage_policy_vsphere(id=var["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 {
		_, err := vra.GetFabricStoragePolicyVsphere(ctx, &vra.GetFabricStoragePolicyVsphereArgs{
			Id: pulumi.StringRef(_var.Fabric_storage_policy_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.GetFabricStoragePolicyVsphere.Invoke(new()
    {
        Id = @var.Fabric_storage_policy_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.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) {
        final var this = VraFunctions.getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs.builder()
            .id(var_.fabric_storage_policy_vsphere_id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getFabricStoragePolicyVsphere
      arguments:
        id: ${var.fabric_storage_policy_vsphere_id}
Fabric vSphere storage policy by filter query:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getFabricStoragePolicyVsphere({
    filter: `name eq '${_var.name}'`,
});
import pulumi
import pulumi_vra as vra
this = vra.get_fabric_storage_policy_vsphere(filter=f"name eq '{var['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.GetFabricStoragePolicyVsphere(ctx, &vra.GetFabricStoragePolicyVsphereArgs{
			Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", _var.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.GetFabricStoragePolicyVsphere.Invoke(new()
    {
        Filter = $"name eq '{@var.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) {
        final var this = VraFunctions.getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs.builder()
            .filter(String.format("name eq '%s'", var_.name()))
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getFabricStoragePolicyVsphere
      arguments:
        filter: name eq '${var.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:
- CloudAccount List<string>Ids 
- 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.
- ExternalId string
- External entity Id on the provider side.
- ExternalRegion stringId 
- The id of the region for which this entity is defined.
- Id string
- Links
List<GetFabric Storage Policy Vsphere Link> 
- 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' or 'region_id' must be specified.
- OrgId string
- The id of the organization this entity belongs to.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- CloudAccount []stringIds 
- 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.
- ExternalId string
- External entity Id on the provider side.
- ExternalRegion stringId 
- The id of the region for which this entity is defined.
- Id string
- Links
[]GetFabric Storage Policy Vsphere Link 
- 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' or 'region_id' must be specified.
- OrgId string
- The id of the organization this entity belongs to.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- cloudAccount List<String>Ids 
- 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.
- externalId String
- External entity Id on the provider side.
- externalRegion StringId 
- The id of the region for which this entity is defined.
- id String
- links
List<GetFabric Storage Policy Vsphere Link> 
- 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' or 'region_id' must be specified.
- orgId String
- The id of the organization this entity belongs to.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
- cloudAccount string[]Ids 
- 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.
- externalId string
- External entity Id on the provider side.
- externalRegion stringId 
- The id of the region for which this entity is defined.
- id string
- links
GetFabric Storage Policy Vsphere Link[] 
- 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' or 'region_id' must be specified.
- orgId string
- The id of the organization this entity belongs to.
- updatedAt 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[GetFabric Storage Policy Vsphere Link] 
- 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' or 'region_id' must 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
- cloudAccount List<String>Ids 
- 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.
- externalId String
- External entity Id on the provider side.
- externalRegion StringId 
- The id of the region for which this entity is defined.
- id String
- links List<Property Map>
- 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' or 'region_id' must be specified.
- orgId String
- The id of the organization this entity belongs to.
- updatedAt 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.