With VMware Skyline Advisor Pro, GraphiQL has been made available to view the Skyline Insights API structure. While you cannot leverage GraphiQL into any of your automation platforms, you can use it to view the data structure and output. Here are the steps to use GraphiQL.
1 – Create “Access Token” from “API Token”. Please check for more comprehensive writeup (here)
1 2 3 4 |
curl -s -X POST https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize?grant_type=refresh_token \ --header 'Accept: application/json' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "refresh_token=YOUR-API-TOKEN" | jq -r .access_token |

2 – Log into Advisor and select “View API Explorer”
3 – select “Request Header”
4.- type in the followings
1 |
{"Authorization" : "Bearer XXXXYYYYZZZZ"} |
5 – select the play button

You can use GraphiQL to test. Just update the “ActiveFindings” section to get different results.
Comments