List recommendations for a GCP analysis
curl --request GET \
--url https://{host}/analysis/cloud/gcp/{analysisId}/resultsimport requests
url = "https://{host}/analysis/cloud/gcp/{analysisId}/results"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/analysis/cloud/gcp/{analysisId}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/analysis/cloud/gcp/{analysisId}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/analysis/cloud/gcp/{analysisId}/results"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/analysis/cloud/gcp/{analysisId}/results")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/analysis/cloud/gcp/{analysisId}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"entityId": "<string>",
"resourceId": "<string>",
"accountIdRef": "<string>",
"region": "<string>",
"currentType": "<string>",
"recommendationType": "<string>",
"recommendedType": "<string>",
"implementationMethod": "<string>",
"predictedUptime": 123,
"totalHoursRunning": "<string>",
"totalHours": "<string>",
"name": "<string>",
"rptHref": "<string>",
"approvalType": "<string>",
"densifyPolicy": "<string>",
"savingsEstimate": "<string>",
"effortEstimate": "Moderate",
"powerState": "<string>",
"recommendedHostEntityId": "<string>",
"currentCost": "<string>",
"recommendedCost": "<string>",
"serviceType": "<string>",
"currentHourlyRate": "<string>",
"recommendedHourlyRate": "<string>",
"attributes": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"recommFirstSeen": 123,
"recommLastSeen": 123,
"recommSeenCount": 123,
"auditInfo": {
"dataCollection": {
"dateFirstAudited": 123,
"dateLastAudited": 123,
"auditCount": 123
},
"workloadDataLast30": {
"firstDate": 123,
"lastDate": 123,
"totalDays": 123,
"seenDays": 123
}
},
"dataQuality": [
{
"workloadName": "<string>",
"firstSeen": 123,
"lastSeen": 123,
"completeDays": 123,
"partialDays": 123
}
]
}
]GCP: Recommendations
List recommendations for a GCP analysis
Returns a collection of recommendations.
Content negotiation:
application/json→ JSON recommendation objectsapplication/terraform-map→ terraform-map objects
Element filters are standard query pairs (e.g.,recommendationType=Upsize).
includeAttributes=truereturns theattributesarray.
dataQualitytakes a quoted, comma-separated list of workload names; unsupported names yield 400.
GET
/
analysis
/
cloud
/
gcp
/
{analysisId}
/
results
List recommendations for a GCP analysis
curl --request GET \
--url https://{host}/analysis/cloud/gcp/{analysisId}/resultsimport requests
url = "https://{host}/analysis/cloud/gcp/{analysisId}/results"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/analysis/cloud/gcp/{analysisId}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/analysis/cloud/gcp/{analysisId}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/analysis/cloud/gcp/{analysisId}/results"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/analysis/cloud/gcp/{analysisId}/results")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/analysis/cloud/gcp/{analysisId}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"entityId": "<string>",
"resourceId": "<string>",
"accountIdRef": "<string>",
"region": "<string>",
"currentType": "<string>",
"recommendationType": "<string>",
"recommendedType": "<string>",
"implementationMethod": "<string>",
"predictedUptime": 123,
"totalHoursRunning": "<string>",
"totalHours": "<string>",
"name": "<string>",
"rptHref": "<string>",
"approvalType": "<string>",
"densifyPolicy": "<string>",
"savingsEstimate": "<string>",
"effortEstimate": "Moderate",
"powerState": "<string>",
"recommendedHostEntityId": "<string>",
"currentCost": "<string>",
"recommendedCost": "<string>",
"serviceType": "<string>",
"currentHourlyRate": "<string>",
"recommendedHourlyRate": "<string>",
"attributes": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"recommFirstSeen": 123,
"recommLastSeen": 123,
"recommSeenCount": 123,
"auditInfo": {
"dataCollection": {
"dateFirstAudited": 123,
"dateLastAudited": 123,
"auditCount": 123
},
"workloadDataLast30": {
"firstDate": 123,
"lastDate": 123,
"totalDays": 123,
"seenDays": 123
}
},
"dataQuality": [
{
"workloadName": "<string>",
"firstSeen": 123,
"lastSeen": 123,
"completeDays": 123,
"partialDays": 123
}
]
}
]Query Parameters
Response
Collection of recommendations

