All URIs are relative to http://portainer.domain/api
| Method | HTTP request | Description |
|---|---|---|
| authenticateUser | POST /auth | Authenticate a user |
AuthenticateUserResponse authenticateUser(body)
Authenticate a user
Use this endpoint to authenticate against Portainer using a username and password. Access policy: public
var PortainerApi = require('portainer_api');
var apiInstance = new PortainerApi.AuthApi();
var body = new PortainerApi.AuthenticateUserRequest(); // AuthenticateUserRequest | Credentials used for authentication
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.authenticateUser(body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| body | AuthenticateUserRequest | Credentials used for authentication |
No authorization required