[[["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-07-28 UTC."],[[["\u003cp\u003eThis page details how to retrieve a specific association from a firewall policy using a \u003ccode\u003eGET\u003c/code\u003e request to the Google Compute Engine API.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL requires a \u003ccode\u003efirewallPolicy\u003c/code\u003e path parameter and an association \u003ccode\u003ename\u003c/code\u003e query parameter to identify the target association.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and if the operation is successful, the response will contain the association details in a JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAccessing this information requires specific OAuth scopes, including \u003ccode\u003ecompute.readonly\u003c/code\u003e, \u003ccode\u003ecompute\u003c/code\u003e, or \u003ccode\u003ecloud-platform\u003c/code\u003e, and IAM permissions like \u003ccode\u003ecompute.firewallPolicies.get\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe returned association data will contain fields such as \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003eattachmentTarget\u003c/code\u003e, \u003ccode\u003efirewallPolicyId\u003c/code\u003e, and \u003ccode\u003eshortName\u003c/code\u003e, with \u003ccode\u003edisplayName\u003c/code\u003e being a deprecated field.\u003c/p\u003e\n"]]],[],null,["# Method: firewallPolicies.getAssociation\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.Association.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nGets an association with the specified name.\n\n### HTTP request\n\n`GET https://compute.googleapis.com/compute/v1/locations/global/{firewallPolicy=firewallPolicies/*}/getAssociation`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/compute.readonly`\n- `\n https://www.googleapis.com/auth/compute`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nIn addition to any permissions specified on the fields above, authorization requires one or more of the following [IAM](https://cloud.google.com/iam/docs/) permissions:\n\n- `compute.firewallPolicies.get`\n\nTo find predefined roles that contain those permissions, see [Compute Engine IAM Roles](/compute/docs/access/iam)."]]