你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MongoDbCollectionSettings interface

描述如何迁移单个 MongoDB 集合

属性

canDelete

是否允许迁移程序在执行迁移过程中删除目标集合。 默认值为 true。

shardKey

描述 MongoDB 分片密钥

targetRUs

应在 CosmosDB 目标上配置的 RU,或为 null 来使用默认值。 这不会影响非 CosmosDB 目标。

属性详细信息

canDelete

是否允许迁移程序在执行迁移过程中删除目标集合。 默认值为 true。

canDelete?: boolean

属性值

boolean

shardKey

描述 MongoDB 分片密钥

shardKey?: MongoDbShardKeySetting

属性值

targetRUs

应在 CosmosDB 目标上配置的 RU,或为 null 来使用默认值。 这不会影响非 CosmosDB 目标。

targetRUs?: number

属性值

number