Manage your infrastructures and consume Skyline Findings using Skyline Insights APIs.
Using the Skyline Insights APIs, you can get the following:
Procedure
- Log in to Skyline Advisor Pro.
- On the Dashboard, click Insights APIs tab.
- Click View API Explorer. The Graph iQL API Explorer opens in a modal window.
- Click Docs on top right of the screen.
- Click Execute Query.
- Execute the following POST request to view the active findings:
curl -s -X POST 'https://skyline.vmware.com/public/api/data' \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{"query":
"{
activeFindings(limit: 200)
{
findings {
findingId
accountId
findingDisplayName
severity
findingDescription
findingImpact
recommendations
kbLinkURLs
recommendationsVCF
kbLinkURLsVCF
categoryName
findingTypes
firstObserved
totalAffectedObjectsCount
}
totalRecords
timeTaken
}
}"
}' | jq .
Expected Response:
- Execute the following
POST request to view the findings with affected objects for RuleID.
curl -s -X POST 'https://skyline.vmware.com/public/api/data' \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '
{"query":
"{
activeFindings(
filter: {
findingId: "Horizon-enableDMA-KB#2144475",
product: "brm-prod-vc.brmstorage.com",
}
limit: 200) {
findings {
findingId
accountId
products
findingDisplayName
severity
findingDescription
findingImpact
recommendations
kbLinkURLs
recommendationsVCF
kbLinkURLsVCF
categoryName
findingTypes
firstObserved
totalAffectedObjectsCount
affectedObjects(start: 0, limit: 200) {
sourceName
objectName
objectType
version
buildNumber
solutionTags {
type
version
}
firstObserved
}
}
totalRecords
timeTaken
}
}"
}' | jq .
Expected Output: