Get an Authentication Token
REST API requests to Compute Classic require basic authentication (user name and password). You can pass your user name and password with every API call or you can pass a valid authentication token.
To get an authentication token, send an request to authenticate the user credentials. If the authentication request succeeds, the server returns a cookie containing an authentication token that is valid for 30 minutes. The client sending the REST API requests must include this cookie in the API requests.
After getting an authentication cookie, you can perform operations on Compute Classic resources.