We can write a bash script to do the first step of the A/C following this type of curl command:
https://github.com/wbstack/api/blob/main/app/Jobs/DeleteQueryserviceNamespaceJob.php#L59
https://github.com/wbstack/api/blob/main/app/Jobs/ProvisionQueryserviceNamespaceJob.php#L65
The namespace can be obtained in a similar way to putData.sh:
e.g. https://github.com/wbstack/migrate/blob/main/putData.sh#L85 + https://github.com/wbstack/migrate/blob/main/putData.sh#L90
A/C:
- - script to delete and recreate a queryservice namespace
- - Script to run one off munging and loading process into this namespace