Updating a Virtual Deployment

Update the description, and enable or disable access logs of a virtual deployment in Service Mesh.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Service Mesh.
    2. Click Service Meshes.
    3. On the Service Mesh page, from the list of compartments on the left side, select a compartment.
    4. From the list of meshes, click the mesh name that contains the virtual service for which you want to update the virtual deployments.
    5. On the details page of the mesh, click the virtual service that has the virtual deployment that you want to update.
    6. On the details page of the virtual service, in the Virtual Deployment table, click the virtual deployment that you want to update.
    7. On the details page of the virtual deployment, click Edit.
    8. In the Edit Virtual Deployment panel, update the details as required.
      You can uodate the following details:
      • The description of the virtual deployment. Avoid entering confidential information.
      • Select Enable access logs to turn access logs on or clear it to turn them off.
    9. Click Save changes.
  • To update a virtual deployment, use the service-mesh resource with the virtual-deployment option.

    oci service-mesh virtual-deployment update --from-json <json-file-name>

    Example:

    oci service-mesh virtual-deployment update --from-json file://update.json

    To see what operations are available for virtual-deployment update use:

    oci service-mesh virtual-deployment update -h

    To generate a sample JSON file for virtual-deployment update use:

    oci service-mesh virtual-deployment update --generate-full-command-json-input
  • Use the UpdateVirtualDeployment operation to update a virtual deployment.