Providing Block Storage Capacity for an Instance

To provide block storage capacity for a Compute Classic instance, you must create one or more storage volumes and attach them to the instance.

Task Procedure / REST API Call
1. Create a storage volume. POST /storage/volume/
2. Check whether the storage volume is created. GET /storage/volume/{name}

After the volume is created, the status field shows online.

3. Attach the storage volume to your instance. POST /storage/attachment/

In the response, note the name of the storage attachment.

4. Check whether the volume is attached. GET /storage/attachment/{name}

After the volume is attached, the state field shows attached.

5. Mount and format the disk that you just attached. See Mounting and Unmounting a Storage Volume in Using Oracle Cloud Infrastructure Compute Classic.

See Also:

About Storage Volumes in Using Oracle Cloud Infrastructure Compute Classic.