GET /v2/account
Returns an array of user account details.
{
"success":true,
"account":{
"id":"$user_id",
"name":"$user_name",
"email":"$user_email",
"phone":"$user_phone",
"notification": {
"email": "$notification_email",
"phone": "$notification_phone"
},
"e24files":
{
"s3":
{
"api_id":"$s3_api_key",
"secret_key":"$s3_secret_key"
}
},
"api":
[
{
"api_key":"$api_key",
"secret_key":"$api_secret_key"
},
{...}
],
"sshkeys":
[
{
"id":$ssh_id,
"name":"$ssh_name",
"fingerprint":"$ssh_fingerprint"
},
{...}
],
"groups":
[
{
"id":$group_id,
"name":"$group_name",
},
{...}
]
}
}
POST /v2/account/data
Changes the information on the account.
{
"first_name": "$first_name",
"last_name": "$last_name",
"phone": "$phone",
"password": "$password"
}
{
"success":true
}
PUT /v2/account/api
Creates and returns the key and secret_key
for the EC2 and e24cloud API.
{
"success":true,
"api":
{
"api_key":"$api_key",
"secret_key":"$api_secret_key"
}
}
POST /v2/account/api-new-secret-key
Generates and returns a new secret_key
for EC2 and e24cloud API.
{
"api_key":"$api_key",
}
{
"success":true,
"api":
{
"api_key":"$api_key",
"secret_key":"$api_secret_key"
}
}
DELETE /v2/account/api
Deletes the key and password for EC2 and e24cloud API.
{
"api_key":"$api_key",
}
{
"success":true
}
PUT /v2/account/sshkey
Adds or generates an SSH key.
{
"name": "$ssh_name",
"method": "$ssh_method",
"content": "$ssh_key",
}
upload
, then the API requires that the SSH key be specified in this field.{
"success":true,
"sshkeys":
{
"id":$ssh_id,
"name":"$ssh_name",
"fingerprint":"$ssh_fingerprint"
}
}
DELETE /v2/account/$SSH_ID/sshkey
Deletes the SSH key with the given $SSH_ID
.
{
"success":true
}
POST /v2/account/files-new-secret-key
Generates and returns a new secret-key
for the e24files API, compatible with S3.
{
"api_key":"$api_key"
}
{
"success":true,
"e24files":
{
"s3":
{
"api_id":"$s3_api_key",
"secret_key":"$s3_secret_key"
}
}
}