Get Import Package Details

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/";
MultiValueMap parts = 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
{
    "packageName": "string",
    "packageAlreadyExists": false,
    "contentVerified": false,
    "certificateInfo": {
        "organization": "string",
        "organizationalUnit": "string",
        "commonName": "string",
        "validUntilDate": "string",
        "validFromDate": "string",
        "publicKeyAlgorithm": "string",
        "fingerprintSHA1": "string",
        "serialNumber": "string",
        "country": "string"
    },
    "certificateValid": false,
    "certificateTrusted": false,
    "certificateUnknown": false,
    "importElementDetails": [
        {
            "id": "string",
            "type": "string",
            "fileObjectName": "string",
            "fileCategory": "string",
            "versionComparison": "string",
            "fileObjectVersion": "string",
            "serverObjectName": "string",
            "serverCategory": "string",
            "serverObjectVersion": "string",
            "importIt": false,
            "hasTenantConflict": false
        }
    ]
}
string
packageName
Optional

packageName

boolean
packageAlreadyExists
Optional

packageAlreadyExists

boolean
contentVerified
Optional

contentVerified

certificateInfo
Optional

certificateInfo

boolean
certificateValid
Optional

certificateValid

boolean
certificateTrusted
Optional

certificateTrusted

boolean
certificateUnknown
Optional

certificateUnknown

importElementDetails
Optional

importElementDetails


401

User is not authorized

Operation doesn't return any data structure