Perform Config Search
POST/search/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.
Download Config Search CSV
In addition to performing a config search, this endpoint can perform the config search and download the results as a CSV file. To download the config search CSV, add the request HTTP header Accept: text/csv.
An example request body is:
{
"query":"config where api.name = 'aws-iam-get-account-summary' ",
"timeRange":{
"type":"relative",
"value":{
"unit":"hour",
"amount":24
}
}
}
Request
- application/json; charset=UTF-8
Body
required
Config rule search parameters model
- Array [
- ]
Search name. For asynchronouse search jobs only.
Search description. For asynchronouse search jobs only.
true = include resource JSON. Default is true.
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
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
Results per page. Does not apply to asynchronous search jobs.
Search ID
RQL query
Responses
- 200
- 400
- 404
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
Group By
filters object[]
View Order
Name
Value
Possible values: [=
]
Operator
Time Granularity
Alert ID
Possible values: [aws
, azure
, gcp
, alibaba_cloud
, oci
]
Cloud Type
Search ID
Search Name
Search Description
Possible values: [network
, audit_event
, config
, asset
]
Search Type
Async Result Url
Search Exists
timeRange objectrequired
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
RQL Query
Cursor
data object
items object[]
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
true = Is Async
{
"groupBy": [
"string"
],
"filters": [
{
"name": "string",
"value": "string",
"operator": "="
}
],
"timeGranularity": "string",
"alertId": "string",
"cloudType": "aws",
"id": "string",
"name": "string",
"description": "string",
"searchType": "network",
"asyncResultUrl": "/search/config/jobs/2df49d4f72e842b582b123bc2b7826b3/download",
"saved": true,
"timeRange": {
"type": "relative",
"value": {
"unit": "minute",
"amount": 0
}
},
"query": "string",
"cursor": 0,
"data": {
"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"
]
},
"default": true,
"async": true
}
conflict_saved_search
not_found