System Administration >
Configuration
>
NSX Advanced Load Balancer
>
Controller
>
Alb Auth Token
Alb Auth Token API calls to Avi Controller.
Passthorugh API calls to Avi controller using the Auth of policy API
request send to this API will be passthrough to Avi controller and
Avi controller response will be embedded for this API.
This API is only available when using VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/alb-auth-token
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBAuthToken
+
ALBAuthToken
(
schema
)
Name
Description
Type
Notes
expires_at
Expiry time of the token
Expiry time of the token will be set by LCM at the time of Enforcement Point Creation.
string
hours
hours
Hours to validate the token
string
Required
token
Token for Avi Controller
Token for Avi Controller.
string
username
username
controller username.
string
Required
Example Request:
{ "username" : "nsxt-alb", "hours" : "5" }
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ALBAuthToken
+
ALBAuthToken
(
schema
)
Name
Description
Type
Notes
expires_at
Expiry time of the token
Expiry time of the token will be set by LCM at the time of Enforcement Point Creation.
string
hours
hours
Hours to validate the token
string
Required
token
Token for Avi Controller
Token for Avi Controller.
string
username
username
controller username.
string
Required
Example Response:
{ "token": "ca632c40a19ab7b124f57ee4f3972433165fab57", "expires_at": "2021-08-06T00:37:30.116Z" }
Required Permissions:
crud
Feature:
system_administration
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable