Get the unlock key Run in API Explorer

GET /swarm/unlockkey

Responses

  • 200 application/json

    no error

    Hide response attribute Show response attribute object
    • UnlockKey string

      The swarm's unlock key.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 503 application/json

    node is not part of a swarm

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /swarm/unlockkey
curl \
 --request GET 'http://api.example.com/v1.44/swarm/unlockkey'
Response examples (200)
{
  "UnlockKey": "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"
}
Response examples (200)
{
  "UnlockKey": "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}