Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,59 @@
"MigrateSyncCompleteCommandOutput": {
"type": "object",
"description": "Output for command that completes sync migration for a database.",
"properties": {
"id": {
"type": "string",
"description": "Result identifier",
"readOnly": true
},
"errors": {
"description": "List of errors that happened during the command execution",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
}
}
},
"MigrateMISyncCompleteCommandProperties": {
"x-ms-discriminator-value": "Migrate.SqlServer.AzureDbSqlMi.Complete",
"type": "object",
"description": "Properties for the command that completes online migration for an Azure SQL Database Managed Instance.",
"properties": {
"input": {
"description": "Command input",
"$ref": "#/definitions/MigrateMISyncCompleteCommandInput"
},
"output": {
"description": "Command output. This is ignored if submitted.",
"$ref": "#/definitions/MigrateMISyncCompleteCommandOutput",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/CommandProperties"
}
]
},
"MigrateMISyncCompleteCommandInput": {
"type": "object",
"description": "Input for command that completes online migration for an Azure SQL Database Managed Instance.",
"properties": {
"sourceDatabaseName": {
"description": "Name of managed instance database",
"type": "string"
}
},
"required": [
"sourceDatabaseName"
]
},
"MigrateMISyncCompleteCommandOutput": {
"type": "object",
"description": "Output for command that completes online migration for an Azure SQL Database Managed Instance.",
"properties": {
"errors": {
"description": "List of errors that happened during the command execution",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
},
"platform": {
"$ref": "#/definitions/SqlServerSourcePlatform",
"description": "Server platform type for connection"
"description": "Server platform type for connection"
}
},
"required": [
Expand All @@ -332,7 +332,7 @@
],
"x-ms-enum": {
"name": "SqlSourcePlatform",
"modelAsString": true
"modelAsString": true
}
},
"MySqlConnectionInfo": {
Expand All @@ -359,8 +359,8 @@
"port"
]
},
"PostgreSqlConnectionInfo": {
"x-ms-discriminator-value": "PostgreSqlConnectionInfo",
"PostgreSqlConnectionInfo": {
"x-ms-discriminator-value": "PostgreSqlConnectionInfo",
"type": "object",
"description": "Information for connecting to PostgreSQL server",
"properties": {
Expand All @@ -386,11 +386,12 @@
"serverName",
"port"
]
},
},
"MySqlTargetPlatform": {
"type": "string",
"description": "An enumeration of possible target types when migrating from MySQL",
"enum": [
"SqlServer",
"AzureDbForMySQL"
],
"x-ms-enum": {
Expand All @@ -408,9 +409,170 @@
"MigrationFromMySQLToAzureDBForMySQL"
],
"x-ms-enum": {
"name": "ServerLevelPermissionsGroup",
"name": "ServerLevelPermissionsGroup"
}
},
"AzureActiveDirectoryApp": {
"type": "object",
"description": "Azure Active Directory Application",
"properties": {
"applicationId": {
"type": "string",
"description": "Application ID of the Azure Active Directory Application"
},
"appKey": {
"type": "string",
"description": "Key used to authenticate to the Azure Active Directory Application"
},
"tenantId": {
"type": "string",
"description": "Tenant id of the customer"
}
},
"required": [
"applicationId",
"appKey",
"tenantId"
]
},
"MiSqlConnectionInfo": {
"x-ms-discriminator-value": "MiSqlConnectionInfo",
"type": "object",
"description": "Properties required to create a connection to Azure SQL database Managed instance",
"allOf": [
{
"$ref": "#/definitions/ConnectionInfo"
}
],
"properties": {
"managedInstanceResourceId": {
"type": "string",
"description": "Resource id for Azure SQL database Managed instance"
}
},
"required": [
"managedInstanceResourceId"
]
},
"BackupSetInfo": {
"type": "object",
"description": "Information of backup set",
"properties": {
"backupSetId": {
"type": "string",
"description": "Id for the set of backup files"
},
"firstLsn": {
"type": "string",
"description": "First log sequence number of the backup file"
},
"lastLsn": {
"type": "string",
"description": "Last log sequence number of the backup file"
},
"lastModifiedTime": {
"type": "string",
"format": "date-time",
"description": "Last modified time of the backup file in share location"
},
"backupType": {
"$ref": "#/definitions/BackupType",
"description": "Enum of the different backup types"
},
"listOfBackupFiles": {
"type": "array",
"items": {
"$ref": "#/definitions/BackupFileInfo"
},
"description": "List of files in the backup set"
},
"databaseName": {
"type": "string",
"description": "Name of the database to which the backup set belongs"
},
"backupStartDate": {
"type": "string",
"format": "date-time",
"description": "Date and time that the backup operation began"
},
"backupFinishedDate": {
"type": "string",
"format": "date-time",
"description": "Date and time that the backup operation finished"
},
"isBackupRestored": {
"type": "boolean",
"description": "Whether the backup set is restored or not"
}
},
"readOnly": true
},
"BackupType": {
"type": "string",
"description": "Enum of the different backup types.",
"enum": [
"Database",
"TransactionLog",
"File",
"DifferentialDatabase",
"DifferentialFile",
"Partial",
"DifferentialPartial"
],
"x-ms-enum": {
"name": "BackupType",
"modelAsString": true
}
},
"BackupFileInfo": {
"type": "object",
"description": "Information of the backup file",
"properties": {
"fileLocation": {
"type": "string",
"description": "Location of the backup file in shared folder"
},
"familySequenceNumber": {
"type": "integer",
"description": "Sequence number of the backup file in the backup set"
},
"status": {
"$ref": "#/definitions/BackupFileStatus",
"description": "Status of the backup file during migration"
}
},
"readOnly": true
},
"BackupFileStatus": {
"type": "string",
"description": "An enumeration of Status of the log backup file.",
"enum": [
"Arrived",
"Queued",
"Uploading",
"Uploaded",
"Restoring",
"Restored",
"Cancelled"
],
"x-ms-enum": {
"name": "BackupFileStatus",
"modelAsString": true
}
},
"OrphanedUserInfo": {
"type": "object",
"description": "Information of orphaned users on the SQL server database.",
"properties": {
"name": {
"type": "string",
"description": "Name of the orphaned user"
},
"databaseName": {
"type": "string",
"description": "Parent database of the user"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"swagger": "2.0",
"info": {
"title": "Azure Database Migration Service Resource Provider",
"version": "2018-07-15-preview"
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"ConnectToSourcePostgreSqlSyncTaskInput": {
"type": "object",
"description": "Input for the task that validates connection to PostgreSQL and source server requirements",
"properties": {
"sourceConnectionInfo": {
"description": "Connection information for source PostgreSQL server",
"$ref": "./Common.json#/definitions/PostgreSqlConnectionInfo"
}
},
"required": [
"sourceConnectionInfo"
]
},
"ConnectToSourcePostgreSqlSyncTaskOutput": {
"type": "object",
"description": "Output for the task that validates connection to PostgreSQL and source server requirements",
"properties": {
"id": {
"type": "string",
"description": "Result identifier",
"readOnly": true
},
"sourceServerVersion": {
"type": "string",
"description": "Version of the source server",
"readOnly": true
},
"databases": {
"type": "array",
"description": "List of databases on source server",
"items": {
"type": "string"
},
"readOnly": true
},
"sourceServerBrandVersion": {
"type": "string",
"description": "Source server brand version",
"readOnly": true
},
"validationErrors": {
"description": "Validation errors associated with the task",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
}
}
}
}
}
Loading