For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{projectId}/regions/{region}
For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{projectId}/locations/{location}
Authorization requires the following IAM permission on the specified resource parent:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[[["\u003cp\u003eThis page details the process for creating a new autoscaling policy using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL follows gRPC Transcoding syntax and requires specifying the \u003ccode\u003eparent\u003c/code\u003e path parameter, which represents the resource name of the region or location.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e, while the response body returns a newly created \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e instance upon success.\u003c/p\u003e\n"],["\u003cp\u003eCreating an autoscaling policy requires \u003ccode\u003edataproc.autoscalingPolicies.create\u003c/code\u003e IAM permission on the specified parent resource, along with the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]