Hosting Database¶
/hosting-database¶
GET¶
JSON response
array: Hosting Database
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-database" | python -m json.tool
POST¶
Create a new database.
JSON request
|
string |
The hosting account ID for which to create the object. |
|
string |
The name for the database. |
|
array |
Array of database users which have access to this database. |
JSON response
object: Hosting Database
Sample
curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"account": "ac-1235",
"name": "myuser",
"users": ["user1", "user2"]
}
' \
"{{api_base_url}}/hosting-database" | python -m json.tool
/hosting-database/{id}¶
GET¶
JSON response
object: Hosting Database
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-database/{id}" | python -m json.tool
DELETE¶
Sample
curl \
--request DELETE \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-database/{id}" | python -m json.tool