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

Data source for List NetStorage Storage Groups so it can be used in Property Behaviors #416

Open
hypnotisttom opened this issue May 23, 2023 · 2 comments

Comments

@hypnotisttom
Copy link

Because some rule tree behaviors (such as some configurations of Origin, as well as Site Failover) can use NetStorage, we need a way to look up NetStorage storage groups by name to get their ID for the behaviors.

I'd like to request a data source for List Storage Groups https://techdocs.akamai.com/netstorage/reference/get-storage-groups so that we can get the list of the storage groups and then in the TF identify the ID for the behavior based on the name provided.

Please let me know if you have any questions.

Thanks,

Tom

@lkowalsk-akamai-com
Copy link
Contributor

Hi @hypnotisttom , thank you for rising this enhancement request. We will investiage and let you know if we will plan to implement it.

@glenthomas
Copy link

glenthomas commented Dec 9, 2024

Hello, I also really need this. I have rule behaviours like so:

    behavior {
      origin {
        net_storage {
          cp_code              = 123456
          download_domain_name = "something.download.akamai.com"
          g2o_token            = "a-super-secret-token"
        }
        origin_type = "NET_STORAGE"
      }
    }

I want to look up the storage group rather than have these values directly in my HCL

I think this would look like

data "akamai_netstorage_storage_group" "something" {
  domain_prefix = "something"
}

or

data "akamai_netstorage_storage_group" "something" {
  name = "Content Production"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants