VMware vcenter server allows from version 6.7 to communicate or obtain data for monitoring using the REST API. Using this API, it is possible to obtain data about the vCneter server alliance or about the virtual machines that the given vCenter server manages. As of version 7, it is possible to use the "Developer Center" to search for API requests. This option allows you to browse and search for the correct API commands that can be used to retrieve data from the vCenter server.
In the Developoer Center, you can view API options in the following categories:
- appliance
- CIS
- content
- esx
- hvc
- stats
- vapi
- vcenter
Selected APIs can also be run from the vCentrum environment, see the documentation, ie the "model" for the given API command.
The environment then creates a CURL command, which we can use to test the functionality of the API in our environment.
curl -X GET 'https://192.168.1.134/api/appliance/health/load' -H 'vmware-api-session-id: fa92104057770ab2e9662675955ca4d3' --insecure
"green"
Odborník na kybernetickú bezpečnosť, správu Azure Cloud a VMware onprem. Využíva technológie, ako Checkmk a MRTG, na monitorovanie siete a zvyšovanie efektívnosti a bezpečnosti IT infraštruktúry.