Deprecation Notice - RunCloud API Beta is deprecated effective 31 May 2019. New API will be released and it's not backward compatible.

Deployment Key

List users

Arguments
pageoptionalPage number of the resources
usernameoptionalSearch string for users you wanted to search
A GET request to this path will gives out System User model data.

GET /servers/<server.id>/deploymentkey

HTTP Request
GET https://manage.runcloud.io/base-api/servers/<server.id>/deploymentkey
Request
curl -X GET "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/deploymentkey?page=1" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
Response
{
	"data": [
		{
			"id": "g704AYp0lmNo",
			"username": "aisyah",
			"sshPublic": null,
			"deleteable": true,
			"_links": {
				"generateDeploymentKey": {
					"method": "post",
					"link": "/api/servers/yO4VAbX2BkNz/deploymentkey/g704AYp0lmNo/generate"
				},
				"update": {
					"method": "patch",
					"link": "/api/servers/yO4VAbX2BkNz/users/g704AYp0lmNo/update"
				},
				"delete": {
					"method": "delete",
					"link": "/api/servers/yO4VAbX2BkNz/users/g704AYp0lmNo/destroy"
				}
			}
		},
		{
			"id": "LR6YA0XA71P8",
			"username": "runcloud",
			"sshPublic": "ssh-rsa <public key>",
			"deleteable": false,
			"_links": {
				"generateDeploymentKey": {
					"method": "post",
					"link": "/api/servers/yO4VAbX2BkNz/deploymentkey/LR6YA0XA71P8/generate"
				},
				"update": {
					"method": "patch",
					"link": "/api/servers/yO4VAbX2BkNz/users/LR6YA0XA71P8/update"
				},
				"delete": {
					"method": "delete",
					"link": "/api/servers/yO4VAbX2BkNz/users/LR6YA0XA71P8/destroy"
				}
			}
		}
	],
	"meta": {
		"pagination": {
			"total": 2,
			"count": 2,
			"per_page": 20,
			"current_page": 1,
			"total_pages": 1,
			"links": []
		}
	}
}