- URL:
- https://<root>/data/<datastoreID>/config/edit
- Methods:
POST- Required Capability:
- Access allowed only with the Publisher role
- Version Introduced:
- 10.9.1
Description
The edit operation updates the resource allocation (cpu, cpu, memory, and memory) for only the relational data store. Once complete, the updates will be reflected on the config resource page.
Request parameters
| Parameter | Details |
|---|---|
| A JSON object containing the currently configured resource allocation for the relational data store. Currently, this operation only supports updating the values for Example |
| This parameter specifies whether the operation will run synchronously or asynchronously. If Values: |
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the edit operation, formatted for readability:
POST /context/admin/admin/data/b15a6a4d41324cf9a1f0375ab46a4da3/config/edit HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
config={
"deployment": {
"numOfStandby": 1,
"resources": {
"cpuMin": "1",
"cpuMax": "5",
"memMax": "8Gi",
"memMin": "2Gi"
}
}
}&async=false&f=pjson&token=B4SGXu8PifZbfOJxpbr-i3X66FvpOuDtp4UdaBqmodRHAxxI-El280UH26TsC9YBct-6TJ_6wYH8iJB39SCwJIB6Vl8_DXmhvROZxjWMk_boLq6J-hurAvVdsOwYLlE7uy7j5t7lpQBAOqvnXS1lxGCy1vwnr3OPLoKmOWY8S8dxP1ZNrRx_SlTSfshlnMP7yoYIArLIylO0Gga9gcyDa3DYsDeTKU8uKbkUQ6LEwo93g1cU9zAxFnxhlBdHw-9UJSON Response example
If async is false, the following response is returned:
{"status": "success"}If async is true, the following response is returned. The value returned for jobs can be used to access the job resource to track a job's status after it's been submitted. For more information, see the Job resource topic.
{
"jobsUrl": "https://organization.domain.com/context/admin/jobs/ja2ca1a35-881c-400c-a49a-b26883002d6c",
"jobID": "ja2ca1a35-881c-400c-a49a-b26883002d6c",
"jobStatus": "SUBMITTED"
}