1. Packages
  2. Vra Provider
  3. API Docs
  4. getFabricStoragePolicyVsphere
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,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_fabric_storage_policy_vsphere(id=var["fabric_storage_policy_vsphere_id"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getFabricStoragePolicyVsphere
      arguments:
        id: ${var.fabric_storage_policy_vsphere_id}
Copy

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}'`,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_fabric_storage_policy_vsphere(filter=f"name eq '{var['name']}'")
Copy
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
	})
}
Copy
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}'",
    });

});
Copy
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());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getFabricStoragePolicyVsphere
      arguments:
        filter: name eq '${var.name}'
Copy

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>
Copy
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]
Copy
func GetFabricStoragePolicyVsphere(ctx *Context, args *GetFabricStoragePolicyVsphereArgs, opts ...InvokeOption) (*GetFabricStoragePolicyVsphereResult, error)
func GetFabricStoragePolicyVsphereOutput(ctx *Context, args *GetFabricStoragePolicyVsphereOutputArgs, opts ...InvokeOption) GetFabricStoragePolicyVsphereResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFabricStoragePolicyVsphereResult> getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs args, InvokeOptions options)
public static Output<GetFabricStoragePolicyVsphereResult> getFabricStoragePolicyVsphere(GetFabricStoragePolicyVsphereArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vra:index/getFabricStoragePolicyVsphere:getFabricStoragePolicyVsphere
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
Id string
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
Filter string
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
Id string
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
filter String
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
id String
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
filter string
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
id string
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
filter str
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
id str
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
filter String
Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
id String
The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.

getFabricStoragePolicyVsphere 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 6801 and UTC.
ExternalId string
External entity Id on the provider side.
ExternalRegionId string
The id of the region for which this entity is defined.
Id string
Links List<GetFabricStoragePolicyVsphereLink>
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
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 6801 and UTC.
ExternalId string
External entity Id on the provider side.
ExternalRegionId string
The id of the region for which this entity is defined.
Id string
Links []GetFabricStoragePolicyVsphereLink
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
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 6801 and UTC.
externalId String
External entity Id on the provider side.
externalRegionId String
The id of the region for which this entity is defined.
id String
links List<GetFabricStoragePolicyVsphereLink>
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
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 6801 and UTC.
externalId string
External entity Id on the provider side.
externalRegionId string
The id of the region for which this entity is defined.
id string
links GetFabricStoragePolicyVsphereLink[]
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_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 6801 and UTC.
external_id str
External entity Id on the provider side.
external_region_id str
The id of the region for which this entity is defined.
id str
links Sequence[GetFabricStoragePolicyVsphereLink]
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
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 6801 and UTC.
externalId String
External entity Id on the provider side.
externalRegionId String
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

Href This property is required. string
Hrefs This property is required. List<string>
Rel This property is required. string
Href This property is required. string
Hrefs This property is required. []string
Rel This property is required. string
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String
href This property is required. string
hrefs This property is required. string[]
rel This property is required. string
href This property is required. str
hrefs This property is required. Sequence[str]
rel This property is required. str
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String

Package Details

Repository
vra vmware/terraform-provider-vra
License
Notes
This Pulumi package is based on the vra Terraform Provider.