Skip to content

Commit b7fe588

Browse files
firstaye-zzaviyerMSFT
authored andcommitted
[Hub Generated] Review request for Microsoft.Devices to add version preview/2022-11-15-preview (Azure#22067)
* Adds base for updating Microsoft.Devices from version preview/2022-04-30-preview to version 2022-11-15-preview * Updates readme * Updates API version in new specs and examples * Huangc 2022 11 15 preview (Azure#22110) * update iothub example with ipversion and new api version of 2022-11-15-preview * fix validation * fix with adding location into lro header * update manual failover json with adding azure-AsyncOperation * remove location to see if pass the check * fix * fix * fix * fix with adding location * Adding Azure-AsyncOperation to manualfailover * test fix * quick style fix for 2019-03-22 * update 2022-11-15-preview MF example
1 parent 403e2f8 commit b7fe588

40 files changed

+6989
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"iotHubName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-11-15-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"failoverInput": {
8+
"failoverRegion": "testHub"
9+
}
10+
},
11+
"responses": {
12+
"200": {},
13+
"202": {
14+
"headers": {
15+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih&asyncinfo",
16+
"Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-11-15-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"operationInputs": {
8+
"name": "test-request"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"nameAvailable": true,
15+
"reason": "Invalid",
16+
"message": ""
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"resourceName": "iothub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-11-15-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"certificateDescription": {
9+
"properties": {
10+
"certificate": "############################################"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"201": {
16+
"body": {
17+
"properties": {
18+
"subject": "CN=testdevice1",
19+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
20+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
21+
"isVerified": false,
22+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
23+
"updated": "Thu, 12 Oct 2017 19:23:50 GMT",
24+
"certificate": "############################################"
25+
},
26+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
27+
"name": "cert",
28+
"type": "Microsoft.Devices/IotHubs/Certificates",
29+
"etag": "AAAAAAExpNs="
30+
}
31+
},
32+
"200": {
33+
"body": {
34+
"properties": {
35+
"subject": "CN=testdevice1",
36+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
37+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
38+
"isVerified": false,
39+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
40+
"updated": "Thu, 12 Oct 2017 19:23:50 GMT",
41+
"certificate": "############################################"
42+
},
43+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
44+
"name": "cert",
45+
"type": "Microsoft.Devices/IotHubs/Certificates",
46+
"etag": "AAAAAAExpNs="
47+
}
48+
}
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myhub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-11-15-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"If-Match": "AAAAAAAADGk="
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myFirstProvisioningService",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-11-15-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"If-Match": "AAAAAAAADGk=",
9+
"certificateVerificationBody": {
10+
"certificate": "#####################################"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"properties": {
17+
"subject": "CN=andbucdevice1",
18+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
19+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
20+
"isVerified": true,
21+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
22+
"updated": "Thu, 12 Oct 2017 19:26:56 GMT"
23+
},
24+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/certificates/cert",
25+
"name": "cert",
26+
"type": "Microsoft.Devices/IotHubs/Certificates",
27+
"etag": "AAAAAAExpTQ="
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)