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

vra.getStorageProfileAzure

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    Example Usage

    S

    This is an example of how to create a storage profile azure resource.

    Storage profile azure data source by its id:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getStorageProfileAzure({
        id: vra_storage_profile_azure["this"].id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_storage_profile_azure(id=vra_storage_profile_azure["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.LookupStorageProfileAzure(ctx, &vra.LookupStorageProfileAzureArgs{
    			Id: pulumi.StringRef(vra_storage_profile_azure.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.GetStorageProfileAzure.Invoke(new()
        {
            Id = vra_storage_profile_azure.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.GetStorageProfileAzureArgs;
    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.getStorageProfileAzure(GetStorageProfileAzureArgs.builder()
                .id(vra_storage_profile_azure.this().id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getStorageProfileAzure
          arguments:
            id: ${vra_storage_profile_azure.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.getStorageProfileAzure({
        filter: "externalRegionId eq 'foobar'",
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_storage_profile_azure(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.LookupStorageProfileAzure(ctx, &vra.LookupStorageProfileAzureArgs{
    			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.GetStorageProfileAzure.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.GetStorageProfileAzureArgs;
    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.getStorageProfileAzure(GetStorageProfileAzureArgs.builder()
                .filter("externalRegionId eq 'foobar'")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getStorageProfileAzure
          arguments:
            filter: externalRegionId eq 'foobar'
    

    A storage profile azure data source supports the following arguments:

    Using getStorageProfileAzure

    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 getStorageProfileAzure(args: GetStorageProfileAzureArgs, opts?: InvokeOptions): Promise<GetStorageProfileAzureResult>
    function getStorageProfileAzureOutput(args: GetStorageProfileAzureOutputArgs, opts?: InvokeOptions): Output<GetStorageProfileAzureResult>
    def get_storage_profile_azure(filter: Optional[str] = None,
                                  id: Optional[str] = None,
                                  tags: Optional[Sequence[GetStorageProfileAzureTag]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetStorageProfileAzureResult
    def get_storage_profile_azure_output(filter: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetStorageProfileAzureTagArgs]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetStorageProfileAzureResult]
    func LookupStorageProfileAzure(ctx *Context, args *LookupStorageProfileAzureArgs, opts ...InvokeOption) (*LookupStorageProfileAzureResult, error)
    func LookupStorageProfileAzureOutput(ctx *Context, args *LookupStorageProfileAzureOutputArgs, opts ...InvokeOption) LookupStorageProfileAzureResultOutput

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

    public static class GetStorageProfileAzure 
    {
        public static Task<GetStorageProfileAzureResult> InvokeAsync(GetStorageProfileAzureArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageProfileAzureResult> Invoke(GetStorageProfileAzureInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageProfileAzureResult> getStorageProfileAzure(GetStorageProfileAzureArgs args, InvokeOptions options)
    public static Output<GetStorageProfileAzureResult> getStorageProfileAzure(GetStorageProfileAzureArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getStorageProfileAzure:getStorageProfileAzure
      arguments:
        # arguments dictionary

    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.
    Tags List<GetStorageProfileAzureTag>
    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.
    Tags []GetStorageProfileAzureTag
    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.
    tags List<GetStorageProfileAzureTag>
    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.
    tags GetStorageProfileAzureTag[]
    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.
    tags Sequence[GetStorageProfileAzureTag]
    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.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]

    getStorageProfileAzure Result

    The following output properties are available:

    CloudAccountId string
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    DataDiskCaching string
    Indicates the caching mechanism for additional disk.
    DefaultItem bool
    Indicates if this storage profile is a default profile.
    Description string
    A human-friendly description.
    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
    Links List<GetStorageProfileAzureLink>
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    OsDiskCaching string
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    Owner string
    Email of the user that owns the entity.
    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
    Tags List<GetStorageProfileAzureTag>
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
    CloudAccountId string
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    DataDiskCaching string
    Indicates the caching mechanism for additional disk.
    DefaultItem bool
    Indicates if this storage profile is a default profile.
    Description string
    A human-friendly description.
    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
    Links []GetStorageProfileAzureLink
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    OsDiskCaching string
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    Owner string
    Email of the user that owns the entity.
    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
    Tags []GetStorageProfileAzureTag
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
    cloudAccountId String
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dataDiskCaching String
    Indicates the caching mechanism for additional disk.
    defaultItem Boolean
    Indicates if this storage profile is a default profile.
    description String
    A human-friendly description.
    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
    links List<GetStorageProfileAzureLink>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier in APIs that support this option.
    orgId String
    osDiskCaching String
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    owner String
    Email of the user that owns the entity.
    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
    tags List<GetStorageProfileAzureTag>
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
    cloudAccountId string
    createdAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dataDiskCaching string
    Indicates the caching mechanism for additional disk.
    defaultItem boolean
    Indicates if this storage profile is a default profile.
    description string
    A human-friendly description.
    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
    links GetStorageProfileAzureLink[]
    HATEOAS of the entity
    name string
    A human-friendly name used as an identifier in APIs that support this option.
    orgId string
    osDiskCaching string
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    owner string
    Email of the user that owns the entity.
    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
    tags GetStorageProfileAzureTag[]
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
    cloud_account_id str
    created_at str
    Date when the entity was created. The date is in ISO 6801 and UTC.
    data_disk_caching str
    Indicates the caching mechanism for additional disk.
    default_item bool
    Indicates if this storage profile is a default profile.
    description str
    A human-friendly description.
    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
    links Sequence[GetStorageProfileAzureLink]
    HATEOAS of the entity
    name str
    A human-friendly name used as an identifier in APIs that support this option.
    org_id str
    os_disk_caching str
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    owner str
    Email of the user that owns the entity.
    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
    tags Sequence[GetStorageProfileAzureTag]
    A set of tag keys and optional values that were set on this Network Profile. example: [ { "key" : "ownedBy", "value": "Rainpole" } ]
    cloudAccountId String
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dataDiskCaching String
    Indicates the caching mechanism for additional disk.
    defaultItem Boolean
    Indicates if this storage profile is a default profile.
    description String
    A human-friendly description.
    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
    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
    osDiskCaching String
    Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
    owner String
    Email of the user that owns the entity.
    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
    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 string
    Hrefs List<string>
    Rel string
    Href string
    Hrefs []string
    Rel string
    href String
    hrefs List<String>
    rel String
    href string
    hrefs string[]
    rel string
    href str
    hrefs Sequence[str]
    rel str
    href String
    hrefs List<String>
    rel String

    GetStorageProfileAzureTag

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware