Skip to main content

Curl

 # Get the authorization token
  curl -X 'POST' \
    'https://s1-node1.example.com/login' \
    -H 'accept: application/json' \
    -H 'Content-Type: application/json-patch+json' \
    -d '{
    "Username": "storoneadm",
    "Password": "St0r1R0x!"
  }'

  # Use the token in requests
  curl -X 'GET' \
    'https://s1-node1.example.com/applications/volumes/list' \
    -H 'accept: application/json' \
    -H 'Authorization: super-extra-long-token-from-previous-output'