mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	Co-authored-by: Indy Prentice <indy@Indys-MacBook-Pro.local> Co-authored-by: Indy Prentice <indy@ip-172-16-225-44.us-west-2.compute.internal>
		
			
				
	
	
		
			27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Restore Indices Endpoint
 | 
						|
 | 
						|
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`.
 | 
						|
 | 
						|
```
 | 
						|
curl --location --request POST 'https://demo.datahubproject.io/api/gms/operations?action=restoreIndices' \
 | 
						|
--header 'Authorization: Bearer TOKEN' \
 | 
						|
--header 'Content-Type: application/json' \
 | 
						|
--data-raw '{
 | 
						|
    "urn": "YOUR_URN"
 | 
						|
}'
 | 
						|
 | 
						|
curl --location --request POST 'https://demo.datahubproject.io/api/gms/operations?action=restoreIndices' \
 | 
						|
--header 'Authorization: Bearer TOKEN' \
 | 
						|
--header 'Content-Type: application/json' \
 | 
						|
--data-raw '{
 | 
						|
    "urnLike": "urn:dataPlatform:%"
 | 
						|
}'
 | 
						|
```
 | 
						|
 | 
						|
The supported parameters are
 | 
						|
- `urn` - Optional URN string
 | 
						|
- `aspect` - Optional Aspect string
 | 
						|
- `urnLike` - Optional string regex to match URNs
 | 
						|
- `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
 |