2023-02-03 17:43:53 +05:30
# Restore Indices Endpoint
2023-06-28 17:06:51 -05:00
You can do a HTTP POST request to `/gms/operations?action=restoreIndices` endpoint with the `urn` as part of JSON Payload to restore indices for the particular URN, or with the `urnLike` regex to restore for `batchSize` URNs matching the pattern starting from `start` .
2023-02-03 17:43:53 +05:30
```
2025-04-27 21:37:30 -04:00
curl --location --request POST 'https://demo.datahub.com/api/gms/operations?action=restoreIndices' \
2023-02-03 17:43:53 +05:30
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"urn": "YOUR_URN"
}'
2025-04-27 21:37:30 -04:00
curl --location --request POST 'https://demo.datahub.com/api/gms/operations?action=restoreIndices' \
2023-03-12 01:56:10 -06:00
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
2023-03-13 15:12:53 -05:00
"urnLike": "urn:dataPlatform:%"
2023-03-12 01:56:10 -06:00
}'
```
2023-06-28 17:06:51 -05:00
2023-02-03 17:43:53 +05:30
The supported parameters are
2025-04-16 16:55:51 -07:00
2023-06-28 17:06:51 -05:00
- `urn` - Optional URN string
2023-02-03 17:43:53 +05:30
- `aspect` - Optional Aspect string
- `urnLike` - Optional string regex to match URNs
2023-03-13 15:12:53 -05:00
- `start` - Optional integer to decide which rows number of sql store to restore. Default: 0
- `batchSize` - Optional integer to decide how many rows to restore. Default: 10