Get Auth Token to Gateway

Get authentication for deployed gateway.

  • Base URL : 'https://{gateway-ip}:5480'
curl --location --request POST '[https://192.168.0.123:5480/v2/auth/token]'
  \ --form 'username="admin"'
  \ --form 'password="******'
  • An access token is needed to
    • Register the gateway.
    • Use all gateway-related activities.
    • Provides a secured connectivity with OpsRamp cloud

Generates the auth token.

Request Body

application/json

  • usernamestring

  • passwordstring

Request Body Samples

{
  "username": "user",
  "password": "passx"
}

Responses

  • tokenstringrequired

  • expires_instringrequired

Response Samples

{
  "token": "73a55e4a91bce97a4a99fb16a3c42409a1668612",
  "expires_in": "3599.987177"
}