<gh_stars>0// *** 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 luxifer.Scaleway
{
    public static class GetFlexibleIp
    {
        /// <summary>
        /// Gets information about a Flexible IP.
        /// </summary>
        public static Task<GetFlexibleIpResult> InvokeAsync(GetFlexibleIpArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetFlexibleIpResult>("scaleway:index/getFlexibleIp:getFlexibleIp", args ?? new GetFlexibleIpArgs(), options.WithDefaults());

        /// <summary>
        /// Gets information about a Flexible IP.
        /// </summary>
        public static Output<GetFlexibleIpResult> Invoke(GetFlexibleIpInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetFlexibleIpResult>("scaleway:index/getFlexibleIp:getFlexibleIp", args ?? new GetFlexibleIpInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetFlexibleIpArgs : global::Pulumi.InvokeArgs
    {
        [Input("flexibleIpId")]
        public string? FlexibleIpId { get; set; }

        /// <summary>
        /// The IP address.
        /// Only one of `ip_address` and `ip_id` should be specified.
        /// </summary>
        [Input("ipAddress")]
        public string? IpAddress { get; set; }

        /// <summary>
        /// (Defaults to provider `project_id`) The ID of the project the IP is in.
        /// </summary>
        [Input("projectId")]
        public string? ProjectId { get; set; }

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

    public sealed class GetFlexibleIpInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("flexibleIpId")]
        public Input<string>? FlexibleIpId { get; set; }

        /// <summary>
        /// The IP address.
        /// Only one of `ip_address` and `ip_id` should be specified.
        /// </summary>
        [Input("ipAddress")]
        public Input<string>? IpAddress { get; set; }

        /// <summary>
        /// (Defaults to provider `project_id`) The ID of the project the IP is in.
        /// </summary>
        [Input("projectId")]
        public Input<string>? ProjectId { get; set; }

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


    [OutputType]
    public sealed class GetFlexibleIpResult
    {
        public readonly string CreatedAt;
        public readonly string Description;
        public readonly string? FlexibleIpId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? IpAddress;
        public readonly string MacAddress;
        /// <summary>
        /// (Defaults to provider `organization_id`) The ID of the organization the IP is in.
        /// </summary>
        public readonly string OrganizationId;
        /// <summary>
        /// (Defaults to provider `project_id`) The ID of the project the IP is in.
        /// </summary>
        public readonly string ProjectId;
        /// <summary>
        /// The reverse domain associated with this IP.
        /// </summary>
        public readonly string Reverse;
        /// <summary>
        /// The associated server ID if any
        /// </summary>
        public readonly string ServerId;
        public readonly ImmutableArray<string> Tags;
        public readonly string UpdatedAt;
        public readonly string Zone;

        [OutputConstructor]
        private GetFlexibleIpResult(
            string createdAt,

            string description,

            string? flexibleIpId,

            string id,

            string? ipAddress,

            string macAddress,

            string organizationId,

            string projectId,

            string reverse,

            string serverId,

            ImmutableArray<string> tags,

            string updatedAt,

            string zone)
        {
            CreatedAt = createdAt;
            Description = description;
            FlexibleIpId = flexibleIpId;
            Id = id;
            IpAddress = ipAddress;
            MacAddress = macAddress;
            OrganizationId = organizationId;
            ProjectId = projectId;
            Reverse = reverse;
            ServerId = serverId;
            Tags = tags;
            UpdatedAt = updatedAt;
            Zone = zone;
        }
    }
}
