Skip to content

Added common interfaces and models for DMS StorageInstructions API

Krishna Nikhil Vedurumudi requested to merge dmsStubs into master

Sample Storage Instructions Response will be as follows

{
    "storageLocation": {
        "key1": "value1",
        "key2": "value2"
    },
    "providerKey": "AZURE"
}

Sample Retrieval Instructions response will be as follows

{
	"datasets": [{
		"datasetRegistryId": "value1",
		"retrievalProperties": {}
	},{
		"datasetRegistryId": "value2",
		"retrievalProperties": {}
	}],
	"providerKey": "AZURE"
}

Sample copy dms request


{
	"datasetSources": [{
	    "kind": "{{partition-id}}:wks:dataset--File.Generic:1.0.0",
            "acl": {

            },
	    "legal": {

	    },
	    "data": {
		"DatasetProperties": {
			"FileSourceInfo": {
				"FileSource": "{{fileSource}}"
			}
		}
	    }
        }]
}

Sample copy dms response


[
    {
        "success": true,
        "datasetBlobStoragePath": "<url at which the dataset is copied to>"
    }
]
Edited by Krishna Nikhil Vedurumudi

Merge request reports