Authentication Using Curl for VCF Operations Fleet Management
In this post we will look at the process of authenticating to VCF Operations Fleet Management.
VCF Operations Fleet Management APIs Used
- GET /lcmversion
Authenticating to VCF Operations Fleet Management Using Curl
Procedure
- Connect to a Linux based operating system over SSH.
- Replace the values in the sample code with values for your VCF Operations Fleet Management and run the commands SSH session.
1ariaSuiteLifecycleFqdn=$'flt-fm01.rainpole.io'
2ariaSuiteLifecycleUser=$'admin@local'
3ariaSuiteLifecyclePass=$'VMw@re1!VMw@re1!'
- Connect to VCF Operations Fleet Management with the provided credentials and check the health by running the following command:
1curl -k -X GET "https://$ariaSuiteLifecycleFqdn/lcm/health/api/v2/status" -u "$ariaSuiteLifecycleUser:$ariaSuiteLifecyclePass" -H "accept: application/json" -H "Content-Type: application/json" | json_pp