Migrando com a API REST
Consulte as etapas a seguir para executar a migração usando a API REST.
- Obtenha detalhes do grupo de proteção de DR. Ponto 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 }
- Atualize o DRPG excluindo membros de computação legados com
memberType
:COMPUTE_INSTANCE
chamando uma API de DRPG (PUT) de atualização. Use a resposta da solicitação GET para criar o payload da solicitação de atualização removendo os membros legados.Endpoint :GET /drProtectionGroups/{drProtectionGroupId}
Request: { "members": [ { "memberType": "VOLUME_GROUP", "memberId": "ocid1.volumegroup.oc1.iad.xxxxxxx" } ] }
- Atualize o DRPG adicionando novos membros de computação substituindo os membros de computação legados com
isMovable
:false
pormemberType
:COMPUTE_INSTANCE_NON_MOVABLE
e que estão tendoisMovable
:true
pormemberType
:COMPUTE_INSTANCE_MOVABLE
.Observação
O atributovnicMapping
no objeto do membro de computação legado é alterado paravnicMappings
no novo objeto.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" } ] }