---
title: "POST /projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"
method: POST
path: "/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"
tags: ["networkFirewallPolicies"]
---

# POST /projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation

`POST /projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation`

Inserts an association for the specified firewall policy.

## Path parameters

- `project` string, required
- `firewallPolicy` string, required

## Query parameters

- `replaceExistingAssociation` boolean
- `requestId` string

## Request body

- FirewallPolicyAssociation
  - `name` string — The name for an association.
  - `firewallPolicyId` string — Output only. [Output Only] The firewall policy ID of the association.
  - `attachmentTarget` string — The target that the firewall policy is attached to.
  - `shortName` string — Output only. [Output Only] The short name of the firewall policy of the association.
  - `displayName` string — [Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/compute.md) · [All operations](https://skmtc.net/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/compute/revisions/6120ed8969d4/schema)
