REST APIを使用した移行

REST APIを使用して移行を実行するには、次のステップを参照してください。

  1. GET DR保護グループの詳細。エンドポイント:GET /drProtectionGroups/{drProtectionGroupId}
    Response:
    
    {
      "id": "ocid1.drprotectiongroup.oc1.iad.xxxxxxxx",
      "compartmentId": "ocid1.compartment.oc1..xxxxxxx",
      "displayName": "IAD-DRPG-1234",
      "role": "PRIMARY",
      "peerId": "ocid1.drprotectiongroup.oc1.phx.xxxxxxx",
      "peerRegion": "us-phoenix-1",
      "logLocation": {
        "namespace": "xyz1234",
        "bucket": "bucket-1234",
        "object": null
      },
      "members": [
        {
          "memberId": "ocid1.instance.oc1. iad.xxxxxxxx1",
          "memberType": "COMPUTE_INSTANCE",
          "isMovable": true,
          "vnicMapping": [
            {
              "sourceVnicId": "ocid1.vnic.oc1.iad.xxxxxxxx",
              "destinationSubnetId": "ocid1.subnet.oc1.phx.xxxxxx"
            }
          ]
        },
        {
          "memberId": "ocid1.instance.oc1.iad.xxxxxxxx2",
          "memberType": "COMPUTE_INSTANCE",
          "isMovable": false
        },
        {
          "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx",
          "memberType": "VOLUME_GROUP"
        }
      ],
      "timeCreated": "2023-10-17T00:14:28.860Z",
      "timeUpdated": "2023-10-17T00:14:44.544Z",
      "lifecycleState": "ACTIVE",
      "lifeCycleDetails": null,
      "lifecycleSubState": null,
      "freeformTags": null,
      "definedTags": null,
      "systemTags": null
    }
  2. DRPG API (PUT)の更新を起動して、memberType: COMPUTE_INSTANCEでレガシー・コンピュート・メンバーを削除するDRPGを更新します。GETリクエストのレスポンスを使用して、レガシー・メンバーを削除することで更新リクエスト・ペイロードを構築します。Endpoint :GET /drProtectionGroups/{drProtectionGroupId}
    Request:
    {
      "members": [
        {
          "memberType": "VOLUME_GROUP",
          "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx"
        }
      ]
    }
  3. DRPGを更新し、isMovable: falsememberType: COMPUTE_INSTANCE_NON_MOVABLEで、isMovable: truememberType:COMPUTE_INSTANCE_MOVABLEであるレガシー・コンピュート・メンバーを置き換えます。
    ノート

    レガシー・コンピュート・メンバー・オブジェクトのvnicMapping属性は、新しいオブジェクトでvnicMappingsに変更されます。
    Endpoint :PUT /drProtectionGroups/{drProtectionGroupId}
    Request:
    {
      "members": [
        {
          "memberId": "ocid1.instance.oc1. iad.xxxxxxxx1",
          "memberType": "COMPUTE_INSTANCE_MOVABLE",
          "vnicMappings": [
            {
              "sourceVnicId": "ocid1.vnic.oc1.iad.xxxxxxxx",
              "destinationSubnetId": "ocid1.subnet.oc1.phx.xxxxxx"
            }
          ]
        },
        {
          "memberId": "ocid1.instance.oc1.iad.xxxxxxxx2",
          "memberType": "COMPUTE_INSTANCE_NON_MOVABLE"
        },
        {
          "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx",
          "memberType": "VOLUME_GROUP"
        }
      ]
    }