Forprojects.regions.autoscalingPolicies.get, the resource name of the policy has the following format:projects/{projectId}/regions/{region}/autoscalingPolicies/{policy_id}
Forprojects.locations.autoscalingPolicies.get, the resource name of the policy has the following format:projects/{projectId}/locations/{location}/autoscalingPolicies/{policy_id}
Authorization requires the followingIAMpermission on the specified resourcename:
dataproc.autoscalingPolicies.get
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofAutoscalingPolicy.
[[["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 endpoint retrieves an autoscaling policy using a \u003ccode\u003eGET\u003c/code\u003e request to a specific URL structure.\u003c/p\u003e\n"],["\u003cp\u003eThe URL uses gRPC Transcoding syntax and includes a required \u003ccode\u003ename\u003c/code\u003e parameter that specifies the resource name of the autoscaling policy.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty for this endpoint to function correctly.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response body returns an instance of \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e, which represents the retrieved autoscaling policy.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003edataproc.autoscalingPolicies.get\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.autoscalingPolicies.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves autoscaling policy.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/{name=projects/*/locations/*/autoscalingPolicies/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [AutoscalingPolicy](/dataproc/docs/reference/rest/v1/projects.locations.autoscalingPolicies#AutoscalingPolicy).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]