diff --git a/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json b/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json deleted file mode 100644 index 1259b114a2..0000000000 --- a/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,342 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-08-21-preview" - ] - }, - "etag": { - "type": "string", - "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." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-08-21-preview" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - } - }, - "definitions": { - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - } - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of services of the selected tier allowed in the subscription." - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "connectionString": { - "type": "string", - "description": "Connection string og the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-08-21-preview" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/2017-11-15/Microsoft.Devices.Provisioning.json b/schemas/2017-11-15/Microsoft.Devices.Provisioning.json deleted file mode 100644 index ba549730fe..0000000000 --- a/schemas/2017-11-15/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,348 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2017-11-15/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-11-15" - ] - }, - "etag": { - "type": "string", - "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." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-11-15" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - } - }, - "definitions": { - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of authorization keys for a provisioning service." - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - }, - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of units to provision" - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku name." - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Weight to apply for a given IoT hub." - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Flag for applying allocationPolicy or not for a given IoT hub." - }, - "connectionString": { - "type": "string", - "description": "Connection string of the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-11-15" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/2018-01-22/Microsoft.Devices.Provisioning.json b/schemas/2018-01-22/Microsoft.Devices.Provisioning.json deleted file mode 100644 index 40a0c9be58..0000000000 --- a/schemas/2018-01-22/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,348 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-01-22/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-01-22" - ] - }, - "etag": { - "type": "string", - "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." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-01-22" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - } - }, - "definitions": { - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of authorization keys for a provisioning service." - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - }, - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of units to provision" - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku name." - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "weight to apply for a given iot h." - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "flag for applying allocationPolicy or not for a given iot hub." - }, - "connectionString": { - "type": "string", - "description": "Connection string og the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-01-22" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/2020-01-01/Microsoft.Devices.Provisioning.json b/schemas/2020-01-01/Microsoft.Devices.Provisioning.json deleted file mode 100644 index 0c6a924888..0000000000 --- a/schemas/2020-01-01/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,412 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-01-01" - ] - }, - "etag": { - "type": "string", - "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." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-01-01" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - } - }, - "definitions": { - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of authorization keys for a provisioning service." - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "ipFilterRules": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IpFilterRule" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The IP filter rules." - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - }, - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of units to provision" - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku name." - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "weight to apply for a given iot h." - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "flag for applying allocationPolicy or not for a given iot hub." - }, - "connectionString": { - "type": "string", - "description": "Connection string og the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "IpFilterRule": { - "type": "object", - "properties": { - "action": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Accept", - "Reject" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The desired action for requests captured by this rule." - }, - "filterName": { - "type": "string", - "description": "The name of the IP filter rule." - }, - "ipMask": { - "type": "string", - "description": "A string that contains the IP address range in CIDR notation for the rule." - }, - "target": { - "oneOf": [ - { - "type": "string", - "enum": [ - "all", - "serviceApi", - "deviceApi" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Target for requests captured by this rule." - } - }, - "required": [ - "action", - "filterName", - "ipMask" - ], - "description": "The IP filter rules for the IoT dps." - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-01-01" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/2020-03-01/Microsoft.Devices.Provisioning.json b/schemas/2020-03-01/Microsoft.Devices.Provisioning.json deleted file mode 100644 index e5257fc152..0000000000 --- a/schemas/2020-03-01/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,635 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-03-01" - ] - }, - "etag": { - "type": "string", - "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." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - }, - { - "$ref": "#/definitions/provisioningServices_privateEndpointConnections_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-03-01" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "isVerified": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "True indicates that the certificate will be created in verified state and proof of possession will not be required." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "provisioningServices_privateEndpointConnections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-03-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/privateEndpointConnections" - } - }, - "definitions": { - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of authorization keys for a provisioning service." - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "ipFilterRules": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IpFilterRule" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The IP filter rules." - }, - "privateEndpointConnections": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Private endpoint connections created on this IotHub" - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "publicNetworkAccess": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Whether requests from Public Network are allowed." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - }, - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of units to provision" - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku name." - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "weight to apply for a given iot h." - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "flag for applying allocationPolicy or not for a given iot hub." - }, - "connectionString": { - "type": "string", - "description": "Connection string of the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "IpFilterRule": { - "type": "object", - "properties": { - "action": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Accept", - "Reject" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The desired action for requests captured by this rule." - }, - "filterName": { - "type": "string", - "description": "The name of the IP filter rule." - }, - "ipMask": { - "type": "string", - "description": "A string that contains the IP address range in CIDR notation for the rule." - }, - "target": { - "oneOf": [ - { - "type": "string", - "enum": [ - "all", - "serviceApi", - "deviceApi" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Target for requests captured by this rule." - } - }, - "required": [ - "action", - "filterName", - "ipMask" - ], - "description": "The IP filter rules for a provisioning Service." - }, - "PrivateEndpoint": { - "type": "object", - "properties": {}, - "description": "The private endpoint property of a private endpoint connection" - }, - "PrivateEndpointConnection": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - } - }, - "required": [ - "properties" - ], - "description": "The private endpoint connection of a provisioning service" - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "privateEndpoint": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpoint" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The private endpoint property of a private endpoint connection" - }, - "privateLinkServiceConnectionState": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateLinkServiceConnectionState" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The current state of a private endpoint connection" - } - }, - "required": [ - "privateLinkServiceConnectionState" - ], - "description": "The properties of a private endpoint connection" - }, - "PrivateLinkServiceConnectionState": { - "type": "object", - "properties": { - "actionsRequired": { - "type": "string", - "description": "Actions required for a private endpoint connection" - }, - "description": { - "type": "string", - "description": "The description for the current state of a private endpoint connection" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Pending", - "Approved", - "Rejected", - "Disconnected" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The status of a private endpoint connection." - } - }, - "required": [ - "description", - "status" - ], - "description": "The current state of a private endpoint connection" - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-03-01" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "isVerified": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "True indicates that the certificate will be created in verified state and proof of possession will not be required." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "provisioningServices_privateEndpointConnections_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-03-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - }, - "type": { - "type": "string", - "enum": [ - "privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/privateEndpointConnections" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json b/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json deleted file mode 100644 index 294eb6ed55..0000000000 --- a/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json +++ /dev/null @@ -1,720 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Devices", - "description": "Microsoft Devices Resource Types", - "resourceDefinitions": { - "provisioningServices": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-09-01-preview" - ] - }, - "etag": { - "type": "string", - "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." - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ArmIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The set of ARM identities associated with the IoT DPS resource." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "Name of provisioning service to create or update." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/provisioningServices_certificates_childResource" - }, - { - "$ref": "#/definitions/provisioningServices_privateEndpointConnections_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/IotDpsSkuInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of possible provisioning service SKUs." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "sku", - "type" - ], - "description": "Microsoft.Devices/provisioningServices" - }, - "provisioningServices_certificates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-09-01-preview" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "provisioningServices_privateEndpointConnections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-09-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Devices/provisioningServices/privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/privateEndpointConnections" - } - }, - "definitions": { - "ArmIdentity": { - "type": "object", - "properties": { - "identityType": { - "type": "string", - "description": "Identity type. Only allowed values are SystemAssigned and UserAssigned. Comma separated if both for ex: SystemAssigned,UserAssigned." - }, - "userAssignedIdentities": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ArmUserIdentity" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The set of UserAssigned identities associated with the IoT DPS resource." - } - }, - "description": "The set of ARM identities associated with the IoT DPS resource." - }, - "ArmUserIdentity": { - "type": "object", - "properties": {}, - "description": "The ARM UserAssigned identity information" - }, - "EncryptionKeyIdentity": { - "type": "object", - "properties": { - "userAssignedIdentity": { - "type": "string", - "description": "The user assigned identity." - } - }, - "description": "The properties of the identity used to access the key encryption key in KeyVault." - }, - "EncryptionPropertiesDescription": { - "type": "object", - "properties": { - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/EncryptionKeyIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the identity used to access the key encryption key in KeyVault." - }, - "keySource": { - "type": "string", - "description": "The source of the encryption key. Typically, Microsoft.KeyVault" - }, - "keyVaultProperties": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyVaultKeyProperties" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the encryption key configured in KeyVault." - } - }, - "description": "The customer-managed encryption key (CMK) properties for the IoT DPS instance." - }, - "IotDpsPropertiesDescription": { - "type": "object", - "properties": { - "allocationPolicy": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Hashed", - "GeoLatency", - "Static" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Allocation policy to be used by this provisioning service." - }, - "authorizationPolicies": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of authorization keys for a provisioning service." - }, - "encryption": { - "oneOf": [ - { - "$ref": "#/definitions/EncryptionPropertiesDescription" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The customer-managed encryption key (CMK) properties for the IoT DPS instance." - }, - "iotHubs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IotHubDefinitionDescription" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of IoT hubs associated with this provisioning service." - }, - "ipFilterRules": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/IpFilterRule" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The IP filter rules." - }, - "privateEndpointConnections": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Private endpoint connections created on this IotHub" - }, - "provisioningState": { - "type": "string", - "description": "The ARM provisioning state of the provisioning service." - }, - "publicNetworkAccess": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Whether requests from Public Network are allowed." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Activating", - "Active", - "Deleting", - "Deleted", - "ActivationFailed", - "DeletionFailed", - "Transitioning", - "Suspending", - "Suspended", - "Resuming", - "FailingOver", - "FailoverFailed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Current state of the provisioning service." - } - }, - "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope" - }, - "IotDpsSkuInfo": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of units to provision" - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "S1" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku name." - } - }, - "description": "List of possible provisioning service SKUs." - }, - "IotHubDefinitionDescription": { - "type": "object", - "properties": { - "allocationWeight": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "weight to apply for a given iot h." - }, - "applyAllocationPolicy": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "flag for applying allocationPolicy or not for a given iot hub." - }, - "connectionString": { - "type": "string", - "description": "Connection string of the IoT hub." - }, - "location": { - "type": "string", - "description": "ARM region of the IoT hub." - } - }, - "required": [ - "connectionString", - "location" - ], - "description": "Description of the IoT hub." - }, - "IpFilterRule": { - "type": "object", - "properties": { - "action": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Accept", - "Reject" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The desired action for requests captured by this rule." - }, - "filterName": { - "type": "string", - "description": "The name of the IP filter rule." - }, - "ipMask": { - "type": "string", - "description": "A string that contains the IP address range in CIDR notation for the rule." - }, - "target": { - "oneOf": [ - { - "type": "string", - "enum": [ - "all", - "serviceApi", - "deviceApi" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Target for requests captured by this rule." - } - }, - "required": [ - "action", - "filterName", - "ipMask" - ], - "description": "The IP filter rules for a provisioning Service." - }, - "KeyVaultKeyProperties": { - "type": "object", - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The identifier of the key." - } - }, - "description": "The properties of the KeyVault key." - }, - "PrivateEndpoint": { - "type": "object", - "properties": {}, - "description": "The private endpoint property of a private endpoint connection" - }, - "PrivateEndpointConnection": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - } - }, - "required": [ - "properties" - ], - "description": "The private endpoint connection of a provisioning service" - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "privateEndpoint": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpoint" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The private endpoint property of a private endpoint connection" - }, - "privateLinkServiceConnectionState": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateLinkServiceConnectionState" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The current state of a private endpoint connection" - } - }, - "required": [ - "privateLinkServiceConnectionState" - ], - "description": "The properties of a private endpoint connection" - }, - "PrivateLinkServiceConnectionState": { - "type": "object", - "properties": { - "actionsRequired": { - "type": "string", - "description": "Actions required for a private endpoint connection" - }, - "description": { - "type": "string", - "description": "The description for the current state of a private endpoint connection" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Pending", - "Approved", - "Rejected", - "Disconnected" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The status of a private endpoint connection." - } - }, - "required": [ - "description", - "status" - ], - "description": "The current state of a private endpoint connection" - }, - "provisioningServices_certificates_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-09-01-preview" - ] - }, - "certificate": { - "type": "string", - "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." - }, - "name": { - "type": "string", - "description": "The name of the certificate create or update." - }, - "type": { - "type": "string", - "enum": [ - "certificates" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/certificates" - }, - "provisioningServices_privateEndpointConnections_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-09-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a private endpoint connection" - }, - "type": { - "type": "string", - "enum": [ - "privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Devices/provisioningServices/privateEndpointConnections" - }, - "SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { - "type": "object", - "properties": { - "keyName": { - "type": "string", - "description": "Name of the key." - }, - "primaryKey": { - "type": "string", - "description": "Primary SAS key value." - }, - "rights": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ServiceConfig", - "EnrollmentRead", - "EnrollmentWrite", - "DeviceConnect", - "RegistrationStatusRead", - "RegistrationStatusWrite" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Rights that this key has." - }, - "secondaryKey": { - "type": "string", - "description": "Secondary SAS key value." - } - }, - "required": [ - "keyName", - "rights" - ], - "description": "Description of the shared access key." - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 985f436ae1..5022633249 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -5812,48 +5812,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.Devices.json#/resourceDefinitions/iotHubs_privateEndpointConnections" }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-08-21-preview/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-11-15/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-11-15/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-01-22/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-01-22/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_privateEndpointConnections" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_certificates" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Devices.Provisioning.json#/resourceDefinitions/provisioningServices_privateEndpointConnections" - }, { "$ref": "https://schema.management.azure.com/schemas/2020-03-01-preview/Microsoft.DeviceUpdate.json#/resourceDefinitions/accounts" },