azure-resource-manager-schemas/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json

677 строки
19 KiB
JSON

{
"id": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.DBforPostgreSQL.json#",
"title": "Microsoft.DBforPostgreSQL",
"description": "Microsoft DBforPostgreSQL Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"resourceDefinitions": {
"flexibleServers": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"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"
},
{
"$ref": "#/definitions/flexibleServers_configurations_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.DBforPostgreSQL/flexibleServers"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_configurations": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The name of the server configuration.",
"type": "string"
},
"properties": {
"description": "The properties of a configuration.",
"oneOf": [
{
"$ref": "#/definitions/ConfigurationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.DBforPostgreSQL/flexibleServers/configurations"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_databases": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers/databases",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"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.DBforPostgreSQL/flexibleServers/databases"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_firewallRules": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"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.DBforPostgreSQL/flexibleServers/firewallRules"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"Backup": {
"description": "Backup properties of a server",
"properties": {
"backupRetentionDays": {
"description": "Backup retention days for the server.",
"oneOf": [
{
"default": 7,
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"geoRedundantBackup": {
"description": "A value indicating whether Geo-Redundant backup is enabled on the server.",
"oneOf": [
{
"enum": [
"Enabled",
"Disabled"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"ConfigurationProperties": {
"description": "The properties of a configuration.",
"properties": {
"source": {
"description": "Source of the configuration.",
"type": "string"
},
"value": {
"description": "Value of the configuration.",
"type": "string"
}
},
"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": "High availability properties of a server",
"properties": {
"mode": {
"description": "The HA mode for the server.",
"oneOf": [
{
"enum": [
"Disabled",
"ZoneRedundant"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"standbyAvailabilityZone": {
"default": "",
"description": "availability zone information of the standby.",
"type": "string"
}
},
"type": "object"
},
"MaintenanceWindow": {
"description": "Maintenance window properties of a server.",
"properties": {
"customWindow": {
"default": "Disabled",
"description": "indicates whether custom window is enabled or disabled",
"type": "string"
},
"dayOfWeek": {
"description": "day of week for maintenance window",
"oneOf": [
{
"default": 0,
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"startHour": {
"description": "start hour for maintenance window",
"oneOf": [
{
"default": 0,
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"startMinute": {
"description": "start minute for maintenance window",
"oneOf": [
{
"default": 0,
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Network": {
"description": "Network properties of a server",
"properties": {
"delegatedSubnetResourceId": {
"default": "",
"description": "delegated subnet arm resource id.",
"type": "string"
},
"privateDnsZoneArmResourceId": {
"default": "",
"description": "private dns zone arm 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 administrator login password (required for server creation).",
"type": "string"
},
"availabilityZone": {
"default": "",
"description": "availability zone information of the server.",
"type": "string"
},
"backup": {
"description": "Backup 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 PostgreSQL server.",
"oneOf": [
{
"enum": [
"Default",
"Create",
"Update",
"PointInTimeRestore"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"highAvailability": {
"description": "High availability properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/HighAvailability"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"maintenanceWindow": {
"description": "Maintenance window properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/MaintenanceWindow"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"network": {
"description": "Network properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/Network"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"pointInTimeUTC": {
"description": "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.",
"format": "date-time",
"type": "string"
},
"sourceServerResourceId": {
"description": "The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.",
"type": "string"
},
"storage": {
"description": "Storage properties of a server.",
"oneOf": [
{
"$ref": "#/definitions/Storage"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"version": {
"description": "PostgreSQL Server version.",
"oneOf": [
{
"enum": [
"14",
"13",
"12",
"11"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Sku": {
"description": "Sku information related properties of a server.",
"properties": {
"name": {
"description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.",
"type": "string"
},
"tier": {
"description": "The tier of the particular SKU, e.g. Burstable.",
"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 properties of a server",
"properties": {
"storageSizeGB": {
"description": "Max storage allowed for a server.",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"flexibleServers_configurations_childResource": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers/configurations",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The name of the server configuration.",
"type": "string"
},
"properties": {
"description": "The properties of a configuration.",
"oneOf": [
{
"$ref": "#/definitions/ConfigurationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"configurations"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"flexibleServers_databases_childResource": {
"description": "Microsoft.DBforPostgreSQL/flexibleServers/databases",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"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.DBforPostgreSQL/flexibleServers/firewallRules",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"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"
}
}
}