Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
adding locations property to iothub properties
  • Loading branch information
reshantchandra committed Jun 27, 2019
commit d141a9c34986761d930d00f1ebfb8181119f4e84
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,11 @@
"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/"
"partitionCount": 2
}
},
"routing": {
Expand Down Expand Up @@ -74,7 +65,6 @@
},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,17 @@
"streamingEndpoints": [
"https://streams.azure-devices-int.net:9443"
]
}
},
"locations": [
{
"location": "West US",
"role": "primary"
},
{
"location": "East US",
"role": "secondary"
}
]
},
"sku": {
"name": "S1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,13 @@
"name": "Capabilities",
"modelAsString": true
}
},
"Locations": {
"description": "Primary and secondary location for iot hub",
"type": "array",
"items": {
"$ref": "#/definitions/IotHubLocationDescription"
}
}
}
},
Expand Down Expand Up @@ -3453,6 +3460,28 @@
"required": [
"failoverRegion"
]
},
"IotHubLocationDescription": {
"description": "Public representation of one of the locations where a resource is provisioned.",
"type": "object",
"properties": {
"location": {
"description": "Azure Geo Regions",
"type": "string"
},
"role": {
"description": "Specific Role assigned to this location",
"enum": [
"primary",
"secondary"
],
"type": "string",
"x-ms-enum": {
"name": "IotHubReplicaRoleType",
"modelAsString": true
}
}
}
}
},
"parameters": {
Expand Down