I am trying to update my Google Compute Engine instance group using API explorer here: https://cloud.google.com/compute/docs/reference/latest/autoscalers/update?authuser=2
I want to update min and max num of replicas using this API. The body part has
{
"autoscalingPolicy": {
"minNumReplicas": 2,
"maxNumReplicas": 5,
"coolDownPeriodSec": 60,
"cpuUtilization": {
"utilizationTarget": 1.5
}
}
}
This gives error below:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "The resource 'projects/<my-proj-name>/zones/us-central1-a/autoscalers' was not found"
}
],
"code": 404,
"message": "The resource 'projects/<my-proj-name>/zones/us-central1-a/autoscalers' was not found"
}
}
I confirmed the autoscaler configuration for the managed instance group by clicking the tiny "Equivalent REST" link at bottom of instance group landing page.
Is there I am missing to get it working on API explorer?