Red Hat Training

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

9.10. swift post

Usage: swift post
Updates meta information for the account, container, or object. If the container is not found, it will be created automatically.

Positional arguments

[container]


        Name of container to post to.

[object]


        Name of object to post.

Optional arguments

-r, --read-acl <acl>


        Read ACL for containers. Quick summary of ACL syntax:
      .r:*, .r:-.example.com, .r:www.example.com, account1,
      account2:user2

-w, --write-acl <acl>


        Write ACL for containers. Quick summary of ACL syntax:
      account1 account2:user2

-t, --sync-to <sync-to>


      Sync To for containers, for multi-cluster replication.

-k, --sync-key <sync-key>


      Sync Key for containers, for multi-cluster replication.

-m, --meta <name:value>


      Sets a meta data item. This option may be repeated.
      Example: -m Color:Blue -m Size:Large

-H, --header <header:value>


      Adds a customized request header.
      This option may be repeated. Example
      -H "content-type:text/plain" -H "Content-Length: 4000"