Description
Update database services.
Request URL
Database API v1.0 PUT /v1/services/(uuid: service_id)
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | User Token |
service_id | - | URI | UUID | Service ID |
service_name | - | plain | string | Service Name |
Response Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
service_id | - | plain | UUID | Service ID |
service_name | - | plain | string | Service Name |
create_date | - | plain | string | Date and Hour of Creation |
quota | - | plain | int | Quota for Use(Unit:GB) |
total_usage | - | plain | float | Total Usage(Unit:GB)It displays the number with two decimal point. |
status | active | plain | string | Status |
backup | enable/disable | plain | string | Flag to Enable Backup |
prefix | - | plain | string | Prefix |
Request Json
{ "service_name": "dbservice01" }
Normal response codes
200 - Success
Error response codes
400 - Bad Request
401 – Access Denied
404 – Not Found
Repeatable
No
Example
curl -i -X PUT \ -H "Accept: application/json" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \ -d '{ "service_name": "dbservice01" }' \ https://database-hosting.tyo1.cloud.z.com/v1/services/9d6441f6-c5a0-4dcf-a1a9-1a4d724e51fd
HTTP/1.1 200 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json { "service" : { "service_id": "9d6441f6-c5a0-4dcf-a1a9-1a4d724e51fd", "service_name": "dbservice01", "create_date": "2012-11-02T19:56:26Z", "quota": 10, "total_usage": 2.25, "status": "active", "backup": "disable", "prefix" : "02p8y" } }