// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Vra.Fabric
{
    public static class GetStoragePolicyVSphere
    {
        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// This is an example of how to lookup fabric vSphere storage policies.
        /// 
        /// **Fabric vSphere storage policy by Id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Fabric.GetStoragePolicyVSphere.Invoke(new()
        ///     {
        ///         Id = @var.Fabric_storage_policy_vsphere_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **Fabric vSphere storage policy by filter query:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Fabric.GetStoragePolicyVSphere.Invoke(new()
        ///     {
        ///         Filter = $"name eq '{@var.Name}'",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// A fabric vSphere storage policy supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetStoragePolicyVSphereResult> InvokeAsync(GetStoragePolicyVSphereArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetStoragePolicyVSphereResult>("vra:fabric/getStoragePolicyVSphere:getStoragePolicyVSphere", args ?? new GetStoragePolicyVSphereArgs(), options.WithDefaults());

        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// This is an example of how to lookup fabric vSphere storage policies.
        /// 
        /// **Fabric vSphere storage policy by Id:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Fabric.GetStoragePolicyVSphere.Invoke(new()
        ///     {
        ///         Id = @var.Fabric_storage_policy_vsphere_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **Fabric vSphere storage policy by filter query:**
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Fabric.GetStoragePolicyVSphere.Invoke(new()
        ///     {
        ///         Filter = $"name eq '{@var.Name}'",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// A fabric vSphere storage policy supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetStoragePolicyVSphereResult> Invoke(GetStoragePolicyVSphereInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetStoragePolicyVSphereResult>("vra:fabric/getStoragePolicyVSphere:getStoragePolicyVSphere", args ?? new GetStoragePolicyVSphereInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetStoragePolicyVSphereArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
        /// </summary>
        [Input("filter")]
        public string? Filter { get; set; }

        /// <summary>
        /// The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        public GetStoragePolicyVSphereArgs()
        {
        }
        public static new GetStoragePolicyVSphereArgs Empty => new GetStoragePolicyVSphereArgs();
    }

    public sealed class GetStoragePolicyVSphereInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Search criteria to narrow down the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
        /// </summary>
        [Input("filter")]
        public Input<string>? Filter { get; set; }

        /// <summary>
        /// The id of the fabric vSphere storage policy. Only one of 'filter' or 'id' must be specified.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        public GetStoragePolicyVSphereInvokeArgs()
        {
        }
        public static new GetStoragePolicyVSphereInvokeArgs Empty => new GetStoragePolicyVSphereInvokeArgs();
    }


    [OutputType]
    public sealed class GetStoragePolicyVSphereResult
    {
        /// <summary>
        /// Set of ids of the cloud accounts this entity belongs to.
        /// </summary>
        public readonly ImmutableArray<string> CloudAccountIds;
        /// <summary>
        /// Date when the entity was created. The date is in ISO 6801 and UTC.
        /// </summary>
        public readonly string CreatedAt;
        /// <summary>
        /// External entity Id on the provider side.
        /// </summary>
        public readonly string ExternalId;
        /// <summary>
        /// The id of the region for which this entity is defined.
        /// </summary>
        public readonly string ExternalRegionId;
        public readonly string? Filter;
        public readonly string Id;
        /// <summary>
        /// HATEOAS of the entity
        /// </summary>
        public readonly ImmutableArray<Outputs.GetStoragePolicyVSphereLinkResult> Links;
        /// <summary>
        /// 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.
        /// </summary>
        public readonly string Name;
        /// <summary>
        /// The id of the organization this entity belongs to.
        /// </summary>
        public readonly string OrgId;
        /// <summary>
        /// Date when the entity was last updated. The date is ISO 8601 and UTC.
        /// </summary>
        public readonly string UpdatedAt;

        [OutputConstructor]
        private GetStoragePolicyVSphereResult(
            ImmutableArray<string> cloudAccountIds,

            string createdAt,

            string externalId,

            string externalRegionId,

            string? filter,

            string id,

            ImmutableArray<Outputs.GetStoragePolicyVSphereLinkResult> links,

            string name,

            string orgId,

            string updatedAt)
        {
            CloudAccountIds = cloudAccountIds;
            CreatedAt = createdAt;
            ExternalId = externalId;
            ExternalRegionId = externalRegionId;
            Filter = filter;
            Id = id;
            Links = links;
            Name = name;
            OrgId = orgId;
            UpdatedAt = updatedAt;
        }
    }
}
