...
Code Block | ||
---|---|---|
| ||
DOMAIN=<domain name> && curl -sIL $SCSP_HOST?domain=$DOMAIN | grep ^Etag^Castor-System-Alias | awk '{ print $2 }' | sed 's/"//g' |
from ES directly
Code Block | ||
---|---|---|
| ||
DOMAIN=domain-for-versioning && curl -s "$ESIP:9200/$ESINDEX/_search?q=stype:DOMAIN+AND+name:$DOMAIN&pretty" | jq -r '.hits.hits[]._source.etagid' |
Get Bucket id (context id)
...