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<GetStorage 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.
- 
[]GetStorage 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<GetStorage 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.
- 
GetStorage 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[GetStorage 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:
- CloudAccount stringId 
- 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.
- ExternalRegion stringId 
- 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<GetStorage Profile Vsphere Link> 
- 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.
- 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
- string
- 
List<GetStorage Profile Vsphere Tag> 
- A set of tag keys and optional values that were set on this Network Profile.
example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
- CloudAccount stringId 
- 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.
- ExternalRegion stringId 
- 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
[]GetStorage Profile Vsphere Link 
- 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.
- 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
- string
- 
[]GetStorage Profile Vsphere Tag 
- A set of tag keys and optional values that were set on this Network Profile.
example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
- cloudAccount StringId 
- 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.
- externalRegion StringId 
- 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<GetStorage Profile Vsphere Link> 
- 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.
- 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
- String
- 
List<GetStorage Profile Vsphere Tag> 
- A set of tag keys and optional values that were set on this Network Profile.
example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
- cloudAccount stringId 
- 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.
- externalRegion stringId 
- 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
GetStorage Profile Vsphere Link[] 
- 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.
- 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
- string
- 
GetStorage 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[GetStorage 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[GetStorage Profile Vsphere Tag] 
- A set of tag keys and optional values that were set on this Network Profile.
example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
- cloudAccount StringId 
- 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.
- externalRegion StringId 
- 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.
- 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
- 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.