Perform Config Search by Query
POST/search/api/v1/config
Returns the results of an RQL config query. With config queries, you can retrieve resource information, identify misconfigurations, gain operational insights, and uncover policy and compliance violations.
When a query returns over 100 results, the response includes the nextPageToken
field which can be used as the request parameter pageToken
in the Get The Next Search Page endpoint to retrieve the next page of search results.
Request
- application/json; charset=UTF-8
Body
required
Config rule search by query request parameters model
- Array [
- ]
Skip Search Creation. Default is false
Results per page
true = include resource JSON. Default is false.
timeRange object
Model for TimeRangeConfig
Possible values: [relative
]
Time type
value object
Model for RelativeTimeDuration
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
Number of time units
Skip Search Result. Default is false
sort object[]
Sort field data
Possible values: [ID
, TIME
, API_NAME
, CUSTOMER_ID
, INSERT_TS
, JSON
, CLOUD_ACCOUNT
, CLOUD_REGION
, STATE_ID
]
Possible values: [asc
, desc
]
Direction
RQL query
Page Token
Responses
- 200
- 400
- 404
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
The total number of matching resources
items object[]
List of matching resources
RRN
State ID
Asset ID
ID
Name
URL
Account ID
Account name
Account group name
Possible values: [ALL
, AWS
, AZURE
, GCP
, ALIBABA_CLOUD
, OCI
, OTHER
, IBM
]
Cloud Type
Region ID
Region name
Service
Resource type
Insertion timestamp
Creation timestamp
Deleted
Virtual private cloud ID
Virtual private cloud name
tags object
Tags
Risk grade
data object
Raw JSON data for the resource
dynamicData object
Dynamic data
property name* object
Has network
Has external finding
Has external integration
allowDrillDown
Has risk factors
allowDrillDown
Set of names of custom resource attributes
Encoded page token to continue pagination
Search id
{
"totalRows": 0,
"items": [
{
"rrn": "string",
"stateId": "string",
"assetId": "string",
"id": "string",
"name": "string",
"url": "string",
"accountId": "string",
"accountName": "string",
"accountGroupName": "string",
"cloudType": "ALL",
"regionId": "string",
"regionName": "string",
"service": "string",
"resourceType": "string",
"insertTs": 0,
"createdTs": 0,
"deleted": true,
"vpcId": "string",
"vpcName": "string",
"tags": {},
"riskGrade": "string",
"data": {},
"dynamicData": {},
"hasNetwork": true,
"hasExternalFinding": true,
"hasExternalIntegration": true,
"allowDrillDown": true,
"hasExtFindingRiskFactors": true,
"resourceConfigJsonAvailable": true
}
],
"dynamicColumns": [
"string"
],
"nextPageToken": "string",
"infoMsg": "string",
"sortAllowedColumns": [
"string"
],
"id": "string"
}
conflict_saved_search
not_found