| 1 | ' |
| 2 | ' Copyright (c) 2022 Microsoft Corporation |
| 3 | ' |
| 4 | ' This program and the accompanying materials are made available under the |
| 5 | ' terms of the Apache License, Version 2.0 which is available at |
| 6 | ' https://www.apache.org/licenses/LICENSE-2.0 |
| 7 | ' |
| 8 | ' SPDX-License-Identifier: Apache-2.0 |
| 9 | ' |
| 10 | ' Contributors: |
| 11 | ' Microsoft Corporation - Initial document |
| 12 | ' |
| 13 | ' |
| 14 | |
| 15 | @startuml |
| 16 | autonumber "<b>(0)" |
| 17 | Client -> Consumer: Call DM API: POST /transferprocess \n - managedResources=true\n - Storage account name \n - AssetId and ContractId |
| 18 | deactivate Client |
| 19 | activate Consumer |
| 20 | Consumer -> "Consumer Vault": Get dest Storage Account key |
| 21 | Consumer -> "Consumer Storage Account": Create container |
| 22 | Consumer -> "Consumer Vault": Store SAS token |
| 23 | Consumer -> Provider: IDS message providing: \n - Account name \n - Container name \n - Write-only dest SAS token \n - AssetId |
| 24 | deactivate Consumer |
| 25 | activate Provider |
| 26 | Provider -> "Provider Vault": Store SAS token |
| 27 | Provider -> "Provider DPF": DPF call: \n - Account name \n - Container name |
| 28 | deactivate Provider |
| 29 | activate "Provider DPF" |
| 30 | "Provider DPF" -> "Provider Vault": Get source Storage Account Key |
| 31 | "Provider DPF" -> "Provider Vault": Get dest SAS token |
| 32 | "Provider DPF" -> "Provider Storage Account": Read |
| 33 | "Provider DPF" -> "Consumer Storage Account": Write |
| 34 | "Provider DPF" -> "Consumer Storage Account": Write .complete blob |
| 35 | deactivate "Provider DPF" |
| 36 | loop |
| 37 | Consumer -> "Consumer Storage Account": Look for .complete blob |
| 38 | end |
| 39 | loop Poll for completion |
| 40 | Client -> Consumer: GET /transferprocess/<PROCESS_ID>/state |
| 41 | end |
| 42 | activate Client |
| 43 | Client -> "Consumer Storage Account": Read result |
| 44 | Client -> "Consumer": Call DM API: POST /transferprocess/<PROCESS_ID>/deprovision |
| 45 | deactivate Client |
| 46 | activate Consumer |
| 47 | Consumer -> "Consumer Storage Account": Delete container |
| 48 | Consumer -> "Consumer Vault": Delete SAS token |
| 49 | deactivate Client |
| 50 | @enduml |