API Guide
Table Of Contents
- OpenManage Integration for VMware vCenter Version 5.3 API Guide
- Contents
- Overview
- Get started
- Security
- Use cases
- Session management
- License management
- Console management
- Repository profile management
- Cluster profile management
- Firmware repository inventory management
- Firmware inventory management
- Firmware update management
- System profile management
- Drift management
- Get subsystem health report (OMIVV Host Health)
- Host management
- Request body
- Response body
- OMIVV-Specific error codes
else:
print("Get the drift job report by job id.")
```
Invoke the following API to get only driver drift for a specific cluster: /Services/DriftDetectionService/DriftReport/{id}/
DriverDriftDetails
Sample code to get only driver drift for a specific cluster:
```
d_job_id_href = It is the href for drift job
i.e "https://omivvIP/Spectre/api/rest/v1/Services/DriftDetectionService/DriftReport/
domain-c47"
def get_driver_drift_report_detail_by_id(omivv_ip, bearer_token, d_job_id_href):
""" Get the drift job details"""
print("get Driver report")
head = {'Authorization': 'Bearer ' + bearer_token}
response = requests.get(d_job_id_href + "/DriverDriftDetails", verify=False,
headers=head)
if (response.status_code == 200):
json_response = json.dumps(response.json(), indent=4, sort_keys=True)
return json_response
else:
print("Get all drift jobs failed.")
```
Invoke the following API to get only hardware drift for a specific cluster: /Services/DriftDetectionService/DriftReport/{id}/
ConfigurationDriftDetails
Sample code to get only hardware drift for a specific cluster:
```
d_job_id_href = It is the href for drift job
i.e "https://omivvIP/Spectre/api/rest/v1/Services/DriftDetectionService/DriftReport/
domain-c47"
def get_drift_report_configuration_detail_by_id(omivv_ip, bearer_token,
d_job_id_href):
""" Get the drift job details"""
print("get Configuration report")
head = {'Authorization': 'Bearer ' + bearer_token}
response = requests.get(d_job_id_href + "/ConfigurationDriftDetails",
verify=False, headers=head)
if (response.status_code == 200):
json_response = json.dumps(response.json(), indent=4, sort_keys=True)
return json_response
else:
print("Get configuration failed..")
```
Invoke the following API to get only firmware drift for a specific cluster: /Services/DriftDetectionService/DriftReport/{id}/
FwDriftDetails
Sample code to get only firmware drift for a specific cluster:
```
d_job_id_href = It is the href for drift job
i.e "https://omivvIP/Spectre/api/rest/v1/Services/DriftDetectionService/DriftReport/
domain-c47"
def get_drift_report_fwDriftDetails_detail_by_id(omivv_ip, bearer_token,
d_job_id_href):
""" Get the drift job details"""
print("get Configuration report")
head = {'Authorization': 'Bearer ' + bearer_token}
response = requests.get(d_job_id_href + "/FwDriftDetails", verify=False,
34
Use cases