1. Packages
  2. Vra Provider
  3. API Docs
  4. getStorageProfileVsphere
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.getStorageProfileVsphere

Explore with Pulumi AI

Example Usage

S

This is an example of how to create a storage profile vsphere data source.

Storage profile vsphere data source by its id:

import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";

const _this = vra.getStorageProfileVsphere({
    id: vra_storage_profile_vsphere["this"].id,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_storage_profile_vsphere(id=vra_storage_profile_vsphere["this"]["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.LookupStorageProfileVsphere(ctx, &vra.LookupStorageProfileVsphereArgs{
			Id: pulumi.StringRef(vra_storage_profile_vsphere.This.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.GetStorageProfileVsphere.Invoke(new()
    {
        Id = vra_storage_profile_vsphere.This.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.GetStorageProfileVsphereArgs;
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.getStorageProfileVsphere(GetStorageProfileVsphereArgs.builder()
            .id(vra_storage_profile_vsphere.this().id())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getStorageProfileVsphere
      arguments:
        id: ${vra_storage_profile_vsphere.this.id}
Copy

Vra storage profile data source filter by external region id:

import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";

const _this = vra.getStorageProfileVsphere({
    filter: "externalRegionId eq 'foobar'",
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_storage_profile_vsphere(filter="externalRegionId eq 'foobar'")
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.LookupStorageProfileVsphere(ctx, &vra.LookupStorageProfileVsphereArgs{
			Filter: pulumi.StringRef("externalRegionId eq 'foobar'"),
		}, 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.GetStorageProfileVsphere.Invoke(new()
    {
        Filter = "externalRegionId eq 'foobar'",
    });

});
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.GetStorageProfileVsphereArgs;
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.getStorageProfileVsphere(GetStorageProfileVsphereArgs.builder()
            .filter("externalRegionId eq 'foobar'")
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getStorageProfileVsphere
      arguments:
        filter: externalRegionId eq 'foobar'
Copy

A storage profile vsphere data source supports the following arguments:

Using getStorageProfileVsphere

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 getStorageProfileVsphere(args: GetStorageProfileVsphereArgs, opts?: InvokeOptions): Promise<GetStorageProfileVsphereResult>
function getStorageProfileVsphereOutput(args: GetStorageProfileVsphereOutputArgs, opts?: InvokeOptions): Output<GetStorageProfileVsphereResult>
Copy
def get_storage_profile_vsphere(filter: Optional[str] = None,
                                id: Optional[str] = None,
                                shares_level: Optional[str] = None,
                                tags: Optional[Sequence[GetStorageProfileVsphereTag]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetStorageProfileVsphereResult
def get_storage_profile_vsphere_output(filter: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                shares_level: Optional[pulumi.Input[str]] = None,
                                tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetStorageProfileVsphereTagArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetStorageProfileVsphereResult]
Copy
func LookupStorageProfileVsphere(ctx *Context, args *LookupStorageProfileVsphereArgs, opts ...InvokeOption) (*LookupStorageProfileVsphereResult, error)
func LookupStorageProfileVsphereOutput(ctx *Context, args *LookupStorageProfileVsphereOutputArgs, opts ...InvokeOption) LookupStorageProfileVsphereResultOutput
Copy

> Note: This function is named LookupStorageProfileVsphere in the Go SDK.

public static class GetStorageProfileVsphere 
{
    public static Task<GetStorageProfileVsphereResult> InvokeAsync(GetStorageProfileVsphereArgs args, InvokeOptions? opts = null)
    public static Output<GetStorageProfileVsphereResult> Invoke(GetStorageProfileVsphereInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStorageProfileVsphereResult> getStorageProfileVsphere(GetStorageProfileVsphereArgs args, InvokeOptions options)
public static Output<GetStorageProfileVsphereResult> getStorageProfileVsphere(GetStorageProfileVsphereArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vra:index/getStorageProfileVsphere:getStorageProfileVsphere
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
Id string
The id of the image profile instance.
SharesLevel string
Indicates whether this storage profile supports encryption or not.
Tags List<GetStorageProfileVsphereTag>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
Filter string
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
Id string
The id of the image profile instance.
SharesLevel string
Indicates whether this storage profile supports encryption or not.
Tags []GetStorageProfileVsphereTag
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
filter String
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
id String
The id of the image profile instance.
sharesLevel String
Indicates whether this storage profile supports encryption or not.
tags List<GetStorageProfileVsphereTag>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
filter string
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
id string
The id of the image profile instance.
sharesLevel string
Indicates whether this storage profile supports encryption or not.
tags GetStorageProfileVsphereTag[]
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
filter str
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
id str
The id of the image profile instance.
shares_level str
Indicates whether this storage profile supports encryption or not.
tags Sequence[GetStorageProfileVsphereTag]
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
filter String
Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
id String
The id of the image profile instance.
sharesLevel String
Indicates whether this storage profile supports encryption or not.
tags List<Property Map>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]

getStorageProfileVsphere Result

The following output properties are available:

CloudAccountId string
Id of the cloud account this storage profile belongs to.
CreatedAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
DefaultItem bool
Indicates if this storage profile is a default profile.
Description string
A human-friendly description.
DiskMode string
Type of mode for the disk.
DiskType string
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
ExternalRegionId string
The id of the region as seen in the cloud provider for which this profile is defined.
Id string
LimitIops string
The upper bound for the I/O operations per second allocated for each virtual disk.
Links List<GetStorageProfileVsphereLink>
HATEOAS of the entity
Name string
A human-friendly name used as an identifier in APIs that support this option.
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
ProvisioningType string
Type of provisioning policy for the disk.
Shares string
A specific number of shares assigned to each virtual machine.
SupportsEncryption bool
Indicates whether this storage policy should support encryption or not.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
Filter string
SharesLevel string
Tags List<GetStorageProfileVsphereTag>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
CloudAccountId string
Id of the cloud account this storage profile belongs to.
CreatedAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
DefaultItem bool
Indicates if this storage profile is a default profile.
Description string
A human-friendly description.
DiskMode string
Type of mode for the disk.
DiskType string
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
ExternalRegionId string
The id of the region as seen in the cloud provider for which this profile is defined.
Id string
LimitIops string
The upper bound for the I/O operations per second allocated for each virtual disk.
Links []GetStorageProfileVsphereLink
HATEOAS of the entity
Name string
A human-friendly name used as an identifier in APIs that support this option.
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
ProvisioningType string
Type of provisioning policy for the disk.
Shares string
A specific number of shares assigned to each virtual machine.
SupportsEncryption bool
Indicates whether this storage policy should support encryption or not.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
Filter string
SharesLevel string
Tags []GetStorageProfileVsphereTag
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
cloudAccountId String
Id of the cloud account this storage profile belongs to.
createdAt String
Date when the entity was created. The date is in ISO 6801 and UTC.
defaultItem Boolean
Indicates if this storage profile is a default profile.
description String
A human-friendly description.
diskMode String
Type of mode for the disk.
diskType String
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
externalRegionId String
The id of the region as seen in the cloud provider for which this profile is defined.
id String
limitIops String
The upper bound for the I/O operations per second allocated for each virtual disk.
links List<GetStorageProfileVsphereLink>
HATEOAS of the entity
name String
A human-friendly name used as an identifier in APIs that support this option.
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
provisioningType String
Type of provisioning policy for the disk.
shares String
A specific number of shares assigned to each virtual machine.
supportsEncryption Boolean
Indicates whether this storage policy should support encryption or not.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
filter String
sharesLevel String
tags List<GetStorageProfileVsphereTag>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
cloudAccountId string
Id of the cloud account this storage profile belongs to.
createdAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
defaultItem boolean
Indicates if this storage profile is a default profile.
description string
A human-friendly description.
diskMode string
Type of mode for the disk.
diskType string
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
externalRegionId string
The id of the region as seen in the cloud provider for which this profile is defined.
id string
limitIops string
The upper bound for the I/O operations per second allocated for each virtual disk.
links GetStorageProfileVsphereLink[]
HATEOAS of the entity
name string
A human-friendly name used as an identifier in APIs that support this option.
orgId string
The id of the organization this entity belongs to.
owner string
Email of the user that owns the entity.
provisioningType string
Type of provisioning policy for the disk.
shares string
A specific number of shares assigned to each virtual machine.
supportsEncryption boolean
Indicates whether this storage policy should support encryption or not.
updatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
filter string
sharesLevel string
tags GetStorageProfileVsphereTag[]
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
cloud_account_id str
Id of the cloud account this storage profile belongs to.
created_at str
Date when the entity was created. The date is in ISO 6801 and UTC.
default_item bool
Indicates if this storage profile is a default profile.
description str
A human-friendly description.
disk_mode str
Type of mode for the disk.
disk_type str
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
external_region_id str
The id of the region as seen in the cloud provider for which this profile is defined.
id str
limit_iops str
The upper bound for the I/O operations per second allocated for each virtual disk.
links Sequence[GetStorageProfileVsphereLink]
HATEOAS of the entity
name str
A human-friendly name used as an identifier in APIs that support this option.
org_id str
The id of the organization this entity belongs to.
owner str
Email of the user that owns the entity.
provisioning_type str
Type of provisioning policy for the disk.
shares str
A specific number of shares assigned to each virtual machine.
supports_encryption bool
Indicates whether this storage policy should support encryption or not.
updated_at str
Date when the entity was last updated. The date is ISO 8601 and UTC.
filter str
shares_level str
tags Sequence[GetStorageProfileVsphereTag]
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
cloudAccountId String
Id of the cloud account this storage profile belongs to.
createdAt String
Date when the entity was created. The date is in ISO 6801 and UTC.
defaultItem Boolean
Indicates if this storage profile is a default profile.
description String
A human-friendly description.
diskMode String
Type of mode for the disk.
diskType String
Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
externalRegionId String
The id of the region as seen in the cloud provider for which this profile is defined.
id String
limitIops String
The upper bound for the I/O operations per second allocated for each virtual disk.
links List<Property Map>
HATEOAS of the entity
name String
A human-friendly name used as an identifier in APIs that support this option.
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
provisioningType String
Type of provisioning policy for the disk.
shares String
A specific number of shares assigned to each virtual machine.
supportsEncryption Boolean
Indicates whether this storage policy should support encryption or not.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
filter String
sharesLevel String
tags List<Property Map>
A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]

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

GetStorageProfileVsphereTag

Key This property is required. string
Value This property is required. string
Key This property is required. string
Value This property is required. string
key This property is required. String
value This property is required. String
key This property is required. string
value This property is required. string
key This property is required. str
value This property is required. str
key This property is required. String
value 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.