Migrazione mediante l'API REST

Fare riferimento ai passi riportati di seguito per eseguire la migrazione utilizzando l'API REST.

  1. Recupera i dettagli del gruppo di protezione DR. Endpoint: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. Aggiornare DRPG eliminando i membri di computazione precedenti con memberType: COMPUTE_INSTANCE richiamando un'API di aggiornamento DRPG (PUT). Utilizzare la risposta della richiesta GET per creare il payload della richiesta di aggiornamento rimuovendo i membri precedenti. Endpoint :GET /drProtectionGroups/{drProtectionGroupId}
    Request:
    {
      "members": [
        {
          "memberType": "VOLUME_GROUP",
          "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx"
        }
      ]
    }
  3. Aggiornare il DRPG aggiungendo nuovi membri di computazione che sostituiscono i membri di computazione precedenti con isMovable: false con memberType: COMPUTE_INSTANCE_NON_MOVABLE e che hanno isMovable: true con memberType:COMPUTE_INSTANCE_MOVABLE.
    Nota

    L'attributo vnicMapping nell'oggetto membro di calcolo precedente viene modificato in vnicMappings nel nuovo oggetto.
    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"
        }
      ]
    }