Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 251 additions & 0 deletions schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
{
"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."
}
}
}
Loading