POST /projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation
Changed onInserts an association for the specified network firewall policy.
Request
- Base URLhttps://compute.googleapis.com/compute/v1
- URLhttps://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/cloud-platformAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/computeAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/compute
Path parameters
Project ID for this request.
Name of the region scoping this request.
Name of the firewall policy to update.
Query parameters
Name of the firewall policy associated with the target network to swap association with. This field is mutually exclusive with 'replace_existing_association'.
Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists.
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- info
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- info