Skip to content

floating IP resources/data_sources proposal #77

Description

@majidkarimizadeh

Minimal requirement to support floating IP in Terraform:
based on the https://developer.leaseweb.com/api-docs/floatingips_v2.html

NOTE: I added only required attributes to the Terraform resources and data sources. we need to see how far we want to go.

Proposal:

Resources

resource "leaseweb_floating_ip_range_definition" "example" {
    range_id = ""
    floating_ip = ""
    anchor_ip = ""
    passive_anchor_ip = ""
}

resp:
{
   id = "" // get from response
   range_id = ""
   floating_ip = ""
   anchor_ip = ""
   passive_anchor_ip = ""
   status = ""
   location = ""
   type = ""
}
data "leaseweb_floating_ip_range_definitions" "example" {
    location = "" // optional
    type = "" // optional
}

resp: 
{
    range_definitions = [
        {
               id = "" // get from response
               range_id = ""
               floating_ip = ""
               anchor_ip = ""
               passive_anchor_ip = ""
               status = ""
               location = ""
               type = ""
        },
        ...
    ]
}
data "leaseweb_floating_ip_ranges" "example" {
    location = "" // optional
    type = "" // optional
}

resp: 
{
    ranges = [
        {
               id = "" // get from response
               range = ""
               location = ""
               type = ""
        },
        ...
    ]
}

Please let me know your opinions about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions