Import inventory revision from repository
POST/nevisadmin/api/v1/inventories/:key/revision-import/:commitId
Required permission: VIEW_INVENTORY on the inventory, or higher scope
Imports a specific revision of the inventory stored in the remote repository.
The original inventory (set on the URL) must already exist. The imported inventory will have the same key as the original inventory with a suffix based on the imported commitId (e.g. DEFAULT-INVENTORY-CD-TEST:A1F6635). The imported inventory will be read-only.
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.
Request
Responses
- 202
- 400
- 403
- 404
- 409
Import started
Invalid inventory key or no commit ID, or the inventory is not published, or the inventory is a revision itself
Insufficient permissions.
Inventory not found
Revision inventory has already been imported