diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json index fa30d696976d..6d26e8fc53ba 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json @@ -23,12 +23,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName", "description": "Example Agent Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Registering", "arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9", "lastStatusUpdate": null, "localIPAddress": null, "memoryInMB": null, "numberOfCores": null, + "uptimeInSeconds": null, "errorDetails": null } } diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json index fb3aef44f6e0..427890d8e43b 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json @@ -24,12 +24,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName", "description": "Example Agent Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Online", "arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9", "lastStatusUpdate": "2020-02-01T01:01:01.1075056Z", "localIPAddress": "192.168.0.0", "memoryInMB": 100024, "numberOfCores": 32, + "uptimeInSeconds": 522, "errorDetails": null } } diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json index a0be44086a31..ba21b0b0b866 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json @@ -25,12 +25,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName1", "description": "Example Agent 1 Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Online", "arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9", "lastStatusUpdate": "2020-02-01T01:01:01.1075056Z", "localIPAddress": "192.168.0.0", "memoryInMB": 100024, "numberOfCores": 32, + "uptimeInSeconds": 522, "errorDetails": null } }, @@ -50,12 +51,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName2", "description": "Example Agent 2 Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Online", "arcVmUuid": "147a1f84-7bbf-4e99-9a6a-a1735a91dfd5", "lastStatusUpdate": "2020-02-01T01:01:01.1075056Z", "localIPAddress": "192.168.0.0", "memoryInMB": 100024, "numberOfCores": 32, + "uptimeInSeconds": 522, "errorDetails": null } }, @@ -75,12 +77,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName3", "description": "Example Agent 3 Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Online", "arcVmUuid": "648a7958-f99e-4268-b20e-94c96558dc0d", "lastStatusUpdate": "2020-02-01T01:01:01.1075056Z", "localIPAddress": "192.168.0.0", "memoryInMB": 100024, "numberOfCores": 32, + "uptimeInSeconds": 522, "errorDetails": { "code": "SampleErrorCode", "message": "Detailed sample error message." diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json index 70fd561dfbb5..36b49569a4dc 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json @@ -21,12 +21,13 @@ "arcResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName", "description": "Updated Agent Description", "agentVersion": "1.0.0", - "agentStatus": "Provisioning", + "agentStatus": "Online", "arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9", "lastStatusUpdate": "2020-02-01T01:01:01.1075056Z", "localIPAddress": "192.168.0.0", "memoryInMB": 100024, "numberOfCores": 32, + "uptimeInSeconds": 522, "errorDetails": null } } diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json index 58201c0ce16a..c7d0d3efc148 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json @@ -29,7 +29,7 @@ "host": "0.0.0.0", "nfsVersion": "NFSv4", "description": "Example Storage Container Endpoint 2 Description", - "remoteExport": "/" + "export": "/" } }, { diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json index 2b21ef3100a1..b00321a72283 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json @@ -21,7 +21,7 @@ "agentResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent", "executionStartTime": "2020-02-01T01:01:01.1075056Z", "executionEndTime": null, - "lastUpdatedTime": "2020-02-01T01:31:01.1075056Z", + "lastStatusUpdate": "2020-02-01T01:31:01.1075056Z", "sourceName": "sourceEndpoint", "sourceResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint", "sourceProperties": {}, @@ -33,14 +33,12 @@ "itemsExcluded": 50, "itemsUnsupported": 27, "itemsNoTransferNeeded": 150, - "itemsDesignatedForTransfer": 124, "itemsFailed": 3, "itemsTransferred": 100, "bytesScanned": 49951162777600, "bytesExcluded": 995116277760, "bytesUnsupported": 495116277760, "bytesNoTransferNeeded": 2995116277760, - "bytesDesignatedForTransfer": 45465813944320, "bytesFailed": 5116277760, "bytesTransferred": 1995116277760 } diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json index afe8d58ddd6b..3f58c07e1cba 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json @@ -22,7 +22,7 @@ "agentResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent", "executionStartTime": "2020-02-01T01:01:01.1075056Z", "executionEndTime": null, - "lastUpdatedTime": "2020-02-01T01:31:01.1075056Z", + "lastStatusUpdate": "2020-02-01T01:31:01.1075056Z", "sourceName": "sourceEndpoint", "sourceResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint", "sourceProperties": {}, @@ -34,14 +34,12 @@ "itemsExcluded": 50, "itemsUnsupported": 27, "itemsNoTransferNeeded": 150, - "itemsDesignatedForTransfer": 124, "itemsFailed": 3, "itemsTransferred": 100, "bytesScanned": 49951162777600, "bytesExcluded": 995116277760, "bytesUnsupported": 495116277760, "bytesNoTransferNeeded": 2995116277760, - "bytesDesignatedForTransfer": 45465813944320, "bytesFailed": 5116277760, "bytesTransferred": 1995116277760 } @@ -57,7 +55,7 @@ "agentResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent", "executionStartTime": "2020-02-01T01:01:01.1075056Z", "executionEndTime": null, - "lastUpdatedTime": "2020-02-01T01:31:01.1075056Z", + "lastStatusUpdate": "2020-02-01T01:31:01.1075056Z", "sourceName": "sourceEndpoint", "sourceResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint", "sourceProperties": {}, @@ -69,14 +67,12 @@ "itemsExcluded": 50, "itemsUnsupported": 27, "itemsNoTransferNeeded": 150, - "itemsDesignatedForTransfer": 124, "itemsFailed": 3, "itemsTransferred": 100, "bytesScanned": 49951162777600, "bytesExcluded": 995116277760, "bytesUnsupported": 495116277760, "bytesNoTransferNeeded": 2995116277760, - "bytesDesignatedForTransfer": 45465813944320, "bytesFailed": 5116277760, "bytesTransferred": 1995116277760 } @@ -92,7 +88,7 @@ "agentResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent", "executionStartTime": "2020-02-01T01:01:01.1075056Z", "executionEndTime": null, - "lastUpdatedTime": "2020-02-01T01:31:01.1075056Z", + "lastStatusUpdate": "2020-02-01T01:31:01.1075056Z", "sourceName": "sourceEndpoint", "sourceResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint", "sourceProperties": {}, @@ -104,14 +100,12 @@ "itemsExcluded": 50, "itemsUnsupported": 27, "itemsNoTransferNeeded": 150, - "itemsDesignatedForTransfer": 124, "itemsFailed": 3, "itemsTransferred": 100, "bytesScanned": 49951162777600, "bytesExcluded": 995116277760, "bytesUnsupported": 495116277760, "bytesNoTransferNeeded": 2995116277760, - "bytesDesignatedForTransfer": 45465813944320, "bytesFailed": 5116277760, "bytesTransferred": 1995116277760 } diff --git a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/storagemover.json b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/storagemover.json index 41a2f8919f9f..f957438ca27d 100644 --- a/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/storagemover.json +++ b/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/storagemover.json @@ -1306,6 +1306,10 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob": { "post": { + "consumes": [ + "application/json", + "application/x-www-form-urlencoded" + ], "tags": [ "JobDefinitions" ], @@ -1354,6 +1358,10 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob": { "post": { + "consumes": [ + "application/json", + "application/x-www-form-urlencoded" + ], "tags": [ "JobDefinitions" ], @@ -1535,12 +1543,12 @@ "agentStatus": { "description": "The agent status.", "enum": [ - "Provisioning", + "Registering", "Offline", "Online", "Executing", "RequiresAttention", - "Deprovisioning" + "Unregistering" ], "type": "string", "x-ms-enum": { @@ -1572,6 +1580,12 @@ "description": "Available compute cores reported by the agent.", "readOnly": true }, + "uptimeInSeconds": { + "type": "integer", + "format": "int64", + "description": "Uptime of the agent in seconds.", + "readOnly": true + }, "errorDetails": { "type": "object", "properties": { @@ -1907,7 +1921,7 @@ "create" ] }, - "remoteExport": { + "export": { "description": "The directory being exported from the server.", "type": "string", "x-ms-mutability": [ @@ -1918,7 +1932,7 @@ }, "required": [ "host", - "remoteExport" + "export" ], "allOf": [ { @@ -2202,10 +2216,10 @@ "format": "date-time", "description": "End time of the run. Null if agent has not reported that the job has ended." }, - "lastUpdatedTime": { + "lastStatusUpdate": { "type": "string", "format": "date-time", - "description": "Last update time.", + "description": "The last updated time of the job run.", "readOnly": true }, "itemsScanned": { @@ -2232,12 +2246,6 @@ "description": "Number of items that will not be transferred, as they are already found on target (e.g. mirror mode).", "readOnly": true }, - "itemsDesignatedForTransfer": { - "type": "integer", - "format": "int64", - "description": "Number of items identified for transferring so far in scan.", - "readOnly": true - }, "itemsFailed": { "type": "integer", "format": "int64", @@ -2274,12 +2282,6 @@ "description": "Bytes of data that will not be transferred, as they are already found on target (e.g. mirror mode).", "readOnly": true }, - "bytesDesignatedForTransfer": { - "type": "integer", - "format": "int64", - "description": "Bytes of data identified for transferring so far in scan.", - "readOnly": true - }, "bytesFailed": { "type": "integer", "format": "int64",