Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

floating IP resources/data_sources proposal #77

Open
majidkarimizadeh opened this issue Sep 19, 2024 · 0 comments
Open

floating IP resources/data_sources proposal #77

majidkarimizadeh opened this issue Sep 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@majidkarimizadeh
Copy link
Contributor

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.

@majidkarimizadeh majidkarimizadeh added the enhancement New feature or request label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant