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:
- 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>  - 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.
 - 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  - 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.
 - 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>  - 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.
 - 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[]  - 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.
 - 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]  - 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
 
- 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>
 - 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.
 - 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.