Use the Db2 on Cloud Scaling API to schedule, delete or view the status of a scale operation of your Db2 on Cloud instance. Requests require an IBM Cloud UAA token, the space ID of the instance, and the instance ID. The instance and space IDs are available in the URL of the instance on IBM Cloud. The user attempting to make these API calls must also have developer access to the system.
Creating a UAA Token
Scale a service instance.
Scale a service instance to the provided CPU, RAM, and storage values.
ram_gb values are: 4, 8, 16, 32, 64, 128. CPU is scaled together with RAM. Every 4 GB of RAM corresponds to 1 virtual CPU core.
storage_gb values are: 2, 10, 25, 50, 100, 150, 250, 500, 1000, 2000, 4000.
To request the scale operation from the command line instead of by API, use the Cloud Foundry CLI:
cf update-service <service-name> -c '<scale request json>'
<scale request json> is defined below.
ID of the service instance to scale. This can be obtained from the URL of the instance in IBM Cloud or from the Cloud Foundry CLI by running
cf service <service-name> --guid
Linux epoch time (milliseconds) to schedule the scale operation. Must be within a week of the current time. Use 0 to scale immediately.
A valid email in case we need to contact you during the scale operation.
Amount of RAM to scale to, in GB.
Amount of storage to scale to, in GB.