Command Looks like this:
curl -i -u username:password -d '{"realm":"AdminRealmName"}' -H 'Content-Type: application/json' -X POST https://ras.pulsesecure.net/
Where:
username => Username of admin user
password => Password of admin user
AdminRealmName => Admin Realm name
ras.pulsesecure.net => PCS Host Name Result:
HTTP/1.1 200 OK
Content-Type: application/json
Pragma: no-cache
Cache-Control: no-store
Expires: -1
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1
Strict-Transport-Security: max-age=31536000
{"api_key":"NzRhZTBiYzJiODM3MzFlMDAyMmI2YTExZmNhY2I4NWU="}