azure-resource-manager-schemas/schemas/2021-05-01-preview/Microsoft.DBforMySQL.json

646 строки
18 KiB
JSON

{
"id": "https://schema.management.azure.com/schemas/2021-05-01-preview/Microsoft.DBforMySQL.json#",
"title": "Microsoft.DBforMySQL",
"description": "Microsoft DBforMySQL Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"resourceDefinitions": {
"flexibleServers": {
"description": "Microsoft.DBforMySQL/flexibleServers",
"properties": {
"apiVersion": {
"enum": [
"2021-05-01-preview"
],
"type": "string"
},
"identity": {
"description": "The Azure Active Directory identity of the server.",
"oneOf": [
{
"$ref": "#/definitions/Identity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"location": {
"description": "The geo-location where the resource lives",
"type": "string"
},
"name": {
"description": "The name of the server.",
"type": "string"
},
"properties": {
"description": "Properties of the server.",
"oneOf": [
{
"$ref": "#/definitions/ServerProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"items": {
"oneOf": [
{
"$ref": "#/definitions/flexibleServers_databases_childResource"
},
{
"$ref": "#/definitions/flexibleServers_firewallRules_childResource"
}
]
},
"type": "array"
},
"sku": {
"description": "The SKU (pricing tier) of the server.",
"oneOf": [
{
"$ref": "#/definitions/Sku"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tags": {
"description": "Resource tags.",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.DBforMySQL/flexibleServers"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_databases": {
"description": "Microsoft.DBforMySQL/flexibleServers/databases",
"properties": {
"apiVersion": {
"enum": [
"2021-05-01-preview"
],
"type": "string"
},
"name": {
"description": "The name of the database.",
"type": "string"
},
"properties": {
"description": "The properties of a database.",
"oneOf": [
{
"$ref": "#/definitions/DatabaseProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.DBforMySQL/flexibleServers/databases"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_firewallRules": {
"description": "Microsoft.DBforMySQL/flexibleServers/firewallRules",
"properties": {
"apiVersion": {
"enum": [
"2021-05-01-preview"
],
"type": "string"
},
"name": {
"description": "The name of the server firewall rule.",
"type": "string"
},
"properties": {
"description": "The properties of a firewall rule.",
"oneOf": [
{
"$ref": "#/definitions/FirewallRuleProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.DBforMySQL/flexibleServers/firewallRules"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"Backup": {
"description": "Storage Profile properties of a server",
"properties": {
"backupRetentionDays": {
"description": "Backup retention days for the server.",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"geoRedundantBackup": {
"description": "Whether or not geo redundant backup is enabled.",
"oneOf": [
{
"enum": [
"Enabled",
"Disabled"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"DatabaseProperties": {
"description": "The properties of a database.",
"properties": {
"charset": {
"description": "The charset of the database.",
"type": "string"
},
"collation": {
"description": "The collation of the database.",
"type": "string"
}
},
"type": "object"
},
"FirewallRuleProperties": {
"description": "The properties of a server firewall rule.",
"properties": {
"endIpAddress": {
"description": "The end IP address of the server firewall rule. Must be IPv4 format.",
"oneOf": [
{
"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])$",
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"startIpAddress": {
"description": "The start IP address of the server firewall rule. Must be IPv4 format.",
"oneOf": [
{
"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])$",
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"startIpAddress",
"endIpAddress"
],
"type": "object"
},
"HighAvailability": {
"description": "Network related properties of a server",
"properties": {
"mode": {
"description": "High availability mode for a server.",
"oneOf": [
{
"enum": [
"Enabled",
"Disabled",
"ZoneRedundant",
"SameZone"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"standbyAvailabilityZone": {
"description": "Availability zone of the standby server.",
"type": "string"
}
},
"type": "object"
},
"Identity": {
"description": "Identity for the resource.",
"properties": {
"type": {
"description": "The identity type.",
"oneOf": [
{
"enum": [
"SystemAssigned"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"MaintenanceWindow": {
"description": "Maintenance window of a server.",
"properties": {
"customWindow": {
"description": "indicates whether custom window is enabled or disabled",
"type": "string"
},
"dayOfWeek": {
"description": "day of week for maintenance window",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"startHour": {
"description": "start hour for maintenance window",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"startMinute": {
"description": "start minute for maintenance window",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Network": {
"description": "Network related properties of a server",
"properties": {
"delegatedSubnetResourceId": {
"description": "Delegated subnet resource id used to setup vnet for a server.",
"type": "string"
},
"privateDnsZoneResourceId": {
"description": "Private DNS zone resource id.",
"type": "string"
}
},
"type": "object"
},
"ServerProperties": {
"description": "The properties of a server.",
"properties": {
"administratorLogin": {
"description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).",
"type": "string"
},
"administratorLoginPassword": {
"description": "The password of the administrator login (required for server creation).",
"type": "string"
},
"availabilityZone": {
"description": "availability Zone information of the server.",
"type": "string"
},
"backup": {
"description": "Backup related properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/Backup"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"createMode": {
"description": "The mode to create a new MySQL server.",
"oneOf": [
{
"enum": [
"Default",
"PointInTimeRestore",
"Replica",
"GeoRestore"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"highAvailability": {
"description": "High availability related properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/HighAvailability"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"maintenanceWindow": {
"description": "Maintenance window of a server.",
"oneOf": [
{
"$ref": "#/definitions/MaintenanceWindow"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"network": {
"description": "Network related properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/Network"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"replicationRole": {
"description": "The replication role.",
"oneOf": [
{
"enum": [
"None",
"Source",
"Replica"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"restorePointInTime": {
"description": "Restore point creation time (ISO8601 format), specifying the time to restore from.",
"format": "date-time",
"type": "string"
},
"sourceServerResourceId": {
"description": "The source MySQL server id.",
"type": "string"
},
"storage": {
"description": "Storage related properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/Storage"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"version": {
"description": "Server version.",
"oneOf": [
{
"enum": [
"5.7",
"8.0.21"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Sku": {
"description": "Billing information related properties of a server.",
"properties": {
"name": {
"description": "The name of the sku, e.g. Standard_D32s_v3.",
"type": "string"
},
"tier": {
"description": "The tier of the particular SKU, e.g. GeneralPurpose.",
"oneOf": [
{
"enum": [
"Burstable",
"GeneralPurpose",
"MemoryOptimized"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"name",
"tier"
],
"type": "object"
},
"Storage": {
"description": "Storage Profile properties of a server",
"properties": {
"autoGrow": {
"description": "Enable Storage Auto Grow or not.",
"oneOf": [
{
"enum": [
"Enabled",
"Disabled"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"iops": {
"description": "Storage IOPS for a server.",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"storageSizeGB": {
"description": "Max storage size allowed for a server.",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"flexibleServers_databases_childResource": {
"description": "Microsoft.DBforMySQL/flexibleServers/databases",
"properties": {
"apiVersion": {
"enum": [
"2021-05-01-preview"
],
"type": "string"
},
"name": {
"description": "The name of the database.",
"type": "string"
},
"properties": {
"description": "The properties of a database.",
"oneOf": [
{
"$ref": "#/definitions/DatabaseProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"databases"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_firewallRules_childResource": {
"description": "Microsoft.DBforMySQL/flexibleServers/firewallRules",
"properties": {
"apiVersion": {
"enum": [
"2021-05-01-preview"
],
"type": "string"
},
"name": {
"description": "The name of the server firewall rule.",
"type": "string"
},
"properties": {
"description": "The properties of a firewall rule.",
"oneOf": [
{
"$ref": "#/definitions/FirewallRuleProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"firewallRules"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
}
}