This command exports the artifacts of a component version into an archive file.
Request
GET https://{hostname}:{port}
/cli/version/downloadArtifacts?{parameters}
Accept: application/json
Trigger download into a zip file to your desired
folder:
curl -X GET -k -u user:pwd 'https://localhost:8443/cli/version/downloadArtifacts?component=COMPONENT&version=VERSION' > /path/to/DEST.ZIP
Table 1. Request parameters| Parameter |
Type |
Required |
Description |
| component |
string |
false |
Name or ID of the component; this value is required if you specify the version
name instead of ID |
| version |
string |
true |
Name or ID of the version |
| location |
string |
false |
Path to download the artifacts to. You must have permission to create files in
this location. |
| singleFilePath |
string |
false |
Optional path to an individual version artifact to download. If specified,
only that file will be downloaded. |
| encoding |
string |
false |
Optional character encoding to determine the file names of the artifacts.
Defaults to the encoding of the file system. |
Example
curl -k -u jsmith:passwd
"https://myserver.example.com:8443/cli/version/downloadArtifacts
?component=JPetStore-WEB&version=1.0"