Skip to content

Commit 0ea9944

Browse files
authored
[Iothub] Adding new properties in IothubProperties [stable version: 2021-07-01] (#14894)
* Adds base for updating Microsoft.Devices from version stable/2021-03-31 to version 2021-07-01 * Updates readme * Updates API version in new specs and examples * adding new properties in iothu properties * Adding isVerified property in preview version * validation fixes
1 parent 13cf714 commit 0ea9944

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6653
-2
lines changed

specification/iothub/resource-manager/Microsoft.Devices/preview/2021-07-01-preview/iothub.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,10 @@
20582058
"certificate": {
20592059
"description": "base-64 representation of the X509 leaf certificate .cer file or just .pem file content.",
20602060
"type": "string"
2061+
},
2062+
"isVerified": {
2063+
"description": "True indicates that the certificate will be created in verified state and proof of possession will not be required.",
2064+
"type": "boolean"
20612065
}
20622066
}
20632067
},
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"iotHubName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2021-07-01",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"failoverInput": {
8+
"failoverRegion": "testHub"
9+
}
10+
},
11+
"responses": {
12+
"200": {},
13+
"202": {}
14+
}
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2021-07-01",
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": "2021-07-01",
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+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myhub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2021-07-01",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"If-Match": "AAAAAAAADGk="
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myFirstProvisioningService",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2021-07-01",
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)