Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
发送反馈
Method: projects.locations.instances.startMigration
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
启动从源实例到目标 Memorystore 实例的迁移。
成功完成此操作后,目标实例将:1. 设置与源实例的复制,并将任何写入内容复制到源实例。2. 仅允许读取。
HTTP 请求
选择端点 :
全局 africa-south1 asia-east1 asia-east2 asia-northeast1 asia-northeast2 asia-northeast3 asia-south1 asia-south2 asia-southeast1 asia-southeast2 asia-southeast3 australia-southeast1 australia-southeast2 europe-central2 europe-north1 europe-north2 europe-southwest1 europe-west1 europe-west10 europe-west12 europe-west15 europe-west2 europe-west3 europe-west4 europe-west6 europe-west8 europe-west9 me-central1 me-central2 me_west1 northamerica-northeast1 northamerica-northeast2 northamerica-south1 southamerica-east1 southamerica-west1 us-central1 us-central2 us-east1 us-east4 us-east5 us-east7 us-south1 us-west1 us-west2 us-west3 us-west4 us-west8
POST https://memorystore.googleapis.com/v1beta/{name=projects/*/locations/*/instances/*}:startMigration
网址使用 gRPC 转码 语法。
路径参数
参数
name
string
必需。要开始迁移的实例的资源名称。格式:projects/{project}/locations/{location}/instances/{instance}
请求正文
请求正文中包含结构如下的数据:
JSON 表示法
{
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"selfManagedSource" : {
object (SelfManagedSource )
}
// End of mutually exclusive fields.
}
字段
定义迁移的来源。以下是互斥字段的列表。在响应中,最多只能设置以下字段之一:
selfManagedSource
object (SelfManagedSource )
必需。从自行管理的 Valkey/Redis 实例迁移的配置
互斥字段的结束。
响应正文
如果成功,则响应正文包含一个 Operation 实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/memorystore.read-write
IAM 权限
需要拥有 name 资源的以下 IAM 权限:
memorystore.instances.startMigration
如需了解详情,请参阅 IAM 文档 。
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-09-28。
需要向我们提供更多信息?
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-09-28。"],[],[]]