Authentication

/auth

Login

This is an unauthenticated API.

Authenticate username and password with Keystone for use with authenticated APIs. The default domain and user are sdn, and the default password is skyline.

Sample request 

POST /auth

{
   "login":{
      "user":"sdn",
      "password":"password",
      "domain":"sdn"
   }
}

Sample response 

{
   "record":{
      "token":"9509c09dfa8042639c82f8def2358722",
      "expiration":1403084336000,
      "expirationDate":"2014-05-18 02-38-56 -0700",
      "userId":"a254528ff2d5424f856418ac606028ec",
      "userName":"sdn",
      "domainId":"6a4f1af7aade4b0c9d5099ac0d296c3e",
      "domainName":"sdn"
   }
}

Response codes 

  • Normal: OK (200)

  • Error: Not Found (404), Service Unavailable (503)

Logout

Invalidates the supplied token and its associated authentication record.

Sample request 

DELETE /auth

There is no request data for this API.

Sample response 

There is no response data for this API.

Response codes 

  • Normal: OK (200)

  • Error: Bad Request (400), Forbidden (403), Bad Method (405), Service Unavailable (503)