Import Package Extended
Imports a package based on a import specification. The package binary content should be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client's HTTP/REST library. For example, in Spring it will look like:
Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/packages/";
MultiValueMapparts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/some.package");
parts.put("file", Arrays.asList(r));
new RestTemplate().postForLocation(url, parts);
-------------------
Request
URI
POST
https://{api_host}/vco/api/packages/extendedImport
COPY
Request Body
File
of type(s)
multipart/form-data
Optional
Show optional properties
{
"file": "string",
"importSpecification": {}
}
{
"file": "string",
"importSpecification": {
"importConfigurationAttributeValues": false,
"tagImportMode": "string",
"importElements": [
{
"id": "string",
"type": "string",
"fileObjectName": "string",
"fileCategory": "string"
}
],
"importConfigSecureStringAttributeValues": false,
"overwrite": false,
"importOlderVersions": false
}
}
string
file
Required
file
Responses
201
Package successfully imported
Returns
PackageImportResult
of type(s)
application/json
"PackageImportResult Object"
array of
object
errors
Optional
errors
401
User is not authorized
Returns
PackageImportResult
of type(s)
application/json
"PackageImportResult Object"
array of
object
errors
Optional
errors
409
One or more package elements have an older version.
Returns
PackageImportResult
of type(s)
application/json
"PackageImportResult Object"
array of
object
errors
Optional
errors
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{"file:"string","importSpecification:"object"}' https://{api_host}/vco/api/packages/extendedImport
Packages Service Operations
GET
Export Package
PUT
Create Package
DELETE
Delete Package
PATCH
Update Package
PUT
Increment Version
GET
List All Packages
POST
Import Package
POST
Add Workflow Category To Package
POST
Add Workflow To Package
POST
Add Resource Category To Package
POST
Add Resource Element To Package
POST
Rebuild Package
POST
Add Environment Repository To Package
POST
Add Environment To Package
POST
Add Configuration Element Category To Package
POST
Add Configuration Element To Package
POST
Add Action To Package
POST
Add Actions To Package
POST
Get Import Package Details
POST
Get Import Package Details 1
POST
Import Package Extended
GET
Export Troubleshooting Data
DELETE
Delete Workflow Element
DELETE
Delete Resource Element
DELETE
Delete Configuration Element
DELETE
Delete Action Element