user_agents
Creates, updates, deletes, gets or lists a user_agents resource.
Overview
| Name | user_agents |
| Type | Resource |
| Id | cloudflare.radar.user_agents |
Fields
The following fields are returned by SELECT queries:
- list
Successful response.
| Name | Datatype | Description |
|---|---|---|
meta | object | Metadata for the results. |
top_0 | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | limit, name, userAgentCategory, date, domainCategory, directive, format | Retrieves the top user agents on robots.txt files. |
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 |
|---|---|---|
date | array | Filters results by the specified array of dates. |
directive | string | Filters results by robots.txt directive. |
domainCategory | array | Filters results by domain category. |
format | string | Format in which results will be returned. |
limit | integer | Limits the number of objects returned in the response. |
name | array | Array of names used to label the series in the response. |
userAgentCategory | string | Filters results by user agent category. |
SELECT examples
- list
Retrieves the top user agents on robots.txt files.
SELECT
meta,
top_0
FROM cloudflare.radar.user_agents
WHERE limit = '{{ limit }}'
AND name = '{{ name }}'
AND userAgentCategory = '{{ userAgentCategory }}'
AND date = '{{ date }}'
AND domainCategory = '{{ domainCategory }}'
AND directive = '{{ directive }}'
AND format = '{{ format }}'
;