> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Compute Firewall

Returns the specified firewall.

<Note>
  External Documentation

  To learn more, visit the [GCP documentation](https://cloud.google.com/compute/docs/reference/rest/v1/firewalls/get).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                          |
  | --------- | ------------------------------------ |
  | Firewall  | Name of the firewall rule to return. |
  | Project   | Project ID for this request.         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                        |
  | --------- | ------------------------------------------------------------------ |
  | Fields    | Selector specifying which fields to include in a partial response. |
</div>

## Example Output

```json theme={"dark"}
{
	"allowed": [
		{
			"IPProtocol": "The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.",
			"ports": [
				"string"
			]
		}
	],
	"creationTimestamp": "[Output Only] Creation timestamp in RFC3339 text format.",
	"denied": [
		{
			"IPProtocol": "The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.",
			"ports": [
				"string"
			]
		}
	],
	"description": "An optional description of this resource. Provide this field when you create the resource.",
	"destinationRanges": [
		"string"
	],
	"direction": "Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field, and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields.",
	"disabled": false,
	"id": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.",
	"kind": "compute#firewall",
	"logConfig": {
		"enable": false,
		"metadata": "This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs."
	},
	"name": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.",
	"network": "URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default ",
	"priority": 0,
	"selfLink": "[Output Only] Server-defined URL for the resource.",
	"sourceRanges": [
		"string"
	],
	"sourceServiceAccounts": [
		"string"
	],
	"sourceTags": [
		"string"
	],
	"targetServiceAccounts": [
		"string"
	],
	"targetTags": [
		"string"
	]
}
```

## Workflow Library Example

[Get Compute Firewall with Gcp and Send Results Via Email](https://library.blinkops.com/workflows/get-compute-firewall-with-gcp-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-compute-firewall-with-gcp-and-send-results-via-email/canvas" />
</div>
