Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hub Generated] Review request for Microsoft.Devices to add version preview/2019-03-22-preview #5544

Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"failoverRegion": "EASTUS2EUAP"
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
},
"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": [],
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
"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"
},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
}
}
}



Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,73 @@
},
"deprecated": false
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover": {
"post": {
"tags": [
"POST"
],
"operationId": "IotHub_CustomerInitiatedFailover",
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
"summary": "Customer Initiated Fail over",
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
"description": "Perform customer initiated fail over of given hub",
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
"x-ms-examples": {
"IotHubResource_TestRoute": {
"$ref": "./examples/IotHub_CustomerInitiatedFailover.json"
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "iotHubName",
"description": "IotHub to fail over",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "failoverInput",
"description": "Region it will failover to",
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CustomerInitiatedFailoverInput"
}
},
{
"$ref": "#/parameters/subscriptionId"
},
{
"name": "resourceGroupName",
"description": "resource group which Iot Hub belongs to",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/IotHubDescription"
}
},
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
},
"deprecated": false
reshantchandra marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
"definitions": {
Expand Down Expand Up @@ -3339,6 +3406,19 @@
"inputBlobContainerUri",
"outputBlobContainerUri"
]
},
"CustomerInitiatedFailoverInput": {
"description": "Use to provide failover region when requesting Customer Initiated Fail over for a hub.",
"type": "object",
"properties": {
"FailoverRegion": {
"description": "Region the hub will be failed over to",
"type": "string"
}
},
"required": [
"FailoverRegion"
]
}
},
"parameters": {
Expand Down