5.0 Step 2: Get Platforms

After you add one or more locations, you can query to get a list of platforms. This example shows what the results look like after you add the Azure location in Step 1: Add an Azure Platform.

Method: GET

https://10.10.10.143/MigrateApi/2019.8/platforms

Response: Data returned from GET

[
    {
        "id": "82bf9b3f-075d-4513-8124-aa6400e2b870",
        "name": "centralus",
        "status": "Ready",
        "userName": "username@accountname.onmicrosoft.com",
        "processorDescription": "Azure",
        "errorMessage": null,
        "lastUpdated": "6/6/2019",
        "version": null,
        "transformationData": null,
        "links": [
            {
                "href": "https://10.10.10.143/MigrateApi/2019.8/platforms/82bf9b3f-075d-4513-8124-aa6400e2b870",
                "rel": "self",
                "methods": [
                    "GET"
                ]
            },
            {
                "href": "https://10.10.10.143/MigrateApi/2019.8/platforms/82bf9b3f-075d-4513-8124-aa6400e2b870?operation=Refresh",
                "rel": "operation-Refresh",
                "methods": [
                    "POST"
                ]
            },
            {
                "href": "https://10.10.10.143/MigrateApi/2019.8/platforms/82bf9b3f-075d-4513-8124-aa6400e2b870",
                "rel": "operation-Remove",
                "methods": [
                    "DEL"
                ]
            },
            {
                "href": "https://10.10.10.143/MigrateApi/2019.8/operations/ff7a4b13-0ae8-4172-b6be-aa6400e2b87e",
                "rel": "lastOperation",
                "methods": [
                    "GET"
                ]
            },
            {
                "href": "https://10.10.10.143/MigrateApi/2019.8/platforms/82bf9b3f-075d-4513-8124-aa6400e2b870/inventory",
                "rel": "inventory",
                "methods": [
                    "GET"
                ]
            }
        ],
        "type": "AzureCloudPlatform"
    }
]