Openminds Sock API
List Accounts
Returns a list of your accounts.
URL
/accounts
Method
GET
Data parameters
Required
user_token=[string]
client_token=[string]
Sample usage
curl -X GET https://sock.openminds.be/api/v1/accounts -d user_token=1234 -d client_token=5678
Sample response
[
{
"applications": [
{
"account_id": 67,
"aliases": [],
"created_at": "2015-05-20 14:26:07 +0200",
"id": 67,
"name": "production"
}
],
"created_at": "2015-05-20 14:26:06 +0200",
"databases": [],
"ftp_users": [],
"id": 67,
"name": "testclientsharedphp",
"ssh_keys": [],
"virtual_server_id": 2
},
{
"applications": [
{
"account_id": 68,
"aliases": [],
"created_at": "2015-05-20 14:26:07 +0200",
"id": 68,
"name": "production"
}
],
"created_at": "2015-05-20 14:26:07 +0200",
"databases": [
{
"account_id": 68,
"database_grants": [
{
"access_level": "read-write",
"login": "db_testcli_001"
}
],
"hosts": [
"pro-010.test_api.openminds.be",
"chroom.openminds.be",
"service-002.openminds.be"
],
"id": 1,
"name": "db_testcli_001"
},
{
"account_id": 68,
"database_grants": [
{
"access_level": "read-write",
"login": "db_testcli_002"
},
{
"access_level": "read",
"login": "read_only_login"
}
],
"hosts": [
"pro-010.test_api.openminds.be",
"chroom.openminds.be",
"service-002.openminds.be"
],
"id": 2,
"name": "db_testcli_002"
}
],
"ftp_users": [
{
"account_id": 68,
"directory": "",
"host": "pro-010.test_api.openminds.be",
"id": 1,
"user": "ftp-testclientsharedruby"
}
],
"id": 68,
"name": "testclientsharedruby",
"ssh_keys": [],
"virtual_server_id": 3
}
]