Add --json support to `swift stat`

Bug #2083948 reported by Tim Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Confirmed
Wishlist
Unassigned

Bug Description

We already have --json support for listings; it'd be nice if `swift stat cont obj --json` would give you output like

{
  "account": "AUTH_test",
  "container": "cont",
  "object": "obj",
  "url": "http://saio:8080/v1/AUTH_test/cont/obj",
  "content_length": "1294",
  "content_type": "application/octet-stream",
  "etag": "\"8b8f20953ad88a6012ad8781be670933\"",
  "user_meta": {
    "mtime": "1727115776.103367"
  },
  "other_headers": {
    "last-modified": "Tue, 08 Oct 2024 15:25:53 GMT",
    "x-timestamp": "1728401152.02885",
    "accept-ranges": "bytes",
    "x-trans-id": "tx923a4ef8ad7346da8d0e6-0067054f02",
    "x-openstack-request-id": "tx923a4ef8ad7346da8d0e6-0067054f02"
  }
}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.