// *** 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.Cloudaccount
{
    public static class GetVmc
    {
        /// <summary>
        /// Provides a VMware vRA vra.cloudaccount.Vmc data source.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// 
        /// **VMC cloud account data source by its id:**
        /// 
        /// This is an example of how to read the cloud account data source using its id.
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Cloudaccount.GetVmc.Invoke(new()
        ///     {
        ///         Id = @var.Vra_cloud_account_vmc_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **vmc cloud account data source by its name:**
        /// 
        /// This is an example of how to read the cloud account data source using its name.
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Cloudaccount.GetVmc.Invoke(new()
        ///     {
        ///         Name = @var.Vra_cloud_account_vmc_name,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetVmcResult> InvokeAsync(GetVmcArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVmcResult>("vra:cloudaccount/getVmc:getVmc", args ?? new GetVmcArgs(), options.WithDefaults());

        /// <summary>
        /// Provides a VMware vRA vra.cloudaccount.Vmc data source.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// 
        /// **VMC cloud account data source by its id:**
        /// 
        /// This is an example of how to read the cloud account data source using its id.
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Cloudaccount.GetVmc.Invoke(new()
        ///     {
        ///         Id = @var.Vra_cloud_account_vmc_id,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// **vmc cloud account data source by its name:**
        /// 
        /// This is an example of how to read the cloud account data source using its name.
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Cloudaccount.GetVmc.Invoke(new()
        ///     {
        ///         Name = @var.Vra_cloud_account_vmc_name,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetVmcResult> Invoke(GetVmcInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVmcResult>("vra:cloudaccount/getVmc:getVmc", args ?? new GetVmcInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetVmcArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The id of this vmc cloud account.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// The name of this vmc cloud account.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        [Input("tags")]
        private List<Inputs.GetVmcTagArgs>? _tags;

        /// <summary>
        /// A set of tag keys and optional values that were set on this resource.
        /// example:[ { "key" : "vmware", "value": "provider" } ]
        /// </summary>
        public List<Inputs.GetVmcTagArgs> Tags
        {
            get => _tags ?? (_tags = new List<Inputs.GetVmcTagArgs>());
            set => _tags = value;
        }

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

    public sealed class GetVmcInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The id of this vmc cloud account.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// The name of this vmc cloud account.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("tags")]
        private InputList<Inputs.GetVmcTagInputArgs>? _tags;

        /// <summary>
        /// A set of tag keys and optional values that were set on this resource.
        /// example:[ { "key" : "vmware", "value": "provider" } ]
        /// </summary>
        public InputList<Inputs.GetVmcTagInputArgs> Tags
        {
            get => _tags ?? (_tags = new InputList<Inputs.GetVmcTagInputArgs>());
            set => _tags = value;
        }

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


    [OutputType]
    public sealed class GetVmcResult
    {
        /// <summary>
        /// Date when the entity was created. The date is in ISO 6801 and UTC.
        /// </summary>
        public readonly string CreatedAt;
        /// <summary>
        /// Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
        /// </summary>
        public readonly string DcId;
        /// <summary>
        /// A human-friendly description.
        /// </summary>
        public readonly string Description;
        public readonly string Id;
        /// <summary>
        /// HATEOAS of the entity.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetVmcLinkResult> Links;
        public readonly string Name;
        /// <summary>
        /// The IP address of the NSX Manager server in the specified SDDC / FQDN.
        /// </summary>
        public readonly string NsxHostname;
        /// <summary>
        /// The id of the organization this entity belongs to.
        /// </summary>
        public readonly string OrgId;
        /// <summary>
        /// Email of the user that owns the entity.
        /// </summary>
        public readonly string Owner;
        /// <summary>
        /// A set of region names that are enabled for this account.
        /// </summary>
        public readonly ImmutableArray<string> Regions;
        /// <summary>
        /// Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
        /// </summary>
        public readonly string SddcName;
        /// <summary>
        /// A set of tag keys and optional values that were set on this resource.
        /// example:[ { "key" : "vmware", "value": "provider" } ]
        /// </summary>
        public readonly ImmutableArray<Outputs.GetVmcTagResult> Tags;
        /// <summary>
        /// Date when the entity was last updated. The date is ISO 8601 and UTC.
        /// </summary>
        public readonly string UpdatedAt;
        /// <summary>
        /// The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
        /// </summary>
        public readonly string VcenterHostname;
        /// <summary>
        /// vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
        /// </summary>
        public readonly string VcenterUsername;

        [OutputConstructor]
        private GetVmcResult(
            string createdAt,

            string dcId,

            string description,

            string id,

            ImmutableArray<Outputs.GetVmcLinkResult> links,

            string name,

            string nsxHostname,

            string orgId,

            string owner,

            ImmutableArray<string> regions,

            string sddcName,

            ImmutableArray<Outputs.GetVmcTagResult> tags,

            string updatedAt,

            string vcenterHostname,

            string vcenterUsername)
        {
            CreatedAt = createdAt;
            DcId = dcId;
            Description = description;
            Id = id;
            Links = links;
            Name = name;
            NsxHostname = nsxHostname;
            OrgId = orgId;
            Owner = owner;
            Regions = regions;
            SddcName = sddcName;
            Tags = tags;
            UpdatedAt = updatedAt;
            VcenterHostname = vcenterHostname;
            VcenterUsername = vcenterUsername;
        }
    }
}
