> ## 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 Access Rule

Retrieve a specific access rule by UID.

<Note>
  External Documentation

  To learn more, visit the [Check Point Management documentation](https://sc1.checkpoint.com/documents/latest/APIs/?#web/show-access-rule~v1.5%20).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                                                           |
  | -------------- | --------------------------------------------------------------------------------------------------------------------- |
  | Layer          | The network layer from which the access rule will be fetched. Select the layer name or manually enter its name or ID. |
  | Rule           | The unique identifier (UID) or name of the access rule to fetch.                                                      |
  | Show As Ranges | If selected, returns IP addresses as ranges instead of networks.                                                      |
</div>

## Example Output

```json theme={"dark"}
{
	"uid": "48604d56-b4ae-45e4-8757-29510f693a33",
	"name": "Rule 1",
	"type": "access-rule",
	"domain": {
		"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",
		"name": "SMC User",
		"domain-type": "domain"
	},
	"enabled": true,
	"comments": "",
	"meta-info": {
		"lock": "unlocked",
		"validation-state": "ok",
		"last-modify-time": {
			"posix": 1527405615018,
			"iso-8601": "2018-05-27T10:20+0300"
		},
		"last-modifier": "aa",
		"creation-time": {
			"posix": 1527405614880,
			"iso-8601": "2018-05-27T10:20+0300"
		},
		"creator": "aa"
	},
	"install-on": [
		{
			"uid": "6c488338-8eec-4103-ad21-cd461ac2c476",
			"name": "Policy Targets",
			"type": "Global",
			"domain": {
				"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
				"name": "Check Point Data",
				"domain-type": "data domain"
			}
		}
	],
	"source-negate": false,
	"source-ranges": {
		"ipv4": [
			{
				"start": "192.168.1.11",
				"end": "192.168.1.11"
			},
			{
				"start": "192.168.1.213",
				"end": "192.168.1.213"
			}
		],
		"ipv6": [],
		"others": [],
		"excluded-others": []
	},
	"destination-negate": false,
	"destination-ranges": {
		"ipv4": [
			{
				"start": "192.168.200.131",
				"end": "192.168.200.131"
			}
		],
		"ipv6": [],
		"others": [],
		"excluded-others": []
	},
	"service-negate": false,
	"service-ranges": {
		"tcp": [
			{
				"start": "443",
				"end": "443"
			}
		],
		"udp": [],
		"others": [],
		"excluded-others": []
	},
	"vpn": [
		{
			"uid": "97aeb369-9aea-11d5-bd16-0090272ccb30",
			"name": "Any",
			"type": "CpmiAnyObject",
			"domain": {
				"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
				"name": "Check Point Data",
				"domain-type": "data domain"
			}
		}
	],
	"action": {
		"uid": "6c488338-8eec-4103-ad21-cd461ac2c472",
		"name": "Accept",
		"type": "RulebaseAction",
		"domain": {
			"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
			"name": "Check Point Data",
			"domain-type": "data domain"
		}
	},
	"action-settings": {
		"enable-identity-captive-portal": false
	},
	"content": [
		{
			"uid": "97aeb369-9aea-11d5-bd16-0090272ccb30",
			"name": "Any",
			"type": "CpmiAnyObject",
			"domain": {
				"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
				"name": "Check Point Data",
				"domain-type": "data domain"
			}
		}
	],
	"content-negate": false,
	"content-direction": "any",
	"time": [
		{
			"uid": "97aeb369-9aea-11d5-bd16-0090272ccb30",
			"name": "Any",
			"type": "CpmiAnyObject",
			"domain": {
				"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
				"name": "Check Point Data",
				"domain-type": "data domain"
			}
		}
	],
	"custom-fields": {
		"field-1": "",
		"field-2": "",
		"field-3": ""
	},
	"track": {
		"type": {
			"uid": "598ead32-aa42-4615-90ed-f51a5928d41d",
			"name": "Log",
			"type": "Track",
			"domain": {
				"uid": "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
				"name": "Check Point Data",
				"domain-type": "data domain"
			}
		},
		"per-session": false,
		"per-connection": true,
		"accounting": false,
		"alert": "none"
	},
	"layer": "7f7308f0-7540-4631-832c-503de7b27c3d"
}
```

## Workflow Library Example

[Get Access Rule with Check Point Management and Send Results Via Email](https://library.blinkops.com/workflows/get-access-rule-with-check-point-management-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-access-rule-with-check-point-management-and-send-results-via-email/canvas" />
</div>
