Per the instructions here: Authentication and Authorization
I'm hitting /mgmt/shared/authn/login. The code and returned tokens are shown below. Only difference is length.
curl --location --request POST 'https://v11_6_1-Big-IP/mgmt/shared/authn/login' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic 'xxxxxxxxxxxxxxxxxxxxxxxx' \
--data-raw '{
"username":"USER",
"password":"PASSWORD",
"loginProviderName":"tmos"
}'
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
curl --location --request POST 'https://v12_1_3_2-Big-IP/mgmt/shared/authn/login' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxx' \
--data-raw '{
"username":"USER",
"password":"PASSWORD",
"loginProviderName":"tmos"
}'
XXXXXXXXXXXXXXXXXXXXXXXXXX