## Resource: AddressGroup

AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "type": enum (`https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/organizations.locations.addressGroups#AddressGroup.Type`), "items": [ string ], "capacity": integer, "selfLink": string, "purpose": [ enum (`https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/organizations.locations.addressGroups#AddressGroup.Purpose`) ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name of the AddressGroup resource. It matches pattern `projects/*/locations/{location}/addressGroups/<addressGroup>`. |
| `description` | `string` Optional. Free-text description of the resource. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Set of label tags associated with the AddressGroup resource. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `type` | ``enum (`https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/organizations.locations.addressGroups#AddressGroup.Type`)`` Required. The type of the Address Group. Possible values are "IPv4" or "IPV6". |
| `items[]` | `string` Optional. List of items. |
| `capacity` | `integer` Required. Capacity of the Address Group |
| `selfLink` | `string` Output only. Server-defined fully-qualified URL for this resource. |
| `purpose[]` | ``enum (`https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/organizations.locations.addressGroups#AddressGroup.Purpose`)`` Optional. List of supported purposes of the Address Group. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/addItems` | Adds items to an address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/cloneItems` | Clones items from one address group to another. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/create` | Creates a new address group in a given project and location. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/delete` | Deletes a single address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/get` | Gets details of a single address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/list` | Lists address groups in a given project and location. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/listReferences` | Lists references of an address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/patch` | Updates the parameters of a single address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/removeItems` | Removes items from an address group. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.addressGroups/testIamPermissions` | Returns permissions that a caller has on the specified resource. |