> ## 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 Resource Records

Get a list of all resource records within a specified DNS.

**Important Note:** This action is only available when using the `V2` connection method of BlueCat Address Manager.

<Note>
  External Documentation

  To learn more, visit the [BlueCat Address Manager documentation](https://docs.bluecatnetworks.com/r/Address-Manager-RESTful-v2-API-Guide/Introduction/9.6.0).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                |
  | --------------------- | ---------------------------------------------------------------------------------------------------------- |
  | Collection ID         | The ID of the zones collection to search the resource records within.                                      |
  | Fields                | A comma-separated list of fields to include in the response. <br /><br />**For example** - `id,name,type`. |
  | Filter                | A criteria to filter the results by.                                                                       |
  | Include Total Results | Select to get the total number of results in the response.                                                 |
  | Limit                 | The maximum number of results to return per page.                                                          |
  | Offset                | The pagination offset indicating the starting point for the next set of results.                           |
  | Order By              | The attribute to sort the results with.                                                                    |
  | Return All Pages      | Automatically fetch all resources, page by page.                                                           |
</div>

## Example Output

```json theme={"dark"}
{
	"_links": {
		"next": {
			"href": "/api/v2/resourceRecords?offset=2000&limit=1000"
		},
		"prev": {
			"href": "/api/v2/resourceRecords?offset=0&limit=1000"
		}
	},
	"count": 0,
	"totalCount": 0,
	"data": [
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "CNAME",
			"linkedRecord": {
				"id": 12345,
				"type": "ResourceRecord",
				"name": "name",
				"absoluteName": "host1.example.com"
			},
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "A",
			"rdata": "3 1 1 ecc104c4fbb06b249d3c7a68f19cf28a60a9c6814874ad7efde451688039fe01",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "HINFO",
			"os": "Debian Linux 5.10",
			"cpu": "INTEL",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "UNKNOWN(-1)",
			"reverseRecord": true,
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"linkedRecord": {
				"id": 12345,
				"type": "string",
				"name": "name",
				"absoluteName": "host1.example.com"
			},
			"priority": 65535,
			"serviceParameters": {
				"encryptedClientHello": [
					"string"
				],
				"defaultAlpnIdentifierEnabled": true,
				"port": 65535,
				"alpnIdentifiers": [
					"string"
				],
				"ipv4AddressHints": [
					"string"
				],
				"ipv6AddressHints": [
					"string"
				],
				"mandatoryKeys": [
					"string"
				],
				"privateUseValues": {
					"additionalProp1": "string",
					"additionalProp2": "string",
					"additionalProp3": "string"
				}
			},
			"recordType": "HTTPS",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "MX",
			"linkedRecord": {
				"id": 12345,
				"type": "string",
				"name": "name",
				"absoluteName": "host1.example.com"
			},
			"priority": 2147483647,
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "NAPTR",
			"order": 50,
			"preference": 100,
			"service": "http+I2R",
			"regularExpression": "!http://(#~()##@+)!\\1!i4",
			"replacement": "_http._tcp.example.com.",
			"flags": "s",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "SRV",
			"linkedRecord": {
				"id": 12345,
				"type": "string",
				"name": "name",
				"absoluteName": "host1.example.com"
			},
			"priority": 50,
			"weight": 50,
			"port": 5432,
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"linkedRecord": {
				"id": 12345,
				"type": "string",
				"name": "name",
				"absoluteName": "host1.example.com"
			},
			"priority": 65535,
			"serviceParameters": {
				"encryptedClientHello": [
					"string"
				],
				"defaultAlpnIdentifierEnabled": true,
				"port": 65535,
				"alpnIdentifiers": [
					"string"
				],
				"ipv4AddressHints": [
					"string"
				],
				"ipv6AddressHints": [
					"string"
				],
				"mandatoryKeys": [
					"string"
				],
				"privateUseValues": {
					"additionalProp1": "string",
					"additionalProp2": "string",
					"additionalProp3": "string"
				}
			},
			"recordType": "SVCB",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "TXT",
			"text": "printer=OfficePrinter1",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		},
		{
			"id": 12345,
			"type": "ResourceRecord",
			"name": "name",
			"userDefinedFields": {
				"udf1": "value1",
				"udf2": "value2"
			},
			"configuration": {
				"id": 12345,
				"type": "Configuration",
				"name": "name"
			},
			"ttl": 3600,
			"absoluteName": "host1.example.com",
			"comment": "Sample comment.",
			"dynamic": true,
			"recordType": "URI",
			"priority": 65535,
			"weight": 65535,
			"target": "<target>",
			"_links": {
				"self": {
					"href": "/resourceRecords/12345"
				},
				"collection": {
					"href": "/resourceRecords"
				}
			}
		}
	]
}
```

## Workflow Library Example

[Get Resource Records with Bluecat Address Manager and Send Results Via Email](https://library.blinkops.com/workflows/get-resource-records-with-bluecat-address-manager-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-resource-records-with-bluecat-address-manager-and-send-results-via-email/canvas" />
</div>
