Check auth configuration Run in API Explorer
Validate credentials for a registry and, if available, get an identity token for accessing the registry without password.
POST
/auth
curl \
--request POST 'http://api.example.com/v1.44/auth' \
--header "Content-Type: application/json" \
--data '{"password":"xxxx","username":"hannibal","serveraddress":"https://index.docker.io/v1/"}'
Request examples
{
"password": "xxxx",
"username": "hannibal",
"serveraddress": "https://index.docker.io/v1/"
}
Response examples (200)
{
"Status": "Login Succeeded",
"IdentityToken": "9cbaf023786cd7..."
}
Response examples (200)
{
"Status": "string",
"IdentityToken": "string"
}
Response examples (401)
{
"message": "Something went wrong."
}
Response examples (401)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}