- Created by Unknown User (sraaum), last modified on Oct 21, 2015
API Essentials
API Key Generation
Autoscaling
Backups
- Add/Edit Note
- Convert Backup to Template
- Create Backup
- Delete Backup
- Get List of All VS Backups
- Get List of Incremental Backups
- Get List of Normal Backups
- Restore Disk from Backup
Credit
DNS
- Add DNS Record
- Add DNS Zone
- Delete DNS Record
- Delete DNS Zone
- Edit DNS Record
- Get DNS Zones
- Get List of DNS Zone Records
- Get List of Name Servers
Firewall Rules
Flex Cloud VM Control
Getting Started with Superb Flex Cloud
IP Addresses
Logs
Network Interfaces
Recipes
- Add Recipe
- Add Recipe Step
- Assign Recipe to Virtual Server
- Delete Recipe
- Delete Recipe Step
- Edit Recipe
- Edit Recipe Step
- Get All Recipes
- Get Recipe Steps
- Get Virtual Server Recipes
- Remove recipe from Virtual Server
- Run Recipe on Multiple Virtual Servers
- Swap Recipe Step Number
SSH Keys
Templates
Test Route
Troubleshooting API Issues
Viewing Activity Logs
Virtual Server Operating Systems
Virtual Servers
- Add Virtual Server
- Billing Statistics
- Build Virtual Server
- Delete Virtual Server
- Edit Virtual Server
- Get CPU Usage Statistics
- Get List of Virtual Machines
- Get statuses for All VMs
- Reboot Virtual Server
- Reset VS Password
- Shutdown Virtual Server
- Startup a Virtual Server
- Stop Virtual Server
VS Disks
POST /settings/ssh_keys
Adds SSH key to your account
Sections:
Request Parameters
key* - a SSH key in the following format: ssh-[type] [ascii-symbols allowed for base64 string] [user credentials]
Response Parameters
201 Status and SSH key object returned on success
JSON Request example
curl -X POST -u user:userpass <api_url>/users/:user_id/ssh_keys.json -H 'Accept: application/json' -H 'Content-type: application/json' -d'{"ssh_key":{"key":"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAqzsLk+oPP9Qxz0Xgpqoe9DqNV7Qe3+oig/o6Ubt30Yh+Zarf8NXctqqeamC1KrlMt12d0AWd38dZ0CU6Eru/2ciwzz2IB0MLrTyjfLCNe2CW64uNjhSS1SH6gSjJUYwHSi7jUBl0vlGtJ7jswBdhgaKkjk1vXH3YFLTHPuKU+pc= user@superb.test"}}'
JSON Response
[ { "ssh_key": { "created_at": "2015-10-16T22:48:04+00:00", "id": 4, "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAoBx7WYEVrzPxYdf77p2xSon2x9hfW/cVgi2+Q1ijpSyzb/oPHmE/3ae23k0oOGEt61xBLRrpig/oY8YHj7MZSZ/rY3n43iYrMpTVYkqB/f+Tww0t9ozdmWfo0kgItyOO6Psel2x28X0847XAZ++nKFKXxGRlXOf8+o3wXvIb7YWuTN/m1AP8Deh5RsY/Xqf6V0y7OMc3/ndVGaWrp9HxfPMLrZFK/cCBhwCkUlAyXbYg9W3kmBEKCrvU1yv9qJr4i61iB8KNeYKpce/CpKri5Ln4peQXtlj5fsLZsuBUKFJb7Dr5DxiVugE+B1RTD4JmBIXSwb7uFt7vwd6P107ztQ== rsa-key-20151016", "updated_at": "2015-10-16T22:48:04+00:00", "user_id": 123 } } ]
XML Request example
curl -X POST -u user:userpass <api_url>/users/:user_id/ssh_keys.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d'<ssh_key><key> ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAqzsLk+oPP9Qxz0Xgpqoe9DqNV7Qe3+oig/o6Ubt30Yh+Zarf8NXctqqeamC1KrlMt12d0AWd38dZ0CU6Eru/2ciwzz2IB0MLrTyjfLCNe2CW64uNjhSS1SH6gSjJUYwHSi7jUBl0vlGtJ7jswBdhgaKkjk1vXH3YFLTHPuKU+pc= user@superb.test</key></ssh_key>'
XML Response example
<?xml version="1.0" encoding="UTF-8"?> <ssh_key> <created_at type="datetime">2015-10-17T00:10:36+00:00</created_at> <id type="integer">6</id> <key>ssh-rsa 1AAAB3NzaC1yc2EAAAABJQAAAQEAoBx7WYEVrzPxYdf99p2xSon2x9hW/cVgi2+Q1ijpSyzb/oPHmE/3ae23k0oOGEt6zxBLRrpig/oY8YHj7MZSZ/rY3n43iYrMpTVYkqB/f+Tww0t9ozdmWfo0kgItyOO6Psel2x28X0847XAZ++nKFKXxGRlXOf8+o3wXvIb7YWuTN/m1AP8Deh5RsY/Xqf6V0y7OMc3/ndVGaWrp9HxfPMLrZFK/cCBhwCkUlAyXbYg9W3kmBEKCrvU1yv9qJr4i61iB8KNeYKpce/CpKri5Ln4peQXtlj5fsLZsuBUKFJb7Dr5DxiVugE+B1RTD4JmBIXSwb7uFt7vwd6P107ztQ== rsa-key-20151016</key> <updated_at type="datetime">2015-10-17T00:10:36+00:00</updated_at> <user_id type="integer">13</user_id> </ssh_key>
- No labels