Skip to main content

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

Import started