Migración mediante la API de REST
Consulte los siguientes pasos para realizar la migración mediante la API de REST.
- Obtener detalles de grupo de protección de DR. Punto final:
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 } - Actualice el DRPG que suprime los miembros de recursos informáticos heredados con
memberType:COMPUTE_INSTANCEinvocando una API de DRPG de actualización (PUT). Utilice la respuesta de la solicitud GET para crear la carga útil de la solicitud de actualización eliminando los miembros heredados.Endpoint :GET /drProtectionGroups/{drProtectionGroupId}Request: { "members": [ { "memberType": "VOLUME_GROUP", "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx" } ] } - Actualice el DRPG que agrega nuevos miembros de cálculo que sustituyen a los miembros de cálculo heredados con
isMovable:falsepormemberType:COMPUTE_INSTANCE_NON_MOVABLEy que tienenisMovable:truepormemberType:COMPUTE_INSTANCE_MOVABLE.Nota
El atributovnicMappingdel objeto de miembro de cálculo heredado se cambia avnicMappingsen el objeto nuevo.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" } ] }