MENU
サービスメタデータ更新 - Database API v1
Description
データベースサービスのメータデータを更新します。
Request URL
Database API v1.0 PUT /v1/services/(uuid: service_id)/metadata
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | Userトークン |
metadata | - | plain | dict | メタデータのキーと値のペア 文字種:[a-zA-Z0-9./%_:- ] 文字長:255(キーと値共に) |
Response Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
metadata | - | plain | dict | メタデータ キーと値の辞書オブジェクト |
Request Json
{ "metadata" : { "key" : "value" } }
Normal response codes
200 - Success
Error response codes
400 - Bad Request
401 – Access Denied
404 – Not Found
Repeatable
No
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X PUT \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \ -d '{ "metadata" : { "key" : "value" } }' \ https://database-hosting.tyo1.conoha.io/v1/services/9d6441f6-c5a0-4dcf-a1a9-1a4d724e51fd/metadata
- RES
HTTP/1.1 200 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json { "metadata" : { "key" : "value" } }