Import inventory from repository
POST/nevisadmin/api/v1/inventories/revision-import
Required permission: CREATE_INVENTORY on the tenant, or global scope
Imports the inventory sent in the request with the changes stored in the remote repository.
If the call was successful the response code will be '202 Accepted' and the 'Location' header will point to the job that will execute the import. Getting that job will allow you to know the progress and status of the import.
The inventory key in the request body has to be all-uppercase. If it's not, it will be transformed into all-uppercase.
Request
Responses
- 202
- 400
- 403
- 404
- 409
- 500
Import started
Missing or invalid request body
Insufficient permissions.
Tenant not found
Inventory with the same key already exists, or the checked out repository is empty.
Error during import, e.g. SCM interaction error.