Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

9.12. swift tempurl

Usage: swift tempurl
Generates a temporary URL for a Swift object.

Positional arguments

<method>


        An HTTP method to allow for this temporary URL.
      Usually 'GET' or 'PUT'.

<seconds>


        The amount of time in seconds the temporary URL will be
      valid for; or, if --absolute is passed, the Unix
      timestamp when the temporary URL will expire.

<path>


        The full path to the Swift object. Example:
      /v1/AUTH_account/c/o.

<key>


        The secret temporary URL key set on the Swift cluster.
      To set a key, run 'swift post -m
      "Temp-URL-Key:b3968d0207b54ece87cccc06515a89d4"'

Optional arguments

--absolute


        Interpret the <seconds> positional argument as a Unix
      timestamp rather than a number of seconds in the
      future.