diff --git a/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json b/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index f73c12a59f..0000000000 --- a/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,1096 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "servers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties used to create a new server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/servers_firewallRules_childResource" - }, - { - "$ref": "#/definitions/servers_virtualNetworkRules_childResource" - }, - { - "$ref": "#/definitions/servers_databases_childResource" - }, - { - "$ref": "#/definitions/servers_configurations_childResource" - }, - { - "$ref": "#/definitions/servers_administrators_childResource" - }, - { - "$ref": "#/definitions/servers_securityAlertPolicies_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Billing information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Application-specific metadata in the form of key-value pairs." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers" - }, - "servers_administrators": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/activeDirectory$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/administrators" - }, - "servers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - "servers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/databases" - }, - "servers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/firewallRules" - }, - "servers_securityAlertPolicies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the threat detection policy." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/SecurityAlertPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a security alert policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - }, - "servers_virtualNetworkRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the virtual network rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/VirtualNetworkRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a virtual network rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - } - }, - "definitions": { - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "SecurityAlertPolicyProperties": { - "type": "object", - "properties": { - "disabledAlerts": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly" - }, - "emailAccountAdmins": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies that the alert is sent to the account administrators." - }, - "emailAddresses": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies an array of e-mail addresses to which the alert is sent." - }, - "retentionDays": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the number of days to keep in the Threat Detection audit logs." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the state of the policy, whether it is enabled or disabled." - }, - "storageAccountAccessKey": { - "type": "string", - "description": "Specifies the identifier key of the Threat Detection audit storage account." - }, - "storageEndpoint": { - "type": "string", - "description": "Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs." - } - }, - "required": [ - "state" - ], - "description": "Properties of a security alert policy." - }, - "ServerAdministratorProperties": { - "type": "object", - "properties": { - "administratorType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ActiveDirectory" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The type of administrator." - }, - "login": { - "type": "string", - "description": "The server administrator login account name." - }, - "sid": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The server administrator Sid (Secure ID)." - }, - "tenantId": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The server Active Directory Administrator tenant id." - } - }, - "required": [ - "administratorType", - "login", - "sid", - "tenantId" - ], - "description": "The properties of an server Administrator." - }, - "ServerPropertiesForCreate": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesForDefaultCreate" - }, - { - "$ref": "#/definitions/ServerPropertiesForRestore" - }, - { - "$ref": "#/definitions/ServerPropertiesForGeoRestore" - }, - { - "$ref": "#/definitions/ServerPropertiesForReplica" - } - ], - "properties": { - "minimalTlsVersion": { - "oneOf": [ - { - "type": "string", - "enum": [ - "TLS1_0", - "TLS1_1", - "TLS1_2", - "TLSEnforcementDisabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enforce a minimal Tls version for the server." - }, - "sslEnforcement": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable ssl enforcement or not when connect to server." - }, - "storageProfile": { - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage Profile properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "9.5", - "9.6", - "10", - "10.0", - "10.2", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Server version." - } - }, - "description": "The properties used to create a new server." - }, - "ServerPropertiesForDefaultCreate": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - }, - "createMode": { - "type": "string", - "enum": [ - "Default" - ] - } - }, - "required": [ - "administratorLogin", - "administratorLoginPassword", - "createMode" - ], - "description": "The properties used to create a new server." - }, - "ServerPropertiesForGeoRestore": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "GeoRestore" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring to a different region from a geo replicated backup." - }, - "ServerPropertiesForReplica": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "Replica" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The master server id to create replica from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties to create a new replica." - }, - "ServerPropertiesForRestore": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "PointInTimeRestore" - ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - }, - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "restorePointInTime", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring from a backup." - }, - "servers_administrators_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "enum": [ - "activeDirectory" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - }, - "type": { - "type": "string", - "enum": [ - "administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/administrators" - }, - "servers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - "servers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/databases" - }, - "servers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/firewallRules" - }, - "servers_securityAlertPolicies_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "enum": [ - "default" - ], - "description": "The name of the threat detection policy." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/SecurityAlertPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a security alert policy." - }, - "type": { - "type": "string", - "enum": [ - "securityAlertPolicies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - }, - "servers_virtualNetworkRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the virtual network rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/VirtualNetworkRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a virtual network rule." - }, - "type": { - "type": "string", - "enum": [ - "virtualNetworkRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - }, - "Sku": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer", - "minimum": 0 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The scale up/out capacity, representing server's compute units." - }, - "family": { - "type": "string", - "description": "The family of hardware." - }, - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8." - }, - "size": { - "type": "string", - "description": "The size code, to be interpreted by resource as appropriate." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Basic", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Basic." - } - }, - "required": [ - "name" - ], - "description": "Billing information related properties of a server." - }, - "StorageProfile": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable Geo-redundant or not for server backup." - }, - "storageAutogrow": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable Storage Auto Grow." - }, - "storageMB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - }, - "VirtualNetworkRuleProperties": { - "type": "object", - "properties": { - "ignoreMissingVnetServiceEndpoint": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Create firewall rule before the virtual network has vnet service endpoint enabled." - }, - "virtualNetworkSubnetId": { - "type": "string", - "description": "The ARM resource id of the virtual network subnet." - } - }, - "required": [ - "virtualNetworkSubnetId" - ], - "description": "Properties of a virtual network rule." - } - } -} \ No newline at end of file diff --git a/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json b/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 915953d2bc..0000000000 --- a/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,1157 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "servers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ResourceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Azure Active Directory identity configuration for a resource." - }, - "location": { - "type": "string", - "description": "The location the resource resides in." - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesForCreate" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties used to create a new server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/servers_firewallRules_childResource" - }, - { - "$ref": "#/definitions/servers_virtualNetworkRules_childResource" - }, - { - "$ref": "#/definitions/servers_databases_childResource" - }, - { - "$ref": "#/definitions/servers_configurations_childResource" - }, - { - "$ref": "#/definitions/servers_administrators_childResource" - }, - { - "$ref": "#/definitions/servers_securityAlertPolicies_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Billing information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Application-specific metadata in the form of key-value pairs." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers" - }, - "servers_administrators": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/activeDirectory$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/administrators" - }, - "servers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - "servers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/databases" - }, - "servers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/firewallRules" - }, - "servers_securityAlertPolicies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the threat detection policy." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/SecurityAlertPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a security alert policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - }, - "servers_virtualNetworkRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the virtual network rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/VirtualNetworkRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a virtual network rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - } - }, - "definitions": { - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "ResourceIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "SystemAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource." - } - }, - "description": "Azure Active Directory identity configuration for a resource." - }, - "SecurityAlertPolicyProperties": { - "type": "object", - "properties": { - "disabledAlerts": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly" - }, - "emailAccountAdmins": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies that the alert is sent to the account administrators." - }, - "emailAddresses": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies an array of e-mail addresses to which the alert is sent." - }, - "retentionDays": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the number of days to keep in the Threat Detection audit logs." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the state of the policy, whether it is enabled or disabled." - }, - "storageAccountAccessKey": { - "type": "string", - "description": "Specifies the identifier key of the Threat Detection audit storage account." - }, - "storageEndpoint": { - "type": "string", - "description": "Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs." - } - }, - "required": [ - "state" - ], - "description": "Properties of a security alert policy." - }, - "ServerAdministratorProperties": { - "type": "object", - "properties": { - "administratorType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ActiveDirectory" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The type of administrator." - }, - "login": { - "type": "string", - "description": "The server administrator login account name." - }, - "sid": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The server administrator Sid (Secure ID)." - }, - "tenantId": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The server Active Directory Administrator tenant id." - } - }, - "required": [ - "administratorType", - "login", - "sid", - "tenantId" - ], - "description": "The properties of an server Administrator." - }, - "ServerPropertiesForCreate": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesForDefaultCreate" - }, - { - "$ref": "#/definitions/ServerPropertiesForRestore" - }, - { - "$ref": "#/definitions/ServerPropertiesForGeoRestore" - }, - { - "$ref": "#/definitions/ServerPropertiesForReplica" - } - ], - "properties": { - "infrastructureEncryption": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Status showing whether the server enabled infrastructure encryption." - }, - "minimalTlsVersion": { - "oneOf": [ - { - "type": "string", - "enum": [ - "TLS1_0", - "TLS1_1", - "TLS1_2", - "TLSEnforcementDisabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enforce a minimal Tls version for the server." - }, - "publicNetworkAccess": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'." - }, - "sslEnforcement": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable ssl enforcement or not when connect to server." - }, - "storageProfile": { - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage Profile properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "9.5", - "9.6", - "10", - "10.0", - "10.2", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Server version." - } - }, - "description": "The properties used to create a new server." - }, - "ServerPropertiesForDefaultCreate": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - }, - "createMode": { - "type": "string", - "enum": [ - "Default" - ] - } - }, - "required": [ - "administratorLogin", - "administratorLoginPassword", - "createMode" - ], - "description": "The properties used to create a new server." - }, - "ServerPropertiesForGeoRestore": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "GeoRestore" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring to a different region from a geo replicated backup." - }, - "ServerPropertiesForReplica": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "Replica" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The master server id to create replica from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties to create a new replica." - }, - "ServerPropertiesForRestore": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "PointInTimeRestore" - ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - }, - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "restorePointInTime", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring from a backup." - }, - "servers_administrators_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "enum": [ - "activeDirectory" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - }, - "type": { - "type": "string", - "enum": [ - "administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/administrators" - }, - "servers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - "servers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/databases" - }, - "servers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/firewallRules" - }, - "servers_securityAlertPolicies_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "enum": [ - "default" - ], - "description": "The name of the threat detection policy." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/SecurityAlertPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a security alert policy." - }, - "type": { - "type": "string", - "enum": [ - "securityAlertPolicies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies" - }, - "servers_virtualNetworkRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the virtual network rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/VirtualNetworkRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a virtual network rule." - }, - "type": { - "type": "string", - "enum": [ - "virtualNetworkRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - }, - "Sku": { - "type": "object", - "properties": { - "capacity": { - "oneOf": [ - { - "type": "integer", - "minimum": 0 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The scale up/out capacity, representing server's compute units." - }, - "family": { - "type": "string", - "description": "The family of hardware." - }, - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8." - }, - "size": { - "type": "string", - "description": "The size code, to be interpreted by resource as appropriate." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Basic", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Basic." - } - }, - "required": [ - "name" - ], - "description": "Billing information related properties of a server." - }, - "StorageProfile": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable Geo-redundant or not for server backup." - }, - "storageAutogrow": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable Storage Auto Grow." - }, - "storageMB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - }, - "VirtualNetworkRuleProperties": { - "type": "object", - "properties": { - "ignoreMissingVnetServiceEndpoint": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Create firewall rule before the virtual network has vnet service endpoint enabled." - }, - "virtualNetworkSubnetId": { - "type": "string", - "description": "The ARM resource id of the virtual network subnet." - } - }, - "required": [ - "virtualNetworkSubnetId" - ], - "description": "Properties of a virtual network rule." - } - } -} \ No newline at end of file diff --git a/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json b/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index e1764cc0ff..0000000000 --- a/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "servers_privateEndpointConnections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-06-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": "Properties of a private endpoint connection." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections" - } - }, - "definitions": { - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "privateEndpoint": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointProperty" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "privateLinkServiceConnectionState": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "description": "Properties of a private endpoint connection." - }, - "PrivateEndpointProperty": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource id of the private endpoint." - } - } - }, - "PrivateLinkServiceConnectionStateProperty": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "The private link service connection description." - }, - "status": { - "type": "string", - "description": "The private link service connection status." - } - }, - "required": [ - "description", - "status" - ] - } - } -} \ No newline at end of file diff --git a/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json b/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 8bed778bc9..0000000000 --- a/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "servers_keys": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-01-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the PostgreSQL Server key to be operated on (updated or created)." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerKeyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties for a key execution." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/servers/keys" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/servers/keys" - } - }, - "definitions": { - "ServerKeyProperties": { - "type": "object", - "properties": { - "serverKeyType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "AzureKeyVault" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The key type like 'AzureKeyVault'." - }, - "uri": { - "type": "string", - "description": "The URI of the key." - } - }, - "required": [ - "serverKeyType" - ], - "description": "Properties for a key execution." - } - } -} \ No newline at end of file diff --git a/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json b/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 1b1e8fc5a7..0000000000 --- a/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBForPostgreSql", - "description": "Microsoft DBForPostgreSql Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-02-14-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/Identity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Identity for the resource." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBForPostgreSql/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBForPostgreSql/flexibleServers" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-02-14-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" - } - }, - "definitions": { - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-02-14-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" - }, - "Identity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "SystemAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The identity type." - } - }, - "description": "Identity for the resource." - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window of a server." - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "availabilityZone": { - "type": "string", - "description": "availability Zone information of the server." - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "PointInTimeRestore" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "delegatedSubnetArguments": { - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesDelegatedSubnetArguments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "displayName": { - "type": "string", - "description": "The display name of a server." - }, - "haEnabled": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "stand by count value can be either enabled or disabled." - }, - "logBackupStorageSku": { - "type": "string", - "description": "The log backup storage sku of the server." - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window of a server." - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - }, - "privateDnsZoneArguments": { - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesPrivateDnsZoneArguments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sourceResourceGroupName": { - "type": "string", - "description": "The resource group name of source serve PostgreSQL server name to restore from." - }, - "sourceServerName": { - "type": "string", - "description": "The source PostgreSQL server name to restore from." - }, - "sourceSubscriptionId": { - "type": "string", - "description": "The subscription id of source serve PostgreSQL server name to restore from." - }, - "standbyCount": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The number of standbys." - }, - "storageProfile": { - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage Profile properties of a server" - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Application-specific metadata in the form of key-value pairs." - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "ServerPropertiesDelegatedSubnetArguments": { - "type": "object", - "properties": { - "subnetArmResourceId": { - "type": "string", - "description": "delegated subnet arm resource id." - } - } - }, - "ServerPropertiesPrivateDnsZoneArguments": { - "type": "object", - "properties": { - "privateDnsZoneArmResourceId": { - "type": "string", - "description": "private dns zone arm resource id." - } - } - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "StorageProfile": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - }, - "storageMB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage Profile properties of a server" - } - } -} \ No newline at end of file diff --git a/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json b/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 535f3e5672..0000000000 --- a/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBForPostgreSql", - "description": "Microsoft DBForPostgreSql Resource Types", - "resourceDefinitions": { - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-11-05-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBForPostgreSql/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBForPostgreSql/flexibleServers/databases" - } - }, - "definitions": { - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - } - } -} \ No newline at end of file diff --git a/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json b/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 2725589229..0000000000 --- a/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,678 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_configurations_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_databases_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers" - }, - "flexibleServers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - } - }, - "definitions": { - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer", - "default": "7" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - } - }, - "description": "Backup properties of a server" - }, - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The HA mode for the server." - }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "delegatedSubnetResourceId": { - "type": "string", - "default": "", - "description": "delegated subnet arm resource id." - }, - "privateDnsZoneArmResourceId": { - "type": "string", - "default": "", - "description": "private dns zone arm resource id." - } - }, - "description": "Network properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server." - }, - "backup": { - "oneOf": [ - { - "$ref": "#/definitions/Backup" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup properties of a server" - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "highAvailability": { - "oneOf": [ - { - "$ref": "#/definitions/HighAvailability" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "High availability properties of a server" - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window properties of a server." - }, - "network": { - "oneOf": [ - { - "$ref": "#/definitions/Network" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Network properties of a server" - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "storage": { - "oneOf": [ - { - "$ref": "#/definitions/Storage" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "13", - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage properties of a server" - } - } -} \ No newline at end of file diff --git a/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json b/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index aa7b341d02..0000000000 --- a/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,682 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_configurations_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_databases_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers" - }, - "flexibleServers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - } - }, - "definitions": { - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer", - "default": "7" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - } - }, - "description": "Backup properties of a server" - }, - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The HA mode for the server." - }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "delegatedSubnetResourceId": { - "type": "string", - "default": "", - "format": "arm-id", - "description": "delegated subnet arm resource id." - }, - "privateDnsZoneArmResourceId": { - "type": "string", - "default": "", - "format": "arm-id", - "description": "private dns zone arm resource id." - } - }, - "description": "Network properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server." - }, - "backup": { - "oneOf": [ - { - "$ref": "#/definitions/Backup" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup properties of a server" - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "highAvailability": { - "oneOf": [ - { - "$ref": "#/definitions/HighAvailability" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "High availability properties of a server" - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window properties of a server." - }, - "network": { - "oneOf": [ - { - "$ref": "#/definitions/Network" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Network properties of a server" - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "sourceServerResourceId": { - "type": "string", - "format": "arm-id", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "storage": { - "oneOf": [ - { - "$ref": "#/definitions/Storage" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "14", - "13", - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage properties of a server" - } - } -} \ No newline at end of file diff --git a/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json b/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index a40fc01ecd..0000000000 --- a/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,680 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "type": "string", - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_databases_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_configurations_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers" - }, - "flexibleServers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - } - }, - "definitions": { - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer", - "default": "7" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - } - }, - "description": "Backup properties of a server" - }, - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-01-20-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant", - "SameZone" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The HA mode for the server." - }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "delegatedSubnetResourceId": { - "type": "string", - "default": "", - "description": "delegated subnet arm resource id." - }, - "privateDnsZoneArmResourceId": { - "type": "string", - "default": "", - "description": "private dns zone arm resource id." - } - }, - "description": "Network properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server." - }, - "backup": { - "oneOf": [ - { - "$ref": "#/definitions/Backup" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup properties of a server" - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "highAvailability": { - "oneOf": [ - { - "$ref": "#/definitions/HighAvailability" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "High availability properties of a server" - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window properties of a server." - }, - "network": { - "oneOf": [ - { - "$ref": "#/definitions/Network" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Network properties of a server" - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'." - }, - "storage": { - "oneOf": [ - { - "$ref": "#/definitions/Storage" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "14", - "13", - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage properties of a server" - } - } -} \ No newline at end of file diff --git a/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json b/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 12c665ca08..0000000000 --- a/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,1056 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/UserAssignedIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Information describing the identities associated with this application." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", - "minLength": 3, - "maxLength": 63 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_administrators_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_configurations_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_databases_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers" - }, - "flexibleServers_administrators": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "type": "string", - "description": "Guid of the objectId for the administrator." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AdministratorPropertiesForAdd" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an Active Directory administrator." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - }, - "flexibleServers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - } - }, - "definitions": { - "AdministratorPropertiesForAdd": { - "type": "object", - "properties": { - "principalName": { - "type": "string", - "description": "Active Directory administrator principal name." - }, - "principalType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Unknown", - "User", - "Group", - "ServicePrincipal" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The principal type used to represent the type of Active Directory Administrator." - }, - "tenantId": { - "type": "string", - "description": "The tenantId of the Active Directory administrator." - } - }, - "description": "The properties of an Active Directory administrator." - }, - "AuthConfig": { - "type": "object", - "properties": { - "activeDirectoryAuthEnabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "If true, Azure Active Directory authentication is enabled." - }, - "passwordAuthEnabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "If true, Password authentication is enabled." - }, - "tenantId": { - "type": "string", - "default": "", - "description": "Tenant id of the server." - } - }, - "description": "Authentication configuration properties of a server" - }, - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer", - "default": "7" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - } - }, - "description": "Backup properties of a server" - }, - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z]+\\w*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The charset of the database." - }, - "collation": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z\\-]+([. ]|\\w)*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "DataEncryption": { - "type": "object", - "properties": { - "primaryKeyURI": { - "type": "string", - "description": "URI for the key for data encryption for primary server." - }, - "primaryUserAssignedIdentityId": { - "type": "string", - "description": "Resource Id for the User assigned identity to be used for data encryption for primary server." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "SystemAssigned", - "AzureKeyVault" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Data encryption type to depict if it is System assigned vs Azure Key vault." - } - }, - "description": "Data encryption properties of a server" - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_administrators_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "type": "string", - "description": "Guid of the objectId for the administrator." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AdministratorPropertiesForAdd" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an Active Directory administrator." - }, - "type": { - "type": "string", - "enum": [ - "administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - }, - "flexibleServers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-03-08-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant", - "SameZone" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The HA mode for the server." - }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "delegatedSubnetResourceId": { - "type": "string", - "default": "", - "description": "delegated subnet arm resource id." - }, - "privateDnsZoneArmResourceId": { - "type": "string", - "default": "", - "description": "private dns zone arm resource id." - } - }, - "description": "Network properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "authConfig": { - "oneOf": [ - { - "$ref": "#/definitions/AuthConfig" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Authentication configuration properties of a server" - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server." - }, - "backup": { - "oneOf": [ - { - "$ref": "#/definitions/Backup" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup properties of a server" - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore", - "GeoRestore", - "Replica" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "dataEncryption": { - "oneOf": [ - { - "$ref": "#/definitions/DataEncryption" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Data encryption properties of a server" - }, - "highAvailability": { - "oneOf": [ - { - "$ref": "#/definitions/HighAvailability" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "High availability properties of a server" - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window properties of a server." - }, - "network": { - "oneOf": [ - { - "$ref": "#/definitions/Network" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Network properties of a server" - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'." - }, - "replicaCapacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Replicas allowed for a server." - }, - "replicationRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "Primary", - "Secondary", - "WalReplica", - "SyncReplica", - "AsyncReplica", - "GeoSyncReplica", - "GeoAsyncReplica" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Replication role of the server." - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'." - }, - "storage": { - "oneOf": [ - { - "$ref": "#/definitions/Storage" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "14", - "13", - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage properties of a server" - }, - "UserAssignedIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'." - }, - "userAssignedIdentities": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserIdentity" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Defines a map that contains user assigned identities." - } - }, - "required": [ - "type" - ], - "description": "Information describing the identities associated with this application." - }, - "UserIdentity": { - "type": "object", - "properties": { - "clientId": { - "type": "string", - "description": "the client identifier of the Service Principal which this identity represents." - }, - "principalId": { - "type": "string", - "description": "the object identifier of the Service Principal which this identity represents." - } - }, - "description": "Describes a single user-assigned identity associated with the application." - } - } -} \ No newline at end of file diff --git a/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json b/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 8c7bb311f2..0000000000 --- a/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers_migrations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-05-01-preview" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-z][a-z0-9]*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the migration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/MigrationResourceProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Migration resource properties." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/migrations" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/migrations" - } - }, - "definitions": { - "AdminCredentials": { - "type": "object", - "properties": { - "sourceServerPassword": { - "type": "string" - }, - "targetServerPassword": { - "type": "string" - } - }, - "required": [ - "sourceServerPassword", - "targetServerPassword" - ], - "description": "Server admin credentials." - }, - "MigrationResourceProperties": { - "type": "object", - "properties": { - "cancel": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "To trigger cancel for entire migration we need to send this flag as true" - }, - "dBsToCancelMigrationOn": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "When you want to trigger cancel for specific databases send triggerCutover flag as true and database names in this array" - }, - "dBsToMigrate": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "dBsToTiggerCutoverOn": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "When you want to trigger cutover for specific databases send triggerCutover flag as true and database names in this array" - }, - "migrationMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Offline", - "Online" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "There are two types of migration modes Online and Offline." - }, - "migrationWindowStartTimeInUtc": { - "type": "string", - "format": "date-time" - }, - "overwriteDBsInTarget": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "secretParameters": { - "oneOf": [ - { - "$ref": "#/definitions/MigrationSecretParameters" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Migration secret parameters." - }, - "setupLogicalReplicationOnSourceDBIfNeeded": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sourceDBServerFullyQualifiedDomainName": { - "type": "string" - }, - "sourceDBServerResourceId": { - "type": "string" - }, - "startDataMigration": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "targetDBServerFullyQualifiedDomainName": { - "type": "string" - }, - "triggerCutover": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "To trigger cutover for entire migration we need to send this flag as true" - } - }, - "description": "Migration resource properties." - }, - "MigrationSecretParameters": { - "type": "object", - "properties": { - "adminCredentials": { - "oneOf": [ - { - "$ref": "#/definitions/AdminCredentials" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Server admin credentials." - } - }, - "required": [ - "adminCredentials" - ], - "description": "Migration secret parameters." - } - } -} \ No newline at end of file diff --git a/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json b/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index fd9b454bb5..0000000000 --- a/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,1063 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "flexibleServers": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/UserAssignedIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Information describing the identities associated with this application." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", - "minLength": 3, - "maxLength": 63 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/flexibleServers_administrators_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_configurations_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_databases_childResource" - }, - { - "$ref": "#/definitions/flexibleServers_firewallRules_childResource" - } - ] - } - }, - "sku": { - "oneOf": [ - { - "$ref": "#/definitions/Sku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Sku information related properties of a server." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers" - }, - "flexibleServers_administrators": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "type": "string", - "description": "Guid of the objectId for the administrator." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AdministratorPropertiesForAdd" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an Active Directory administrator." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - }, - "flexibleServers_configurations": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - } - }, - "definitions": { - "AdministratorPropertiesForAdd": { - "type": "object", - "properties": { - "principalName": { - "type": "string", - "description": "Active Directory administrator principal name." - }, - "principalType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Unknown", - "User", - "Group", - "ServicePrincipal" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The principal type used to represent the type of Active Directory Administrator." - }, - "tenantId": { - "type": "string", - "description": "The tenantId of the Active Directory administrator." - } - }, - "description": "The properties of an Active Directory administrator." - }, - "AuthConfig": { - "type": "object", - "properties": { - "activeDirectoryAuth": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "If Enabled, Azure Active Directory authentication is enabled." - }, - "passwordAuth": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "If Enabled, Password authentication is enabled." - }, - "tenantId": { - "type": "string", - "default": "", - "description": "Tenant id of the server." - } - }, - "description": "Authentication configuration properties of a server" - }, - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "oneOf": [ - { - "type": "integer", - "default": "7" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A value indicating whether Geo-Redundant backup is enabled on the server." - } - }, - "description": "Backup properties of a server" - }, - "ConfigurationProperties": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Source of the configuration." - }, - "value": { - "type": "string", - "description": "Value of the configuration." - } - }, - "description": "The properties of a configuration." - }, - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z]+\\w*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The charset of the database." - }, - "collation": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z\\-]+([. ]|\\w)*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "DataEncryption": { - "type": "object", - "properties": { - "primaryKeyURI": { - "type": "string", - "description": "URI for the key for data encryption for primary server." - }, - "primaryUserAssignedIdentityId": { - "type": "string", - "description": "Resource Id for the User assigned identity to be used for data encryption for primary server." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "SystemManaged", - "AzureKeyVault" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Data encryption type to depict if it is System Managed vs Azure Key vault." - } - }, - "description": "Data encryption properties of a server" - }, - "FirewallRuleProperties": { - "type": "object", - "properties": { - "endIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - }, - "startIpAddress": { - "oneOf": [ - { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "endIpAddress", - "startIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "flexibleServers_administrators_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "type": "string", - "description": "Guid of the objectId for the administrator." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AdministratorPropertiesForAdd" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an Active Directory administrator." - }, - "type": { - "type": "string", - "enum": [ - "administrators" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/administrators" - }, - "flexibleServers_configurations_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server configuration." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ConfigurationProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a configuration." - }, - "type": { - "type": "string", - "enum": [ - "configurations" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations" - }, - "flexibleServers_databases_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the database." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DatabaseProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a database." - }, - "type": { - "type": "string", - "enum": [ - "databases" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/databases" - }, - "flexibleServers_firewallRules_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-12-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the server firewall rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/FirewallRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a server firewall rule." - }, - "type": { - "type": "string", - "enum": [ - "firewallRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant", - "SameZone" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The HA mode for the server." - }, - "standbyAvailabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the standby." - } - }, - "description": "High availability properties of a server" - }, - "MaintenanceWindow": { - "type": "object", - "properties": { - "customWindow": { - "type": "string", - "default": "Disabled", - "description": "indicates whether custom window is enabled or disabled" - }, - "dayOfWeek": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "day of week for maintenance window" - }, - "startHour": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start hour for maintenance window" - }, - "startMinute": { - "oneOf": [ - { - "type": "integer", - "default": "0" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "start minute for maintenance window" - } - }, - "description": "Maintenance window properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "delegatedSubnetResourceId": { - "type": "string", - "default": "", - "description": "delegated subnet arm resource id." - }, - "privateDnsZoneArmResourceId": { - "type": "string", - "default": "", - "description": "private dns zone arm resource id." - } - }, - "description": "Network properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The administrator login password (required for server creation)." - }, - "authConfig": { - "oneOf": [ - { - "$ref": "#/definitions/AuthConfig" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Authentication configuration properties of a server" - }, - "availabilityZone": { - "type": "string", - "default": "", - "description": "availability zone information of the server." - }, - "backup": { - "oneOf": [ - { - "$ref": "#/definitions/Backup" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Backup properties of a server" - }, - "createMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Default", - "Create", - "Update", - "PointInTimeRestore", - "GeoRestore", - "Replica" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The mode to create a new PostgreSQL server." - }, - "dataEncryption": { - "oneOf": [ - { - "$ref": "#/definitions/DataEncryption" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Data encryption properties of a server" - }, - "highAvailability": { - "oneOf": [ - { - "$ref": "#/definitions/HighAvailability" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "High availability properties of a server" - }, - "maintenanceWindow": { - "oneOf": [ - { - "$ref": "#/definitions/MaintenanceWindow" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Maintenance window properties of a server." - }, - "network": { - "oneOf": [ - { - "$ref": "#/definitions/Network" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Network properties of a server" - }, - "pointInTimeUTC": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'." - }, - "replicaCapacity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Replicas allowed for a server." - }, - "replicationRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "Primary", - "Secondary", - "WalReplica", - "SyncReplica", - "AsyncReplica", - "GeoSyncReplica", - "GeoAsyncReplica" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Replication role of the server." - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'." - }, - "storage": { - "oneOf": [ - { - "$ref": "#/definitions/Storage" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "14", - "13", - "12", - "11" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "PostgreSQL Server version." - } - }, - "description": "The properties of a server." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Max storage allowed for a server." - } - }, - "description": "Storage properties of a server" - }, - "UserAssignedIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'." - }, - "userAssignedIdentities": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserIdentity" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Defines a map that contains user assigned identities." - } - }, - "required": [ - "type" - ], - "description": "Information describing the identities associated with this application." - }, - "UserIdentity": { - "type": "object", - "properties": { - "clientId": { - "type": "string", - "description": "the client identifier of the Service Principal which this identity represents." - }, - "principalId": { - "type": "string", - "description": "the object identifier of the Service Principal which this identity represents." - } - }, - "description": "Describes a single user-assigned identity associated with the application." - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index cb022e645d..3bbf347c4b 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -8629,117 +8629,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-12-01-preview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_firewallRules" }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_administrators" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_securityAlertPolicies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_virtualNetworkRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_administrators" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_securityAlertPolicies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_virtualNetworkRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_privateEndpointConnections" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_keys" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-02-14-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-01-20-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_administrators" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_migrations" - }, { "$ref": "https://schema.management.azure.com/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/serverGroupsv2" }, @@ -8758,21 +8647,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/serverGroupsv2_roles" }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_administrators" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_configurations" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" - }, { "$ref": "https://schema.management.azure.com/schemas/2020-08-08-preview/Microsoft.DelegatedNetwork.json#/resourceDefinitions/controller" },