resource_library_applications
Creates, updates, deletes, gets or lists a resource_library_applications resource.
Overview
| Name | resource_library_applications |
| Type | Resource |
| Id | cloudflare.zero_trust.resource_library_applications |
Fields
The following fields are returned by SELECT queries:
- get_by_account
- list
Get the application response.
| Name | Datatype | Description |
|---|---|---|
id | string | Returns the application ID. (example: 12345678-1234-1234-1234-123456789012) |
name | string | Returns the application name. (example: HR) |
human_id | string | Returns the human readable ID. (example: HR) |
intel_id | integer (int64) | Returns the Intel API ID for the application. |
application_confidence_score | number (float) | Confidence score for the application. Returns -1 when no score is available. |
application_score_composition | object | Returns the score composition breakdown for the application. |
application_source | string | Returns the application source. (example: cloudflare) |
application_type | string | Returns the application type. (example: Human Resources) |
application_type_description | string | Returns the application type description. (example: Applications used to manage employees and workforce tools.) |
created_at | string | Returns the application creation time. (example: 2025-01-01T00:00:00Z) |
gen_ai_score | number (float) | GenAI score for the application. Returns -1 when no score is available. |
hostnames | array | Returns the list of hostnames for the application. |
ip_subnets | array | Returns the list of IP subnets for the application. |
port_protocols | array | Returns the list of port protocols for the application. |
support_domains | array | Returns the list of support domains for the application. |
updated_at | string | Returns the application update time. (example: 2025-01-01T00:00:00Z) |
version | string | Returns the application version. (example: 2025-01-01T00:00:00Z) |
Get the application response.
| Name | Datatype | Description |
|---|---|---|
id | string | Returns the application ID. (example: 12345678-1234-1234-1234-123456789012) |
name | string | Returns the application name. (example: HR) |
human_id | string | Returns the human readable ID. (example: HR) |
intel_id | integer (int64) | Returns the Intel API ID for the application. |
application_confidence_score | number (float) | Confidence score for the application. Returns -1 when no score is available. |
application_score_composition | object | Returns the score composition breakdown for the application. |
application_source | string | Returns the application source. (example: cloudflare) |
application_type | string | Returns the application type. (example: Human Resources) |
application_type_description | string | Returns the application type description. (example: Applications used to manage employees and workforce tools.) |
created_at | string | Returns the application creation time. (example: 2025-01-01T00:00:00Z) |
gen_ai_score | number (float) | GenAI score for the application. Returns -1 when no score is available. |
hostnames | array | Returns the list of hostnames for the application. |
ip_subnets | array | Returns the list of IP subnets for the application. |
port_protocols | array | Returns the list of port protocols for the application. |
support_domains | array | Returns the list of support domains for the application. |
updated_at | string | Returns the application update time. (example: 2025-01-01T00:00:00Z) |
version | string | Returns the application version. (example: 2025-01-01T00:00:00Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_account | select | account_id, id | Get application by ID. | |
list | select | account_id | filter, limit, offset, order_by | List applications with different filters. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
id | string | Resource ID. |
filter | string | Filter applications using key:value format. Supported filter keys: - name: Filter by application name (e.g., name:HR) - id: Filter by application ID (e.g., id:0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0) - human_id: Filter by human-readable ID (e.g., human_id:HR) - hostname: Filter by hostname or support domain (e.g., hostname:portal.example.com) - source: Filter by application source name (e.g., source:cloudflare) - ip_subnet: Filter by IP subnet using CIDR containment — returns applications where any stored subnet contains the search value (e.g., ip_subnet:10.0.1.5/32 matches apps with 10.0.0.0/16) - intel_id: Filter by Intel API ID (e.g., intel_id:498). . |
limit | integer | Limit of number of results to return (max 250). |
offset | integer | Offset of results to return. |
order_by | string | Order by result by field name and order (e.g., name:asc). |
SELECT examples
- get_by_account
- list
Get application by ID.
SELECT
id,
name,
human_id,
intel_id,
application_confidence_score,
application_score_composition,
application_source,
application_type,
application_type_description,
created_at,
gen_ai_score,
hostnames,
ip_subnets,
port_protocols,
support_domains,
updated_at,
version
FROM cloudflare.zero_trust.resource_library_applications
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}' -- required
;
List applications with different filters.
SELECT
id,
name,
human_id,
intel_id,
application_confidence_score,
application_score_composition,
application_source,
application_type,
application_type_description,
created_at,
gen_ai_score,
hostnames,
ip_subnets,
port_protocols,
support_domains,
updated_at,
version
FROM cloudflare.zero_trust.resource_library_applications
WHERE account_id = '{{ account_id }}' -- required
AND filter = '{{ filter }}'
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND order_by = '{{ order_by }}'
;