你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.DBforPostgreSQL flexibleServers/migrations 2022-05-01-preview
Bicep 资源定义
可以使用面向以下操作部署 flexibleServers/migrations 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBforPostgreSQL/flexibleServers/migrations 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.DBforPostgreSQL/flexibleServers/migrations@2022-05-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
parent: resourceSymbolicName
properties: {
cancel: bool
dBsToCancelMigrationOn: [
'string'
]
dBsToMigrate: [
'string'
]
dBsToTiggerCutoverOn: [
'string'
]
migrationMode: 'string'
migrationWindowStartTimeInUtc: 'string'
overwriteDBsInTarget: bool
secretParameters: {
adminCredentials: {
sourceServerPassword: 'string'
targetServerPassword: 'string'
}
}
setupLogicalReplicationOnSourceDBIfNeeded: bool
sourceDBServerFullyQualifiedDomainName: 'string'
sourceDBServerResourceId: 'string'
startDataMigration: bool
targetDBServerFullyQualifiedDomainName: 'string'
triggerCutover: bool
}
}
属性值
flexibleServers/migrations
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 了解如何在 Bicep 中为子资源设置名称和类型。 |
字符串 (必需) |
location | 资源所在的地理位置 | 字符串 (必需) |
标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
父级 (parent) | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源之外的子资源。 |
类型为资源的符号名称: flexibleServers |
properties | 迁移资源属性。 | MigrationResourceProperties |
MigrationResourceProperties
名称 | 说明 | 值 |
---|---|---|
cancel | 若要触发整个迁移的取消,我们需要将此标志发送为 true | bool |
dBsToCancelMigrationOn | 如果要为特定数据库触发取消,请在此数组中发送 triggerCutover 标志为 true 和数据库名称 | string[] |
dBsToMigrate | string[] | |
dBsToTiggerCutoverOn | 如果要为特定数据库触发直接转换,请将 triggerCutover 标志作为 true 和数据库名称在此数组中发送 | string[] |
migrationMode | 有两种类型的迁移模式联机和脱机 | “脱机” “Online” |
migrationWindowStartTimeInUtc | string | |
overwriteDBsInTarget | bool | |
secretParameters | 迁移机密参数。 | MigrationSecretParameters |
setupLogicalReplicationOnSourceDBIfNeeded | bool | |
sourceDBServerFullyQualifiedDomainName | string | |
sourceDBServerResourceId | 字符串 | |
startDataMigration | bool | |
targetDBServerFullyQualifiedDomainName | string | |
triggerCutover | 若要触发整个迁移的直接转换,我们需要将此标志发送为 true | bool |
MigrationSecretParameters
名称 | 说明 | 值 |
---|---|---|
adminCredentials | 服务器管理员凭据。 | AdminCredentials (必需) |
AdminCredentials
名称 | 说明 | 值 |
---|---|---|
sourceServerPassword | 字符串 (必需) | |
targetServerPassword | 字符串 (必需) |
ARM 模板资源定义
可以使用面向以下操作部署 flexibleServers/migrations 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBforPostgreSQL/flexibleServers/migrations 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.DBforPostgreSQL/flexibleServers/migrations",
"apiVersion": "2022-05-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"cancel": "bool",
"dBsToCancelMigrationOn": [ "string" ],
"dBsToMigrate": [ "string" ],
"dBsToTiggerCutoverOn": [ "string" ],
"migrationMode": "string",
"migrationWindowStartTimeInUtc": "string",
"overwriteDBsInTarget": "bool",
"secretParameters": {
"adminCredentials": {
"sourceServerPassword": "string",
"targetServerPassword": "string"
}
},
"setupLogicalReplicationOnSourceDBIfNeeded": "bool",
"sourceDBServerFullyQualifiedDomainName": "string",
"sourceDBServerResourceId": "string",
"startDataMigration": "bool",
"targetDBServerFullyQualifiedDomainName": "string",
"triggerCutover": "bool"
}
}
属性值
flexibleServers/migrations
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | 'Microsoft.DBforPostgreSQL/flexibleServers/migrations' |
apiVersion | 资源 API 版本 | “2022-05-01-preview” |
name | 资源名称 了解如何在 JSON ARM 模板中为子资源设置名称和类型。 |
字符串 (必需) |
location | 资源所在的地理位置 | 字符串 (必需) |
标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
properties | 迁移资源属性。 | MigrationResourceProperties |
MigrationResourceProperties
名称 | 说明 | 值 |
---|---|---|
cancel | 若要触发整个迁移的取消,我们需要将此标志发送为 true | bool |
dBsToCancelMigrationOn | 如果要为特定数据库触发取消,请在此数组中发送 triggerCutover 标志为 true 和数据库名称 | string[] |
dBsToMigrate | string[] | |
dBsToTiggerCutoverOn | 如果要为特定数据库触发直接转换,请将 triggerCutover 标志作为 true 和数据库名称在此数组中发送 | string[] |
migrationMode | 有两种类型的迁移模式联机和脱机 | “脱机” “Online” |
migrationWindowStartTimeInUtc | 字符串 | |
overwriteDBsInTarget | bool | |
secretParameters | 迁移机密参数。 | MigrationSecretParameters |
setupLogicalReplicationOnSourceDBIfNeeded | bool | |
sourceDBServerFullyQualifiedDomainName | 字符串 | |
sourceDBServerResourceId | 字符串 | |
startDataMigration | bool | |
targetDBServerFullyQualifiedDomainName | 字符串 | |
triggerCutover | 若要触发整个迁移的直接转换,我们需要将此标志发送为 true | bool |
MigrationSecretParameters
名称 | 说明 | 值 |
---|---|---|
adminCredentials | 服务器管理员凭据。 | AdminCredentials (必需) |
AdminCredentials
名称 | 说明 | 值 |
---|---|---|
sourceServerPassword | 字符串 (必需) | |
targetServerPassword | 字符串 (必需) |
Terraform (AzAPI 提供程序) 资源定义
可以使用面向以下操作部署 flexibleServers/migrations 资源类型:
- 资源组
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBforPostgreSQL/flexibleServers/migrations 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DBforPostgreSQL/flexibleServers/migrations@2022-05-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
cancel = bool
dBsToCancelMigrationOn = [
"string"
]
dBsToMigrate = [
"string"
]
dBsToTiggerCutoverOn = [
"string"
]
migrationMode = "string"
migrationWindowStartTimeInUtc = "string"
overwriteDBsInTarget = bool
secretParameters = {
adminCredentials = {
sourceServerPassword = "string"
targetServerPassword = "string"
}
}
setupLogicalReplicationOnSourceDBIfNeeded = bool
sourceDBServerFullyQualifiedDomainName = "string"
sourceDBServerResourceId = "string"
startDataMigration = bool
targetDBServerFullyQualifiedDomainName = "string"
triggerCutover = bool
}
})
}
属性值
flexibleServers/migrations
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.DBforPostgreSQL/flexibleServers/migrations@2022-05-01-preview” |
name | 资源名称 | 字符串 (必需) |
location | 资源所在的地理位置 | 字符串 (必需) |
parent_id | 此资源的父资源 ID。 | 类型为:flexibleServers 的资源的 ID |
标记 | 资源标记。 | 标记名称和值的字典。 |
properties | 迁移资源属性。 | MigrationResourceProperties |
MigrationResourceProperties
名称 | 说明 | 值 |
---|---|---|
cancel | 若要触发整个迁移的取消,我们需要将此标志发送为 true | bool |
dBsToCancelMigrationOn | 如果要为特定数据库触发取消,请在此数组中发送 triggerCutover 标志为 true 和数据库名称 | string[] |
dBsToMigrate | string[] | |
dBsToTiggerCutoverOn | 如果要为特定数据库触发直接转换,请将 triggerCutover 标志作为 true 和数据库名称在此数组中发送 | string[] |
migrationMode | 有两种类型的迁移模式联机和脱机 | “脱机” “Online” |
migrationWindowStartTimeInUtc | string | |
overwriteDBsInTarget | bool | |
secretParameters | 迁移机密参数。 | MigrationSecretParameters |
setupLogicalReplicationOnSourceDBIfNeeded | bool | |
sourceDBServerFullyQualifiedDomainName | string | |
sourceDBServerResourceId | string | |
startDataMigration | bool | |
targetDBServerFullyQualifiedDomainName | string | |
triggerCutover | 若要触发整个迁移的直接转换,我们需要将此标志发送为 true | bool |
MigrationSecretParameters
名称 | 说明 | 值 |
---|---|---|
adminCredentials | 服务器管理员凭据。 | AdminCredentials (必需) |
AdminCredentials
名称 | 说明 | 值 |
---|---|---|
sourceServerPassword | 字符串 (必需) | |
targetServerPassword | 字符串 (必需) |