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
{
"certificateTrusted": false,
"packageAlreadyExists": false,
"certificateValid": false,
"certificateUnknown": false,
"contentVerified": false,
"packageName": "string",
"certificateInfo": {
"commonName": "string",
"country": "string",
"serialNumber": "string",
"fingerprintSHA1": "string",
"publicKeyAlgorithm": "string",
"organization": "string",
"validFromDate": "string",
"validUntilDate": "string",
"organizationalUnit": "string"
},
"importElementDetails": [
{
"serverObjectVersion": "string",
"fileObjectVersion": "string",
"hasTenantConflict": false,
"importIt": false,
"versionComparison": "string",
"fileCategory": "string",
"fileObjectName": "string",
"serverCategory": "string",
"id": "string",
"type": "string",
"serverObjectName": "string"
}
]
}
boolean
certificateTrusted
Optional
certificateTrusted
boolean
packageAlreadyExists
Optional
packageAlreadyExists
boolean
certificateValid
Optional
certificateValid
boolean
certificateUnknown
Optional
certificateUnknown
boolean
contentVerified
Optional
contentVerified
string
packageName
Optional
packageName
401
User is not authorized
Operation doesn't return any data structure
Packages Service Operations
POST
Add Actions To Package
POST
Add Action To Package
POST
Add Configuration Element Category To Package
POST
Add Configuration Element To Package
POST
Add Recource Category To Package
POST
Add Recource Element To Package
POST
Add Workflow Category To Package
POST
Add Workflow To Package
PUT
Create Package
DELETE
Delete Action Element
DELETE
Delete Configuration Element
DELETE
Delete Package
DELETE
Delete Permission Rule
DELETE
Delete Permissions For Object
DELETE
Delete Resource Element
DELETE
Delete Workflow Element
POST
Get Import Package Details
GET
Get Permission Rule
GET
Get Permissions For Object
POST
Import Package
POST
Import Package Extended
POST
Insert Permissions For Object
GET
List All Packages
GET
Package Details
POST
Rebuild Package
PATCH
Update Package
PUT
Update Permission Rule