Ipv4

This preview shows page 120 - 123 out of 207 pages.

"ocid1.instance.oc1.phx.abcdefgh6kykdowc8ozzvr4421kwp7apdrwk6wrjl7su82d60c6sp4nap88d", "ipv4": "169.254.2.2", "iqn": "iqn.2015-12.com.oracleiaas:e3fd73db-b164-4d76-bc3f-f58b093989d0", "lifecycle-state": "ATTACHED", "port": 3260, "time-created": "2017-08-26T00:51:30.462000+00:00", "volume-id": "ocid1.volume.oc1.phx.abyhqpa3ati7ggfjvba7y6dcg7imdrwskq4bdljroo2cbwchrebuprxddvca" } ] } } 2. Detach the volume-attachment-id CHAPTER 9 Getting Started with the Command Line Interface Oracle Cloud Infrastructure Getting Started Guide 120
Image of page 120
To detach the volume attachment-id, run the following command. oci compute volume-attachment detach --volume-attachment-id <volume_attachment_id> Command Example and Response oci compute volume-attachment detach --volume-attachment-id ocid1.volumeattachment.oc1.phx.abyhqlytoivg6eaybdrwb7mqqms6utjrefofrplyip7filf3vtpk55h2hzlq Are you sure you want to delete this resource? [y/N]: Tip All destructive actions, such as detaching and deleting resources allow you to use the --force parameter, and the resource is removed without requiring confirmation. As a best practice, use the y/N option instead of --force . Confirm the deletion. No response is returned after the resource is deleted. 3. Delete the Block Volume To delete the block volume, run the following command. oci bv volume delete --volume-id <volume_id> --force Command Example and Response oci bv volume delete --volume-id ocid1.volume.oc1.phx.abyhqljroo2cbwchrpa3ati7ggfjvba7y6dcg7imnleskq4bdebuprxddvca --force There is no response to this action. To verify that the block volume was deleted, run the following command. oci bv volume list -c <compartment_id> CHAPTER 9 Getting Started with the Command Line Interface Oracle Cloud Infrastructure Getting Started Guide 121
Image of page 121
The response to this query returns "lifecycle-state": "TERMINATED" , showing that the volume doesn't exist. To delete the block volume attached to the Windows instance, use the preceding steps (1-3) as a guide. Terminate the Instances Help: oci compute instance terminate -h To delete the Linux instance, run the following command. oci compute instance terminate --instance-id <instance_id> Command Example and Response oci compute instance terminate --instance-id ocid1.instance.oc1.phx.abcdefgh6kykdowc8ozzvr4421kwp7apdrwk6wrjl7su82d60c6sp4nap88d Are you sure you want to delete this resource? [y/N]: Confirm the deletion. No response is returned after the instance is deleted. To delete the Windows instance, run the following command. oci compute instance terminate --instance-id <instance_id> Command Example and Response oci compute instance terminate --instance-id ocid1.instance.oc1.phx.zsutzirph7cbrbx6rzu91stavdrw58puq3isknlr07zfcd6rq6p9 Are you sure you want to delete this resource? [y/N]: Confirm the deletion. No response is returned after the instance is deleted. Delete the Virtual Cloud Network Help: oci network subnet delete -h , oci network vcn delete -h It takes the following 2 steps to delete the VCN.
Image of page 122
Image of page 123

You've reached the end of your free preview.

Want to read all 207 pages?

  • Fall '16
  • Login, Oracle Corporation

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture