|
| 1 | +{ |
| 2 | + "id": "https://schema.management.azure.com/schemas/2017-08-21-preview/Microsoft.Devices.json#", |
| 3 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 4 | + "title": "Microsoft.Devices", |
| 5 | + "description": "Microsoft Devices Resource Types", |
| 6 | + "resourceDefinitions": { |
| 7 | + "provisioningServices": { |
| 8 | + "type": "object", |
| 9 | + "properties": { |
| 10 | + "apiVersion": { |
| 11 | + "type": "string", |
| 12 | + "enum": [ |
| 13 | + "2017-08-21-preview" |
| 14 | + ] |
| 15 | + }, |
| 16 | + "etag": { |
| 17 | + "type": "string", |
| 18 | + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." |
| 19 | + }, |
| 20 | + "location": { |
| 21 | + "type": "string", |
| 22 | + "description": "The resource location." |
| 23 | + }, |
| 24 | + "name": { |
| 25 | + "type": "string", |
| 26 | + "description": "Name of provisioning service to create or update." |
| 27 | + }, |
| 28 | + "properties": { |
| 29 | + "oneOf": [ |
| 30 | + { |
| 31 | + "$ref": "#/definitions/IotDpsPropertiesDescription" |
| 32 | + }, |
| 33 | + { |
| 34 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 35 | + } |
| 36 | + ] |
| 37 | + }, |
| 38 | + "resources": { |
| 39 | + "type": "array", |
| 40 | + "items": { |
| 41 | + "oneOf": [ |
| 42 | + { |
| 43 | + "$ref": "#/definitions/provisioningServices_certificates_childResource" |
| 44 | + } |
| 45 | + ] |
| 46 | + } |
| 47 | + }, |
| 48 | + "sku": { |
| 49 | + "oneOf": [ |
| 50 | + { |
| 51 | + "$ref": "#/definitions/IotDpsSkuInfo" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 55 | + } |
| 56 | + ], |
| 57 | + "description": "List of possible provisioning service SKUs." |
| 58 | + }, |
| 59 | + "tags": { |
| 60 | + "oneOf": [ |
| 61 | + { |
| 62 | + "type": "object", |
| 63 | + "additionalProperties": { |
| 64 | + "type": "string" |
| 65 | + }, |
| 66 | + "properties": {} |
| 67 | + }, |
| 68 | + { |
| 69 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 70 | + } |
| 71 | + ], |
| 72 | + "description": "The resource tags." |
| 73 | + }, |
| 74 | + "type": { |
| 75 | + "type": "string", |
| 76 | + "enum": [ |
| 77 | + "Microsoft.Devices/provisioningServices" |
| 78 | + ] |
| 79 | + } |
| 80 | + }, |
| 81 | + "required": [ |
| 82 | + "apiVersion", |
| 83 | + "location", |
| 84 | + "name", |
| 85 | + "properties", |
| 86 | + "sku", |
| 87 | + "type" |
| 88 | + ], |
| 89 | + "description": "Microsoft.Devices/provisioningServices" |
| 90 | + }, |
| 91 | + "provisioningServices_certificates": { |
| 92 | + "type": "object", |
| 93 | + "properties": { |
| 94 | + "apiVersion": { |
| 95 | + "type": "string", |
| 96 | + "enum": [ |
| 97 | + "2017-08-21-preview" |
| 98 | + ] |
| 99 | + }, |
| 100 | + "certificate": { |
| 101 | + "type": "string", |
| 102 | + "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." |
| 103 | + }, |
| 104 | + "name": { |
| 105 | + "type": "string", |
| 106 | + "description": "The name of the certificate create or update." |
| 107 | + }, |
| 108 | + "type": { |
| 109 | + "type": "string", |
| 110 | + "enum": [ |
| 111 | + "Microsoft.Devices/provisioningServices/certificates" |
| 112 | + ] |
| 113 | + } |
| 114 | + }, |
| 115 | + "required": [ |
| 116 | + "apiVersion", |
| 117 | + "name", |
| 118 | + "type" |
| 119 | + ], |
| 120 | + "description": "Microsoft.Devices/provisioningServices/certificates" |
| 121 | + } |
| 122 | + }, |
| 123 | + "definitions": { |
| 124 | + "IotDpsPropertiesDescription": { |
| 125 | + "type": "object", |
| 126 | + "properties": { |
| 127 | + "allocationPolicy": { |
| 128 | + "oneOf": [ |
| 129 | + { |
| 130 | + "type": "string", |
| 131 | + "enum": [ |
| 132 | + "Hashed", |
| 133 | + "GeoLatency", |
| 134 | + "Static" |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 139 | + } |
| 140 | + ], |
| 141 | + "description": "Allocation policy to be used by this provisioning service." |
| 142 | + }, |
| 143 | + "authorizationPolicies": { |
| 144 | + "oneOf": [ |
| 145 | + { |
| 146 | + "type": "array", |
| 147 | + "items": { |
| 148 | + "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" |
| 149 | + } |
| 150 | + }, |
| 151 | + { |
| 152 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 153 | + } |
| 154 | + ] |
| 155 | + }, |
| 156 | + "iotHubs": { |
| 157 | + "oneOf": [ |
| 158 | + { |
| 159 | + "type": "array", |
| 160 | + "items": { |
| 161 | + "$ref": "#/definitions/IotHubDefinitionDescription" |
| 162 | + } |
| 163 | + }, |
| 164 | + { |
| 165 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 166 | + } |
| 167 | + ], |
| 168 | + "description": "List of IoT hubs associated with this provisioning service." |
| 169 | + }, |
| 170 | + "provisioningState": { |
| 171 | + "type": "string", |
| 172 | + "description": "The ARM provisioning state of the provisioning service." |
| 173 | + }, |
| 174 | + "state": { |
| 175 | + "oneOf": [ |
| 176 | + { |
| 177 | + "type": "string", |
| 178 | + "enum": [ |
| 179 | + "Activating", |
| 180 | + "Active", |
| 181 | + "Deleting", |
| 182 | + "Deleted", |
| 183 | + "ActivationFailed", |
| 184 | + "DeletionFailed", |
| 185 | + "Transitioning", |
| 186 | + "Suspending", |
| 187 | + "Suspended", |
| 188 | + "Resuming", |
| 189 | + "FailingOver", |
| 190 | + "FailoverFailed" |
| 191 | + ] |
| 192 | + }, |
| 193 | + { |
| 194 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 195 | + } |
| 196 | + ], |
| 197 | + "description": "Current state of the provisioning service." |
| 198 | + } |
| 199 | + } |
| 200 | + }, |
| 201 | + "IotDpsSkuInfo": { |
| 202 | + "type": "object", |
| 203 | + "properties": { |
| 204 | + "capacity": { |
| 205 | + "oneOf": [ |
| 206 | + { |
| 207 | + "type": "integer" |
| 208 | + }, |
| 209 | + { |
| 210 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 211 | + } |
| 212 | + ], |
| 213 | + "description": "The number of services of the selected tier allowed in the subscription." |
| 214 | + }, |
| 215 | + "name": { |
| 216 | + "oneOf": [ |
| 217 | + { |
| 218 | + "type": "string", |
| 219 | + "enum": [ |
| 220 | + "S1" |
| 221 | + ] |
| 222 | + }, |
| 223 | + { |
| 224 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 225 | + } |
| 226 | + ] |
| 227 | + } |
| 228 | + }, |
| 229 | + "description": "List of possible provisioning service SKUs." |
| 230 | + }, |
| 231 | + "IotHubDefinitionDescription": { |
| 232 | + "type": "object", |
| 233 | + "properties": { |
| 234 | + "allocationWeight": { |
| 235 | + "oneOf": [ |
| 236 | + { |
| 237 | + "type": "integer" |
| 238 | + }, |
| 239 | + { |
| 240 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 241 | + } |
| 242 | + ] |
| 243 | + }, |
| 244 | + "applyAllocationPolicy": { |
| 245 | + "oneOf": [ |
| 246 | + { |
| 247 | + "type": "boolean" |
| 248 | + }, |
| 249 | + { |
| 250 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 251 | + } |
| 252 | + ] |
| 253 | + }, |
| 254 | + "connectionString": { |
| 255 | + "type": "string", |
| 256 | + "description": "Connection string og the IoT hub." |
| 257 | + }, |
| 258 | + "location": { |
| 259 | + "type": "string", |
| 260 | + "description": "ARM region of the IoT hub." |
| 261 | + } |
| 262 | + }, |
| 263 | + "required": [ |
| 264 | + "connectionString", |
| 265 | + "location" |
| 266 | + ], |
| 267 | + "description": "Description of the IoT hub." |
| 268 | + }, |
| 269 | + "provisioningServices_certificates_childResource": { |
| 270 | + "type": "object", |
| 271 | + "properties": { |
| 272 | + "apiVersion": { |
| 273 | + "type": "string", |
| 274 | + "enum": [ |
| 275 | + "2017-08-21-preview" |
| 276 | + ] |
| 277 | + }, |
| 278 | + "certificate": { |
| 279 | + "type": "string", |
| 280 | + "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." |
| 281 | + }, |
| 282 | + "name": { |
| 283 | + "type": "string", |
| 284 | + "description": "The name of the certificate create or update." |
| 285 | + }, |
| 286 | + "type": { |
| 287 | + "type": "string", |
| 288 | + "enum": [ |
| 289 | + "certificates" |
| 290 | + ] |
| 291 | + } |
| 292 | + }, |
| 293 | + "required": [ |
| 294 | + "apiVersion", |
| 295 | + "name", |
| 296 | + "type" |
| 297 | + ], |
| 298 | + "description": "Microsoft.Devices/provisioningServices/certificates" |
| 299 | + }, |
| 300 | + "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { |
| 301 | + "type": "object", |
| 302 | + "properties": { |
| 303 | + "keyName": { |
| 304 | + "type": "string", |
| 305 | + "description": "Name of the key." |
| 306 | + }, |
| 307 | + "primaryKey": { |
| 308 | + "type": "string", |
| 309 | + "description": "Primary SAS key value." |
| 310 | + }, |
| 311 | + "rights": { |
| 312 | + "oneOf": [ |
| 313 | + { |
| 314 | + "type": "string", |
| 315 | + "enum": [ |
| 316 | + "ServiceConfig", |
| 317 | + "EnrollmentRead", |
| 318 | + "EnrollmentWrite", |
| 319 | + "DeviceConnect", |
| 320 | + "RegistrationStatusRead", |
| 321 | + "RegistrationStatusWrite" |
| 322 | + ] |
| 323 | + }, |
| 324 | + { |
| 325 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 326 | + } |
| 327 | + ], |
| 328 | + "description": "Rights that this key has." |
| 329 | + }, |
| 330 | + "secondaryKey": { |
| 331 | + "type": "string", |
| 332 | + "description": "Secondary SAS key value." |
| 333 | + } |
| 334 | + }, |
| 335 | + "required": [ |
| 336 | + "keyName", |
| 337 | + "rights" |
| 338 | + ], |
| 339 | + "description": "Description of the shared access key." |
| 340 | + } |
| 341 | + } |
| 342 | +} |
0 commit comments