Upgrade ARG API version (#35464)

This commit is contained in:
shuotli 2021-06-10 03:33:34 -07:00 committed by GitHub
parent 074c07b347
commit 05f3985108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ type AzureResourceGraphQuery struct {
TimeRange backend.TimeRange
}
const argAPIVersion = "2018-09-01-preview"
const argAPIVersion = "2021-03-01"
const argQueryProviderName = "/providers/Microsoft.ResourceGraph/resources"
// executeTimeSeriesQuery does the following:
@ -132,6 +132,7 @@ func (e *AzureResourceGraphDatasource) executeQuery(ctx context.Context, query *
reqBody, err := json.Marshal(map[string]interface{}{
"subscriptions": model.Get("subscriptions").MustStringArray(),
"query": query.InterpolatedQuery,
"options": map[string]string{"resultFormat": "table"},
})
if err != nil {