Skip to content

Commit 0d3b1a8

Browse files
authored
[Microsoft.IoTCentral/iotApps] Removal of legacy S1 SKU, S360 Fixes, newer RP API version 2021-06-01 (#14311)
* Adds base for updating Microsoft.IoTCentral from version stable/2018-09-01 to version 2021-06-01 * Updates readme * Updates API version in new specs and examples * remove legacy sku S1 * update template in example to use M3 template name * add suppress for R4009 and R3018 * add state * update * should be read only * update example * Update iotcentral.json temporary changing this for further testing in canary. * removal of f1 and deleted state
1 parent 9572eff commit 0d3b1a8

File tree

12 files changed

+2200
-4
lines changed

12 files changed

+2200
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2021-06-01",
5+
"operationInputs": {
6+
"name": "myiotcentralapp",
7+
"type": "IoTApps"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"description": "Returns information about resource name availability",
13+
"headers": {
14+
"code": "200"
15+
},
16+
"body": {
17+
"nameAvailable": true
18+
}
19+
},
20+
"default": {
21+
"description": "Error message returned for an unexpected response",
22+
"headers": {},
23+
"body": {
24+
"error": {
25+
"code": "Error code",
26+
"message": "Error message",
27+
"target": "Error target"
28+
}
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2021-06-01",
5+
"operationInputs": {
6+
"name": "myiotcentralapp",
7+
"type": "IoTApps"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"description": "Returns information about resource subdomain availability",
13+
"headers": {
14+
"code": "200"
15+
},
16+
"body": {
17+
"nameAvailable": true
18+
}
19+
},
20+
"default": {
21+
"description": "Error message returned for an unexpected response",
22+
"headers": {},
23+
"body": {
24+
"error": {
25+
"code": "Error code",
26+
"message": "Error message",
27+
"target": "Error target"
28+
}
29+
}
30+
}
31+
}
32+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "resRg",
5+
"resourceName": "myIoTCentralApp",
6+
"api-version": "2021-06-01",
7+
"App": {
8+
"location": "westus",
9+
"sku": {
10+
"name": "ST2"
11+
},
12+
"properties": {
13+
"displayName": "My IoT Central App",
14+
"subdomain": "my-iot-central-app",
15+
"template": "iotc-pnp-preview@1.0.0"
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"header": {
22+
"code": "200",
23+
"message": "OK"
24+
},
25+
"body": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
27+
"name": "myIoTCentralApp",
28+
"type": "Microsoft.IoTCentral/IoTApps",
29+
"location": "westus",
30+
"tags": {
31+
"key": "value"
32+
},
33+
"properties": {
34+
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
35+
"displayName": "My IoT Central App 2",
36+
"subdomain": "my-iot-central-app-2",
37+
"template": "iotc-pnp-preview@1.0.0",
38+
"state": "created"
39+
},
40+
"sku": {
41+
"name": "ST2"
42+
}
43+
}
44+
},
45+
"201": {
46+
"headers": {
47+
"code": "201",
48+
"message": "Created",
49+
"target": "ResourceHandler.ExecutePutRequest"
50+
},
51+
"body": {
52+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
53+
"name": "myIoTCentralApp",
54+
"type": "Microsoft.IoTCentral/IoTApps",
55+
"location": "westus",
56+
"tags": {
57+
"key": "value"
58+
},
59+
"properties": {
60+
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
61+
"displayName": "My IoT Central App",
62+
"subdomain": "my-iot-central-app",
63+
"template": "iotc-pnp-preview@1.0.0",
64+
"state": "created"
65+
},
66+
"sku": {
67+
"name": "ST2"
68+
}
69+
}
70+
},
71+
"202": {},
72+
"default": {
73+
"description": "Error message returned for an unexpected response",
74+
"headers": {},
75+
"body": {
76+
"error": {
77+
"code": "Error code",
78+
"message": "Error message",
79+
"target": "Error target"
80+
}
81+
}
82+
}
83+
}
84+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "resRg",
5+
"resourceName": "myIoTCentralApp",
6+
"api-version": "2021-06-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"header": {
11+
"code": "200",
12+
"message": "OK",
13+
"target": "ResourceHandler.ExecuteDeleteRequest"
14+
}
15+
},
16+
"202": {},
17+
"204": {},
18+
"default": {
19+
"description": "Error message returned for an unexpected response",
20+
"headers": {
21+
"message": "Created",
22+
"code": "200"
23+
},
24+
"body": {
25+
"error": {
26+
"code": "Error code",
27+
"message": "Error message",
28+
"target": "Error target"
29+
}
30+
}
31+
}
32+
}
33+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "resRg",
5+
"resourceName": "myIoTCentralApp",
6+
"api-version": "2021-06-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"description": "Returns the application details",
11+
"headers": {
12+
"code": "200"
13+
},
14+
"body": {
15+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
16+
"location": "westus",
17+
"type": "Microsoft.IoTCentral/IoTApps",
18+
"name": "myIoTCentralApp",
19+
"tags": {
20+
"key": "value"
21+
},
22+
"properties": {
23+
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
24+
"displayName": "My IoT Central App",
25+
"subdomain": "my-iot-central-app",
26+
"template": "iotc-pnp-preview@1.0.0",
27+
"state": "created"
28+
},
29+
"sku": {
30+
"name": "F1"
31+
}
32+
}
33+
},
34+
"default": {
35+
"description": "Error message returned for an unexpected response",
36+
"headers": {},
37+
"body": {
38+
"error": {
39+
"code": "Error code",
40+
"message": "Error message",
41+
"target": "Error target"
42+
}
43+
}
44+
}
45+
}
46+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2021-06-01",
5+
"resourceGroupName": "resRg"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"code": "200"
11+
},
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
16+
"location": "westus",
17+
"type": "Microsoft.IoTCentral/IoTApps",
18+
"name": "myIoTCentralApp",
19+
"tags": {
20+
"key": "value"
21+
},
22+
"properties": {
23+
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
24+
"displayName": "My IoT Central App",
25+
"subdomain": "my-iot-central-app",
26+
"template": "iotc-pnp-preview@1.0.0",
27+
"state": "created"
28+
},
29+
"sku": {
30+
"name": "F1"
31+
}
32+
}
33+
],
34+
"nextLink": null
35+
}
36+
},
37+
"default": {
38+
"description": "Error message returned for an unexpected response",
39+
"headers": {},
40+
"body": {
41+
"error": {
42+
"code": "Error code",
43+
"message": "Error message",
44+
"target": "Error target"
45+
}
46+
}
47+
}
48+
}
49+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"api-version": "2021-06-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"code": "200"
10+
},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
15+
"location": "westus",
16+
"type": "Microsoft.IoTCentral/IoTApps",
17+
"name": "myIoTCentralApp",
18+
"tags": {
19+
"key": "value"
20+
},
21+
"properties": {
22+
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
23+
"displayName": "My IoT Central App",
24+
"subdomain": "my-iot-central-app",
25+
"template": "iotc-pnp-preview@1.0.0",
26+
"state": "created"
27+
},
28+
"sku": {
29+
"name": "F1"
30+
}
31+
}
32+
],
33+
"nextLink": null
34+
},
35+
"default": {
36+
"description": "Error message returned for an unexpected response",
37+
"headers": {},
38+
"body": {
39+
"error": {
40+
"code": "Error code",
41+
"message": "Error message",
42+
"target": "Error target"
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)