KSC Open API  13.0
Kaspersky Security Center API description
wstring MigrationData::InitFileUpload ( )

Retrieves URL for zip archive upload.

Retrieves URL for upload zip archive with exported data. To correctly upload zip archive, which was received after export, one should do the following:

  1. Acquire async action GUID from MigrationData::Export method
  2. Get URL from async action GUID by calling AsyncActionStateChecker::CheckActionState - URL-path to zip archive will be in in pStateData
  3. Download zip file from URL, received in previous step
  4. Call method MigrationData::InitFileUpload to receive URL for upload (this method)
  5. Upload zip archive to URL, retrieved in previous step, using HTTP PUT request.

After all above is done, you can call MigrationData::Import to perform import

Returns:
(wstring) resulting URL for zip-archive