GET
/
query-rewrite
/
{type}
Get the query rewrite status
curl --request GET \
  --url https://{FUSION HOST}/api/query-rewrite/{type} \
  --header 'Authorization: Basic <encoded-value>'
{
  "app": "<string>",
  "type": "<string>",
  "enabled": true,
  "numDeployed": 123,
  "collection": "<string>",
  "job": "<string>",
  "lastDeployedOn": "2023-11-07T05:31:56Z",
  "lastJobStatus": {
    "resource": "`spark:api-test-app_synonym_detection`",
    "runId": "<string>",
    "startTime": "2023-11-07T05:31:56Z",
    "endTime": "2023-11-07T05:31:56Z",
    "status": "<string>",
    "error": {},
    "extra": {},
    "startedBy": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

type
string
required

The query rewrite type. Use /query-rewrite/instances to get the types for your existing query rewrites, or /query-rewrite/schema to get all possible types.

In the Fusion UI, some of these types correspond to the rewrite types in the Rewrites Manager and others correspond to action types in the Rules Manager.

Query Parameters

context
string
required

The app to which this object belongs, as app:SomeApp. If the app doesn't exist, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.

Response

200 - application/json

OK

The response is of type object.