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
File of type(s) multipart/form-data
Optional
{
    "file": "string"
}
string
file
Required

file

Authentication
This operation uses the following authentication methods.
Responses
200

The request is successful

Returns ImportPackageDetails of type(s) application/json
{
    "packageName": "string",
    "packageAlreadyExists": false,
    "contentVerified": false,
    "packageCertificateInfo": {
        "organization": "string",
        "organizationalUnit": "string",
        "commonName": "string",
        "validUntilDate": "string",
        "validFromDate": "string",
        "publicKeyAlgorithm": "string",
        "fingerprint": "string",
        "serialNumber": "string",
        "country": "string"
    },
    "certificateUnknown": false,
    "certificateTrusted": false,
    "certificateValid": false,
    "importElementDetails": [
        {
            "id": "string",
            "type": "string",
            "fileObjectName": "string",
            "fileCategory": "string",
            "versionComparison": "string",
            "fileObjectVersion": "string",
            "serverObjectName": "string",
            "serverCategory": "string",
            "serverObjectVersion": "string",
            "importIt": false,
            "hasTenantConflict": false,
            "hasNameConflict": false,
            "hasRights": false,
            "renamed": false
        }
    ]
}
string
packageName
Optional

packageName

boolean
packageAlreadyExists
Optional

packageAlreadyExists

boolean
contentVerified
Optional

contentVerified

object
packageCertificateInfo
Optional

packageCertificateInfo

boolean
certificateUnknown
Optional

certificateUnknown

boolean
certificateTrusted
Optional

certificateTrusted

boolean
certificateValid
Optional

certificateValid

array of object
importElementDetails
Optional

importElementDetails


401

User is not authorized

Returns ImportPackageDetails of type(s) application/json
"ImportPackageDetails Object"
string
packageName
Optional

packageName

boolean
packageAlreadyExists
Optional

packageAlreadyExists

boolean
contentVerified
Optional

contentVerified

object
packageCertificateInfo
Optional

packageCertificateInfo

boolean
certificateUnknown
Optional

certificateUnknown

boolean
certificateTrusted
Optional

certificateTrusted

boolean
certificateValid
Optional

certificateValid

array of object
importElementDetails
Optional

importElementDetails


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{"file:"string"}' https://{api_host}/vco/api/packages/import-details