Skip to content

Commit 275f78f

Browse files
RemindDLeiWang3
authored andcommitted
Update admin disk API to support DiskRP Migration Progress feature (Azure#16072)
* DiskRP Admin: Clone 2021-04-01 to 2021-09-01 * Update admin disk API to support DiskRP Migration Progress feature Co-authored-by: Xingdong Li <[email protected]>
1 parent 104deb9 commit 275f78f

File tree

10 files changed

+1383
-10
lines changed

10 files changed

+1383
-10
lines changed

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/stable/2021-09-01/DiskMigrationJobs.json

Lines changed: 494 additions & 0 deletions
Large diffs are not rendered by default.

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/stable/2021-09-01/Disks.json

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084",
4+
"location": "redmond",
5+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
6+
"api-version": "2021-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/diskmigrationjobs/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
12+
"name": "redmond/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
13+
"type": "Microsoft.Compute.Admin/locations/diskmigrationjobs",
14+
"location": "redmond",
15+
"properties": {
16+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
17+
"status": "Canceled",
18+
"subtasks": [
19+
{
20+
"migrationSubTaskId": "726dff1c-e765-44c6-b16d-f66f2c28e730",
21+
"properties": {
22+
"migrationSubtaskStatus": "Canceled",
23+
"startTime": "2018-05-17T08:26:54.57146Z",
24+
"endTime": "2018-05-17T08:27:35.0559255Z",
25+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
26+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4",
27+
"targetDiskStateForMigration": "Unattached",
28+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
29+
"progress": "0%"
30+
}
31+
},
32+
{
33+
"migrationSubTaskId": "d6ab496c-4a76-474f-9ee2-9031053f06e8",
34+
"properties": {
35+
"migrationSubtaskStatus": "Succeeded",
36+
"startTime": "2018-05-17T08:27:35.0871773Z",
37+
"endTime": "2018-05-17T08:28:15.2842678Z",
38+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
39+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
40+
"targetDiskStateForMigration": "Unattached",
41+
"diskId": "48dc9b56-5883-4011-9dc3-0e527f33e6ab",
42+
"progress": "100%"
43+
}
44+
}
45+
],
46+
"creationTime": "2018-05-17T08:26:54.4777279Z",
47+
"startTime": "2018-05-17T08:26:54.5402097Z",
48+
"endTime": "0001-01-01T08:00:00Z",
49+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1"
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084",
4+
"location": "redmond",
5+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
6+
"api-version": "2021-04-01",
7+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
8+
"disks": [
9+
{
10+
"location": "redmond",
11+
"properties": {
12+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
13+
"status": "Unattached",
14+
"sharePath": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4"
15+
}
16+
},
17+
{
18+
"location": "redmond",
19+
"properties": {
20+
"diskId": "48dc9b56-5883-4011-9dc3-0e527f33e6ab",
21+
"status": "Unattached",
22+
"sharePath": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2"
23+
}
24+
}
25+
]
26+
},
27+
"responses": {
28+
"200": {
29+
"body": {
30+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/diskmigrationjobs/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
31+
"name": "redmond/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
32+
"type": "Microsoft.Compute.Admin/locations/diskmigrationjobs",
33+
"location": "redmond",
34+
"properties": {
35+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
36+
"status": "Pending",
37+
"subtasks": [
38+
{
39+
"migrationSubTaskId": "726dff1c-e765-44c6-b16d-f66f2c28e730",
40+
"properties": {
41+
"migrationSubtaskStatus": "Pending",
42+
"startTime": "0001-01-01T08:00:00Z",
43+
"endTime": "0001-01-01T08:00:00Z",
44+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
45+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4",
46+
"targetDiskStateForMigration": "Unattached",
47+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
48+
"progress": "0%"
49+
}
50+
},
51+
{
52+
"migrationSubTaskId": "d6ab496c-4a76-474f-9ee2-9031053f06e8",
53+
"properties": {
54+
"migrationSubtaskStatus": "Pending",
55+
"startTime": "0001-01-01T08:00:00Z",
56+
"endTime": "0001-01-01T08:00:00Z",
57+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
58+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
59+
"targetDiskStateForMigration": "Unattached",
60+
"diskId": "48dc9b56-5883-4011-9dc3-0e527f33e6ab"
61+
}
62+
}
63+
],
64+
"creationTime": "2018-05-17T08:26:54.4777279Z",
65+
"startTime": "0001-01-01T08:00:00Z",
66+
"endTime": "0001-01-01T08:00:00Z",
67+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1"
68+
}
69+
}
70+
}
71+
}
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084",
4+
"location": "redmond",
5+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
6+
"api-version": "2021-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/diskmigrationjobs/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
12+
"name": "redmond/ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
13+
"type": "Microsoft.Compute.Admin/locations/diskmigrationjobs",
14+
"location": "redmond",
15+
"properties": {
16+
"migrationId": "ec9f79cf-e4d7-4d37-926a-e69c2198be8a",
17+
"status": "Running",
18+
"subtasks": [
19+
{
20+
"migrationSubTaskId": "726dff1c-e765-44c6-b16d-f66f2c28e730",
21+
"properties": {
22+
"migrationSubtaskStatus": "Succeeded",
23+
"startTime": "2018-05-17T08:26:54.57146Z",
24+
"endTime": "2018-05-17T08:27:35.0559255Z",
25+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
26+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4",
27+
"targetDiskStateForMigration": "Unattached",
28+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
29+
"progress": "100%"
30+
}
31+
},
32+
{
33+
"migrationSubTaskId": "d6ab496c-4a76-474f-9ee2-9031053f06e8",
34+
"properties": {
35+
"migrationSubtaskStatus": "Running",
36+
"startTime": "2018-05-17T08:27:35.0871773Z",
37+
"endTime": "0001-01-01T08:00:00Z",
38+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
39+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
40+
"targetDiskStateForMigration": "Unattached",
41+
"diskId": "48dc9b56-5883-4011-9dc3-0e527f33e6ab",
42+
"progress": "50%"
43+
}
44+
}
45+
],
46+
"creationTime": "2018-05-17T08:26:54.4777279Z",
47+
"startTime": "2018-05-17T08:26:54.5402097Z",
48+
"endTime": "0001-01-01T08:00:00Z",
49+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1"
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084",
4+
"location": "redmond",
5+
"api-version": "2021-04-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/diskmigrationjobs/0050e481-63cd-4ad1-9c49-b8cbb992b75e",
13+
"name": "redmond/0050e481-63cd-4ad1-9c49-b8cbb992b75e",
14+
"type": "Microsoft.Compute.Admin/locations/diskmigrationjobs",
15+
"location": "redmond",
16+
"properties": {
17+
"migrationId": "0050e481-63cd-4ad1-9c49-b8cbb992b75e",
18+
"status": "Succeeded",
19+
"subtasks": [
20+
{
21+
"migrationSubTaskId": "607d1e44-48f5-418e-a263-ec60fb35d285",
22+
"properties": {
23+
"migrationSubtaskStatus": "Succeeded",
24+
"startTime": "2018-05-17T09:29:36.1290315Z",
25+
"endTime": "2018-05-17T09:30:16.3566829Z",
26+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
27+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
28+
"targetDiskStateForMigration": "Unattached",
29+
"diskId": "5018f340-c41b-4e82-a553-248431c4df64",
30+
"progress": "100%"
31+
}
32+
},
33+
{
34+
"migrationSubTaskId": "cfe7b95e-d45c-4515-af2a-3a889e70559a",
35+
"properties": {
36+
"migrationSubtaskStatus": "Succeeded",
37+
"startTime": "2018-05-17T09:30:16.3723117Z",
38+
"endTime": "2018-05-17T09:30:56.5945261Z",
39+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
40+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4",
41+
"targetDiskStateForMigration": "Unattached",
42+
"diskId": "4d9c7dd9-50ea-473d-87be-f7a57acd8aae",
43+
"progress": "100%"
44+
}
45+
}
46+
],
47+
"creationTime": "2018-05-17T09:29:36.0351498Z",
48+
"startTime": "2018-05-17T09:29:36.0976561Z",
49+
"endTime": "2018-05-17T09:31:06.6187954Z",
50+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2"
51+
}
52+
},
53+
{
54+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/diskmigrationjobs/9fbb98b2-fe81-449a-9d71-61bccb0d0489",
55+
"name": "redmond/9fbb98b2-fe81-449a-9d71-61bccb0d0489",
56+
"type": "Microsoft.Compute.Admin/locations/diskmigrationjobs",
57+
"location": "redmond",
58+
"properties": {
59+
"migrationId": "9fbb98b2-fe81-449a-9d71-61bccb0d0489",
60+
"status": "Succeeded",
61+
"subtasks": [
62+
{
63+
"migrationSubTaskId": "5a76680f-3788-492c-9840-ffb4c9f95729",
64+
"properties": {
65+
"migrationSubtaskStatus": "Succeeded",
66+
"startTime": "2018-05-18T02:18:49.1442797Z",
67+
"endTime": "2018-05-18T02:19:29.4948624Z",
68+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
69+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
70+
"targetDiskStateForMigration": "Unattached",
71+
"diskId": "48dc9b56-5883-4011-9dc3-0e527f33e6ab",
72+
"progress": "100%"
73+
}
74+
},
75+
{
76+
"migrationSubTaskId": "c302a235-9e8c-431d-8a5e-8b1fc984b7ab",
77+
"properties": {
78+
"migrationSubtaskStatus": "Succeeded",
79+
"startTime": "2018-05-18T02:19:29.5104777Z",
80+
"endTime": "2018-05-18T02:20:09.7263314Z",
81+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2",
82+
"sourceShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_1",
83+
"targetDiskStateForMigration": "Unattached",
84+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
85+
"progress": "100%"
86+
}
87+
}
88+
],
89+
"creationTime": "2018-05-18T02:18:49.0978853Z",
90+
"startTime": "2018-05-18T02:18:49.1286583Z",
91+
"endTime": "2018-05-18T02:20:19.7823733Z",
92+
"targetShare": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_2"
93+
}
94+
}
95+
]
96+
}
97+
}
98+
}
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084",
4+
"location": "redmond",
5+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
6+
"api-version": "2021-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/04666444-56f0-4d4f-afc5-dbd6b134b084/providers/Microsoft.Compute.Admin/locations/redmond/disks/423e4eb4-f791-4d13-ad5b-4d415733b0d6",
12+
"name": "redmond/423e4eb4-f791-4d13-ad5b-4d415733b0d6",
13+
"type": "Microsoft.Compute.Admin/locations/disks",
14+
"location": "redmond",
15+
"properties": {
16+
"diskId": "423e4eb4-f791-4d13-ad5b-4d415733b0d6",
17+
"status": "Unattached",
18+
"sharePath": "\\\\SU1FileServer.mydomain.com\\SU1_ObjStore_4",
19+
"actualSizeGB": 183,
20+
"provisionSizeGB": 200,
21+
"userResourceId": "/subscriptions/4496690e-348e-4dc0-addc-17395c3966ba/resourceGroups/DISKRG6ECD14E6/providers/Microsoft.Compute/Disks/diskrptest9vb55sb15w",
22+
"diskType": "Disk",
23+
"diskSku": "Standard_LRS",
24+
"creationSourceUri": "/subscriptions/4496690e-348e-4dc0-addc-17395c3966ba/resourceGroups/diskrptest/providers/Microsoft.Compute/disks/testmd01",
25+
"creationOption": "Copy",
26+
"exclusiveAllocatedSize": 1073741824
27+
}
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)