Get Import Package Details
Analyses uploaded package file and returns details about package elements and certificate. 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/import-details
COPY
Request Body
importAction
of mimetype
application/x-www-form-urlencoded
Optional
Responses
200
The request is successful
Returns
ImportPackageDetails
of type(s)
application/json
"ImportPackageDetails Object"
string
packageName
Optional
packageName
boolean
packageAlreadyExists
Optional
packageAlreadyExists
boolean
contentVerified
Optional
contentVerified
object
certificateInfo
Optional
certificateInfo
boolean
certificateValid
Optional
certificateValid
boolean
certificateTrusted
Optional
certificateTrusted
boolean
certificateUnknown
Optional
certificateUnknown
array of
object
importElementDetails
Optional
importElementDetails
401
User is not authorized
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/x-www-form-urlencoded' -d '{"file:"string"}' https://{api_host}/vco/api/packages/import-details
Packages Service Operations
GET
List All Packages
POST
Import Package
POST
Import Package Extended
POST
Get Import Package Details
GET
Package Details
PUT
Create Package
DELETE
Delete Package
PATCH
Update Package
POST
Add Actions To Package
POST
Add Action To Package
DELETE
Delete Action Element
POST
Add Configuration Element To Package
DELETE
Delete Configuration Element
POST
Add Configuration Element Category To Package
GET
Get Permissions For Object
POST
Insert Permissions For Object
DELETE
Delete Permissions For Object
GET
Get Permission Rule
PUT
Update Permission Rule
DELETE
Delete Permission Rule
POST
Rebuild Package
DELETE
Delete Resource Element
POST
Add Recource Element To Package
POST
Add Recource Category To Package
DELETE
Delete Workflow Element
POST
Add Workflow To Package
POST
Add Workflow Category To Package