Skip to main content

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

Body

required

Config rule search parameters model

    searchName string

    Search name. For asynchronouse search jobs only.

    searchDescription string

    Search description. For asynchronouse search jobs only.

    withResourceJson boolean

    true = include resource JSON. Default is true.

    timeRange object

    Model for TimeRangeConfig

    type string

    Possible values: [relative]

    Time type

    value object

    Model for RelativeTimeDuration

    unit string

    Possible values: [minute, hour, day, week, month, year]

    Time unit

    amount int32

    Number of time units

    sort object[]

    Sort field data

  • Array [
  • field string

    Possible values: [ID, TIME, API_NAME, CUSTOMER_ID, INSERT_TS, JSON, CLOUD_ACCOUNT, CLOUD_REGION, STATE_ID]

    direction string

    Possible values: [asc, desc]

    Direction

  • ]
  • limit int32

    Results per page. Does not apply to asynchronous search jobs.

    id string

    Search ID

    query string

    RQL query

Responses

success

Schema
    id string

    Job ID

    createdBy string

    Job creator

    createdOn int64

    Creation timestamp

    getdownloadUri string

    Status URI

Loading...