This page describes how to configure Exascale Storage for
Exadata Infrastructures in Google Cloud.

## Before you begin

- Make sure that you have the required Identity and Access Management (IAM) roles and
  permissions to configure Exascale Storage:

  - `oracledatabase.cloudExadataInfrastructures.update` permission

  For more information about how to assign roles, see
  [Apply IAM roles](https://docs.cloud.google.com/oracle/database/docs/iam-roles.md.txt).

## Configure Exascale Storage

To configure Exascale Storage for an Exadata Infrastructure instance, do the following:

### gcloud

Use the `gcloud oracle-database cloud-exadata-infrastructures configure-exascale`
command to configure the Exascale Storage.

```
gcloud oracle-database cloud-exadata-infrastructures configure-exascale EXADATA_INFRASTRUCTURE_ID \
--project=PROJECT_ID \
--location=REGION \
--total-storage-size-gb=STORAGE_SIZE \
--total-vm-storage-size-gb=VM_STORAGE_SIZE
```

Replace the following:

- <var translate="no">EXADATA_INFRASTRUCTURE</var>: the ID of the Exadata Infrastructure.
- <var translate="no">PROJECT_ID</var>: the ID of your Google Cloud project.
- <var translate="no">REGION</var>: the region where your Exadata Infrastructure is located.
- <var translate="no">STORAGE_SIZE</var>: the amount of Exascale storage (in GiBs) that you want to allocate from the Exadata Infrastructure.
- <var translate="no">VM_STORAGE_SIZE</var>: the amount of Exascale VM storage (in GiBs) that you want to allocate from the Exadata Infrastructure.

### API

To configure the Exascale Storage for an Exadata Infrastructure instance, run
the following `curl` command:

```
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/cloudExadataInfrastructures/EXADATA_INFRASTRUCTURE_ID:configureExascale"
-d \
'{
  "total_storage_size_gb": "STORAGE_SIZE",
  "total_vm_storage_size_gb": "VM_STORAGE_SIZE"
}'
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the ID of your Google Cloud project.
- <var translate="no">REGION</var>: the region where your Exadata Infrastructure is located.
- <var translate="no">EXADATA_INFRASTRUCTURE</var>: the ID of the Exadata Infrastructure.
- <var translate="no">STORAGE_SIZE</var>: the amount of Exascale storage (in GiBs) that you want to allocate from the Exadata Infrastructure.
- <var translate="no">VM_STORAGE_SIZE</var>: the amount of Exascale VM storage (in GiBs) that you want to allocate from the Exadata Infrastructure.