Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
ETAG=<etag> && curl -s "$ESIP:9200/$ESINDEX/_search?pretty&q=etag:$ETAG" | jq '.hits.hits[]'

Get bucket name, etag, and tmBorn by bucket name

  • This might be handy for recreating a recently deleted bucket

Code Block
BUCKETNAME=<bucket name>;curl -s "$ESIP:9200/$ESINDEX/_search?q=stype:BUCKET+AND+name:$BUCKETNAME"  | jq -r '.hits.hits[]._source | "\(.name), \(.etag), \(.tmBorn), \(.contextid)"'

Get Domain id

from Swarm

Code Block
languagebash
DOMAIN=<domain name> && curl -sIL $SCSP_HOST?domain=$DOMAIN | grep ^Castor-System-Alias | awk '{ print $2 }'

...