Add Storage to a Service instance

post

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/storage/add

Add storage to a MySQL Cloud Service instance. MySQL Cloud Service supports adding storage to dataStorage, backupStorage, or MySQLLogStorage.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
The request body defines details for the add storage operation.
Root Schema : Add Storage Request Body
Type: object
Title: Add Storage Request Body
Defines component parameters for the add storage operation. See the nested 'components' schema for details.
Show Source
Nested Schema : Add Storage Component Details
Type: object
Title: Add Storage Component Details
Details for the 'components' schema in the add storage operation.
Show Source
  • Amount of backup storage (GB), from 50 to 2000. This becomes the new backupStorage value. The current value can be increased, but not decreased.
  • Amount of data storage (GB), from 10 to 2000. This becomes the new dataStorage value. The current value can be increased, but not decreased.
  • Hosts with Added Storage
    Title: Hosts with Added Storage
    A list of hosts to control by this add storage operation. For example, a common host name format is instancename-mysql-1 where instancename is the name of the particular MySQL Cloud Service instance.
  • Amount of redolog storage storage (GB), from 60 to 2000. This becomes the new MySQLLogStorage value. The current value can be increased, but not decreased.
Nested Schema : Hosts with Added Storage
Type: array
Title: Hosts with Added Storage
A list of hosts to control by this add storage operation. For example, a common host name format is instancename-mysql-1 where instancename is the name of the particular MySQL Cloud Service instance.
Show Source

Response

Supported Media Types

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : Response Body
Type: object
Title: Response Body
The response body contains information about the operation.
Show Source

Examples

The following example shows how to start an add storage operation by submitting a POST request on the REST endpoint using cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.

cURL Command

curl -i -X POST \
  -u "username:password" \
  -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
  -H "Accept: application/json" \
  -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" \
  -d '{"components":{"mysql":{ "dataStorage":"120", "backupStorage":"120", "MySQLLogStorage":"120", "hosts":"[mytestinstance-mysql-1]" }}}' \
  https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/storage/add

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 202 Accepted
Server: Oracle-Application-Server-11g
Strict-Transport-Security: max-age=31536000;includeSubDomains
Location: https://rest_server_url/paas/api/v1.1/activitylog/TestCorp/job/12815164
Content-Language: en
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 005MWfNdQ2o6uHFpR0H7id0003mK0001DG
X-ORACLE-DMS-ECID: 005MWfNdQ2o6uHFpR0H7id0003mK0001DG
Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/TestCorp/services/MySQLCS/MyTestInstance
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Mon, 25 Sep 2017 22:11:43 GMT
Connection: close

Example of Response Body

The following shows an example of the response body in JSON format.

{
	"details": {
		"message": "Submitted job to add storage for service [MyTestInstance] in domain [ExampleIdentityDomain].",
		"jobId": "12815164"
	}
}