Submit Search Config CSV Generation Job
POST/search/config/jobs
Submits a job to generate an RQL config query results list that matches the constraints in the body parameters and is downloadable as a CSV file. Returns the job ID and job submission status.
To identify your config query, specify either (1) a saved search id, (2) a recent search id plus a unique searchName, or (3) a query plus a unique searchName.
If you identify your search through a saved search id, the following request body parameters apply:
- id - The search ID that corresponds to an existing saved search. You can View Search History with a filter to get a list of your recent search IDs. (Required)
- searchName - A unique name that identifies the search (Required)
- sort - An array of sort field data (Optional)
- timeRange - A time range filter. Default is the past seven days. (Optional)
If you identify your search through a query and searchName, the following request body parameters apply:
- query - A valid RQL config query that defines your search (Required)
- searchName - A unique name that identifies the search (Required)
- searchDescription - A description for your search (Optional)
- sort - An array of sort field data (Optional)
- timeRange - A time range filter. Default is the past seven days. (Optional)
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
- 202
- 400
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
Job ID
Job creator
Creation timestamp
Status URI
{
"id": "string",
"createdBy": "string",
"createdOn": 0,
"getdownloadUri": "string"
}
in_process
invalid_parameter_value