Description: Import the Release Bundle from the zip file. For more information, see Distribute Release Bundles (v1) in an Air Gap Environment
Note: The Import process is performed on the Artifactory node.
You can set dryRun=true
to validate that the conditions for performing the import process are met:
- All the target repositories exist in Artifactory
- No Release Bundle of this name already exists in Artifactory.
From Artifactory 7.10.2, the import feature has been extended to support importing a file from a user-defined ARTIFACTORY_HOME/var/data/artifactory/import/
path. Note that the file will be deleted from the path after the file is imported.
Since: 7.9
Security: Admin only
Usage: POST api/release/import/import?file_name=<fileName>&dry_run=<true|false>
Consumes: application/json
Import from Local File Example
curl -X POST 'http://localhost:8082/artifactory/api/release/import -H 'Content-Type: application/octet-stream' -uadmin:password curl -X POST "http://localhost:8082/artifactory/api/release/import" -H "Content-Type: application/octet-stream" --data-binary @release_bundle-1.0.0.zip -uadmin:password
Import from Path Example
curl -X POST "http://localhost:8082/artifactory/api/release/import?file_name=release_bundle-1.0.0.zip" -H "Content-Type: application/json" -uadmin:password
Response status codes:
202 - Successfully triggered to import version
400 - Failed to import version