Hosting Database

/hosting-database

GET

JSON response

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

hosting_account

string

The hosting account ID for which to create the object.

name

string

The name for the database.

users

array

Array of database users which have access to this database.

JSON response

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

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