» openstack_objectstorage_tempurl_v1

Use this resource to generate an OpenStack Object Storage temporary URL.

The temporary URL will be valid for as long as TTL is set to (in seconds). Once the URL has expired, it will no longer be valid, but the resource will remain in place. If you wish to automatically regenerate a URL, set the regenerate argument to true. This will create a new resource with a new ID and URL.

» Example Usage

resource "openstack_objectstorage_tempurl_v1" "obj_tempurl" {
  container = "test"
  object    = "container"
  method    = "post"
  ttl       = 20
}

» Argument Reference

The following arguments are supported:

  • region - (Optional) The region the tempurl is located in.

  • container - (Required) The container name the object belongs to.

  • object - (Required) The object name the tempurl is for.

  • ttl - (Required) The TTL, in seconds, for the URL. For how long it should be valid.

  • method - (Optional) The method allowed when accessing this URL. Valid values are GET, and POST. Default is GET.

  • regenerate - (Optional) Whether to automatically regenerate the URL when it has expired. If set to true, this will create a new resource with a new ID and new URL. Defaults to false.

» Attributes Reference

  • id - Computed md5 hash based on the generated url
  • container - See Argument Reference above.
  • object - See Argument Reference above.
  • ttl - See Argument Reference above.
  • method - See Argument Reference above.
  • url - The URL
  • region - The region the endpoint is located in.