terraform-provider-huaweicloud icon indicating copy to clipboard operation
terraform-provider-huaweicloud copied to clipboard

Missing a effective way which to obtain publish histories of the APIs

Open Lance52259 opened this issue 3 years ago • 0 comments

Current Terraform Version

v1.29.2

Use-cases

I want to switch to a specified version by version ID, and for the version ID, I want to get it by data source.

reosurce "huaweicloud_apig_api_publishment" "test" {
  instance_id = "known"
  env_id      = "known"
  api_id      = "known"
  version_id  = "unknown"
}

Attempted Solutions

Proposal

Known informations: instance ID, environment ID and API ID. Want to get: All version informations, contains version ID and related description.

  1. Get all publish informations for specified API.
data "huaweicloud_apig_api_publishments" "test" {}

References

Lance52259 avatar Oct 18 '21 03:10 Lance52259