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,
});
import pulumi
import pulumi_vra as vra
this = vra.get_storage_profile_vsphere(id=vra_storage_profile_vsphere["this"]["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.LookupStorageProfileVsphere(ctx, &vra.LookupStorageProfileVsphereArgs{
			Id: pulumi.StringRef(vra_storage_profile_vsphere.This.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.GetStorageProfileVsphere.Invoke(new()
    {
        Id = vra_storage_profile_vsphere.This.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.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());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getStorageProfileVsphere
      arguments:
        id: ${vra_storage_profile_vsphere.this.id}
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'",
});
import pulumi
import pulumi_vra as vra
this = vra.get_storage_profile_vsphere(filter="externalRegionId eq 'foobar'")
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
	})
}
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'",
    });
});
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());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getStorageProfileVsphere
      arguments:
        filter: externalRegionId eq 'foobar'
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>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]func LookupStorageProfileVsphere(ctx *Context, args *LookupStorageProfileVsphereArgs, opts ...InvokeOption) (*LookupStorageProfileVsphereResult, error)
func LookupStorageProfileVsphereOutput(ctx *Context, args *LookupStorageProfileVsphereOutputArgs, opts ...InvokeOption) LookupStorageProfileVsphereResultOutput> 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)
}public static CompletableFuture<GetStorageProfileVsphereResult> getStorageProfileVsphere(GetStorageProfileVsphereArgs args, InvokeOptions options)
public static Output<GetStorageProfileVsphereResult> getStorageProfileVsphere(GetStorageProfileVsphereArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getStorageProfileVsphere:getStorageProfileVsphere
  arguments:
    # arguments dictionaryThe 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.
 - string
 - Indicates whether this storage profile supports encryption or not.
 - 
List<Get
Storage Profile Vsphere Tag>  - 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.
 - string
 - Indicates whether this storage profile supports encryption or not.
 - 
[]Get
Storage Profile Vsphere Tag  - 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.
 - String
 - Indicates whether this storage profile supports encryption or not.
 - 
List<Get
Storage Profile Vsphere Tag>  - 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.
 - string
 - Indicates whether this storage profile supports encryption or not.
 - 
Get
Storage Profile Vsphere Tag[]  - 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.
 - str
 - Indicates whether this storage profile supports encryption or not.
 - 
Sequence[Get
Storage Profile Vsphere Tag]  - 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.
 - String
 - Indicates whether this storage profile supports encryption or not.
 - 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:
- Cloud
Account stringId  - Id of the cloud account this storage profile belongs to.
 - Created
At string - 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 string
 - A human-friendly description.
 - Disk
Mode string - Type of mode for the disk.
 - Disk
Type string - Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
 - External
Region stringId  - The id of the region as seen in the cloud provider for which this profile is defined.
 - Id string
 - Limit
Iops string - The upper bound for the I/O operations per second allocated for each virtual disk.
 - Links
List<Get
Storage Profile Vsphere Link>  - HATEOAS of the entity
 - Name string
 - A human-friendly name used as an identifier in APIs that support this option.
 - Org
Id string - The id of the organization this entity belongs to.
 - Owner string
 - Email of the user that owns the entity.
 - Provisioning
Type string - Type of provisioning policy for the disk.
 - string
 - 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 string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Filter string
 - string
 - 
List<Get
Storage Profile Vsphere Tag>  - A set of tag keys and optional values that were set on this Network Profile.
example: 
[ { "key" : "ownedBy", "value": "Rainpole" } ] 
- Cloud
Account stringId  - Id of the cloud account this storage profile belongs to.
 - Created
At string - 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 string
 - A human-friendly description.
 - Disk
Mode string - Type of mode for the disk.
 - Disk
Type string - Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
 - External
Region stringId  - The id of the region as seen in the cloud provider for which this profile is defined.
 - Id string
 - Limit
Iops string - The upper bound for the I/O operations per second allocated for each virtual disk.
 - Links
[]Get
Storage Profile Vsphere Link  - HATEOAS of the entity
 - Name string
 - A human-friendly name used as an identifier in APIs that support this option.
 - Org
Id string - The id of the organization this entity belongs to.
 - Owner string
 - Email of the user that owns the entity.
 - Provisioning
Type string - Type of provisioning policy for the disk.
 - string
 - 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 string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Filter string
 - string
 - 
[]Get
Storage Profile Vsphere Tag  - A set of tag keys and optional values that were set on this Network Profile.
example: 
[ { "key" : "ownedBy", "value": "Rainpole" } ] 
- cloud
Account StringId  - Id of the cloud account this storage profile belongs to.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - default
Item Boolean - Indicates if this storage profile is a default profile.
 - description String
 - A human-friendly description.
 - disk
Mode String - Type of mode for the disk.
 - disk
Type String - Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
 - external
Region StringId  - The id of the region as seen in the cloud provider for which this profile is defined.
 - id String
 - limit
Iops String - The upper bound for the I/O operations per second allocated for each virtual disk.
 - links
List<Get
Storage Profile Vsphere Link>  - HATEOAS of the entity
 - name String
 - A human-friendly name used as an identifier in APIs that support this option.
 - org
Id String - The id of the organization this entity belongs to.
 - owner String
 - Email of the user that owns the entity.
 - provisioning
Type String - Type of provisioning policy for the disk.
 - String
 - A specific number of shares assigned to each virtual machine.
 - supports
Encryption Boolean - Indicates whether this storage policy should support encryption or not.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - filter String
 - String
 - 
List<Get
Storage Profile Vsphere Tag>  - A set of tag keys and optional values that were set on this Network Profile.
example: 
[ { "key" : "ownedBy", "value": "Rainpole" } ] 
- cloud
Account stringId  - Id of the cloud account this storage profile belongs to.
 - created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - default
Item boolean - Indicates if this storage profile is a default profile.
 - description string
 - A human-friendly description.
 - disk
Mode string - Type of mode for the disk.
 - disk
Type string - Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
 - external
Region stringId  - The id of the region as seen in the cloud provider for which this profile is defined.
 - id string
 - limit
Iops string - The upper bound for the I/O operations per second allocated for each virtual disk.
 - links
Get
Storage Profile Vsphere Link[]  - HATEOAS of the entity
 - name string
 - A human-friendly name used as an identifier in APIs that support this option.
 - org
Id string - The id of the organization this entity belongs to.
 - owner string
 - Email of the user that owns the entity.
 - provisioning
Type string - Type of provisioning policy for the disk.
 - string
 - A specific number of shares assigned to each virtual machine.
 - supports
Encryption boolean - Indicates whether this storage policy should support encryption or not.
 - updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - filter string
 - string
 - 
Get
Storage Profile Vsphere Tag[]  - A set of tag keys and optional values that were set on this Network Profile.
example: 
[ { "key" : "ownedBy", "value": "Rainpole" } ] 
- cloud_
account_ strid  - 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_ strid  - 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[Get
Storage Profile Vsphere Link]  - 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.
 - 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
 - str
 - 
Sequence[Get
Storage Profile Vsphere Tag]  - A set of tag keys and optional values that were set on this Network Profile.
example: 
[ { "key" : "ownedBy", "value": "Rainpole" } ] 
- cloud
Account StringId  - Id of the cloud account this storage profile belongs to.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - default
Item Boolean - Indicates if this storage profile is a default profile.
 - description String
 - A human-friendly description.
 - disk
Mode String - Type of mode for the disk.
 - disk
Type String - Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
 - external
Region StringId  - The id of the region as seen in the cloud provider for which this profile is defined.
 - id String
 - limit
Iops 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.
 - org
Id String - The id of the organization this entity belongs to.
 - owner String
 - Email of the user that owns the entity.
 - provisioning
Type String - Type of provisioning policy for the disk.
 - String
 - A specific number of shares assigned to each virtual machine.
 - supports
Encryption Boolean - Indicates whether this storage policy should support encryption or not.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - filter String
 - String
 - 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
GetStorageProfileVsphereLink    
GetStorageProfileVsphereTag    
Package Details
- Repository
 - vra vmware/terraform-provider-vra
 - License
 - Notes
 - This Pulumi package is based on the 
vraTerraform Provider.