forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Api version 2020-06-15- fixing certificate put/get issues with ARM (
Azure#10251) * Adds base for updating Microsoft.Devices from version stable/2020-04-01 to version 2020-06-15 * Updates readme * Updates API version in new specs and examples * Add cert changes * Fix examples * remove unnecessary model * fix the createcert * Fix the put certificate body * Fix the certificate example * Fix the braces * Fix the certificateDescription case * Prettify Json * Update consumer group properties PUT schema * Rename schema prop name for cg body Co-authored-by: Rajasekharan Vengalil <rajave@microsoft.com>
- Loading branch information
Showing
40 changed files
with
6,212 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.../resource-manager/Microsoft.Devices/stable/2020-06-15/examples/IotHub_ManualFailover.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"iotHubName": "testHub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"failoverInput": { | ||
"failoverRegion": "testHub" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../resource-manager/Microsoft.Devices/stable/2020-06-15/examples/checkNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "testHub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"operationInputs": { | ||
"name": "test-request" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "Invalid", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...nager/Microsoft.Devices/stable/2020-06-15/examples/iothub_certificatescreateorupdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "iothub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"certificateDescription": { | ||
"properties": { | ||
"certificate": "############################################" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=testdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"certificate": "############################################" | ||
}, | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert", | ||
"name": "cert", | ||
"type": "Microsoft.Devices/IotHubs/Certificates", | ||
"etag": "AAAAAAExpNs=" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=testdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"certificate": "############################################" | ||
}, | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert", | ||
"name": "cert", | ||
"type": "Microsoft.Devices/IotHubs/Certificates", | ||
"etag": "AAAAAAExpNs=" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_certificatesdelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "myhub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...thub/resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_certverify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=", | ||
"certificateVerificationBody": { | ||
"certificate": "#####################################" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=andbucdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25", | ||
"isVerified": true, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:26:56 GMT" | ||
}, | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/certificates/cert", | ||
"name": "cert", | ||
"type": "Microsoft.Devices/IotHubs/Certificates", | ||
"etag": "AAAAAAExpTQ=" | ||
} | ||
} | ||
} | ||
} |
226 changes: 226 additions & 0 deletions
226
.../resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "testHub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"iotHubDescription": { | ||
"location": "centraluseuap", | ||
"tags": {}, | ||
"etag": "AAAAAAFD6M4=", | ||
"properties": { | ||
"ipFilterRules": [], | ||
"eventHubEndpoints": { | ||
"events": { | ||
"retentionTimeInDays": 1, | ||
"partitionCount": 2 | ||
} | ||
}, | ||
"routing": { | ||
"endpoints": { | ||
"serviceBusQueues": [], | ||
"serviceBusTopics": [], | ||
"eventHubs": [], | ||
"storageContainers": [] | ||
}, | ||
"routes": [], | ||
"fallbackRoute": { | ||
"name": "$fallback", | ||
"source": "DeviceMessages", | ||
"condition": "true", | ||
"endpointNames": [ | ||
"events" | ||
], | ||
"isEnabled": true | ||
} | ||
}, | ||
"storageEndpoints": { | ||
"$default": { | ||
"sasTtlAsIso8601": "PT1H", | ||
"connectionString": "", | ||
"containerName": "" | ||
} | ||
}, | ||
"messagingEndpoints": { | ||
"fileNotifications": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"enableFileUploadNotifications": false, | ||
"cloudToDevice": { | ||
"maxDeliveryCount": 10, | ||
"defaultTtlAsIso8601": "PT1H", | ||
"feedback": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"features": "None", | ||
"minTlsVersion": "1.2" | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"capacity": 1 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub", | ||
"name": "testHub", | ||
"type": "Microsoft.Devices/IotHubs", | ||
"location": "centraluseuap", | ||
"tags": {}, | ||
"etag": "AAAAAAFD6M4=", | ||
"properties": { | ||
"state": "Active", | ||
"provisioningState": "Succeeded", | ||
"ipFilterRules": [], | ||
"hostName": "iot-dps-cit-hub-1.azure-devices.net", | ||
"eventHubEndpoints": { | ||
"events": { | ||
"retentionTimeInDays": 1, | ||
"partitionCount": 2, | ||
"partitionIds": [ | ||
"0", | ||
"1" | ||
], | ||
"path": "iot-dps-cit-hub-1", | ||
"endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/" | ||
} | ||
}, | ||
"routing": { | ||
"endpoints": { | ||
"serviceBusQueues": [], | ||
"serviceBusTopics": [], | ||
"eventHubs": [], | ||
"storageContainers": [] | ||
}, | ||
"routes": [], | ||
"fallbackRoute": { | ||
"name": "$fallback", | ||
"source": "DeviceMessages", | ||
"condition": "true", | ||
"endpointNames": [ | ||
"events" | ||
], | ||
"isEnabled": true | ||
} | ||
}, | ||
"storageEndpoints": { | ||
"$default": { | ||
"sasTtlAsIso8601": "PT1H", | ||
"connectionString": "", | ||
"containerName": "" | ||
} | ||
}, | ||
"messagingEndpoints": { | ||
"fileNotifications": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"enableFileUploadNotifications": false, | ||
"cloudToDevice": { | ||
"maxDeliveryCount": 10, | ||
"defaultTtlAsIso8601": "PT1H", | ||
"feedback": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"features": "None", | ||
"minTlsVersion": "1.2" | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub", | ||
"name": "testHub", | ||
"type": "Microsoft.Devices/IotHubs", | ||
"location": "centraluseuap", | ||
"tags": {}, | ||
"etag": "AAAAAAFD6M4=", | ||
"properties": { | ||
"state": "Active", | ||
"provisioningState": "Succeeded", | ||
"ipFilterRules": [], | ||
"hostName": "iot-dps-cit-hub-1.azure-devices.net", | ||
"eventHubEndpoints": { | ||
"events": { | ||
"retentionTimeInDays": 1, | ||
"partitionCount": 2, | ||
"partitionIds": [ | ||
"0", | ||
"1" | ||
], | ||
"path": "iot-dps-cit-hub-1", | ||
"endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/" | ||
} | ||
}, | ||
"routing": { | ||
"endpoints": { | ||
"serviceBusQueues": [], | ||
"serviceBusTopics": [], | ||
"eventHubs": [], | ||
"storageContainers": [] | ||
}, | ||
"routes": [], | ||
"fallbackRoute": { | ||
"name": "$fallback", | ||
"source": "DeviceMessages", | ||
"condition": "true", | ||
"endpointNames": [ | ||
"events" | ||
], | ||
"isEnabled": true | ||
} | ||
}, | ||
"storageEndpoints": { | ||
"$default": { | ||
"sasTtlAsIso8601": "PT1H", | ||
"connectionString": "", | ||
"containerName": "" | ||
} | ||
}, | ||
"messagingEndpoints": { | ||
"fileNotifications": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"enableFileUploadNotifications": false, | ||
"cloudToDevice": { | ||
"maxDeliveryCount": 10, | ||
"defaultTtlAsIso8601": "PT1H", | ||
"feedback": { | ||
"lockDurationAsIso8601": "PT1M", | ||
"ttlAsIso8601": "PT1H", | ||
"maxDeliveryCount": 10 | ||
} | ||
}, | ||
"features": "None", | ||
"minTlsVersion": "1.2" | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...urce-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createconsumergroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "testHub", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-06-15", | ||
"eventHubEndpointName": "events", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"name": "test", | ||
"consumerGroupBody": { | ||
"properties": { | ||
"name": "test" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"created": "Thu, 15 Jun 2017 19:20:58 GMT" | ||
}, | ||
"id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default", | ||
"name": "test", | ||
"type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups", | ||
"etag": "AAAAAAFD6M4=" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.