HOME
MARKETPLACE
Forgot password
externalapi

Computenext API

Our asynchronous external API abstracts the complexity in discovering and utilizing heterogeneous cloud infrastructure. Search, discover, and utilize IaaS from a rapidly growing selection of public cloud providers.

Visit our blog for an introduction and guide to getting started.

View the Computenext API documentation here.

To get your API Access Keys –

  • 1. Sign-in to ComputeNext.com
  • 2. Go to your account page
  • 3. Select “API Access Keys” on the LHS. This should take you to the “MANAGE API KEYS” page.
  • 4. Click “Generate API Access Key”. This will allow you to set a description and expire date for your key.
  • 5. Copy your access key and secret key from the web page.

Once you have got your API Keys you can try accessing the ComputeNext API. One of the simplest requests is to list something –

>curl -i  http://cws.computenext.com/api/instance -u <apikey>:<apisec>
HTTP/1.1 200 OK 
Content-Length: 2 
Content-Type: text/html; charset=utf-8 
Server: Microsoft-IIS/7.5 
X-Powered-By: Express 
X-Powered-By: ASP.NET 
X-Powered-By: ARR/2.5 
X-Powered-By: ASP.NET 
Date: Thu, 19 Dec 2013 00:25:27 GMT 

[
{
"instanceId": "805346e2-39e5-4ec6-9d3d-02dca7ca38fc",
"created": "2013-12-19T09:17:58.268Z",
"updated": "2013-12-19T09:17:58.268Z",
"ownerId": "0c91e10a-0a12-494d-bd8d-baad37183734",
"resourceUri": "kp/hpcloud/nova/standard",
"resourceType": "kp",
"provider": "hpcloud",
"region": "nova",
"attributes": {
"providerInstanceId": "805346e2-39e5-4ec6-9d3d-02dca7ca38fc",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDHlXxlL08TIRTfFObCD9XXXuCoxMGaQ9zYVboL7fvV4VeWPTy/qkBtNdh5IzqpC07M+XEJaJ3IBkvo/ehMIiNzotZOZgRgJdiJoQCkdb0TDAvDyDWxjdCfVEajfSHO004MxaqWNY1fPHPcZBNTVleTB9TIeKqRzlN9z8nADkEAPQ== \n",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQDHlXxlL08TIRTfFObCD9XXXuCoxMGaQ9zYVboL7fvV4VeWPTy/\nqkBtNdh5IzqpC07M+XEJaJ3IBkvo/ehMIiNzotZOZgRgJdiJoQCkdb0TDAvDyDWx\njdCfVEajfSHO004MxaqWNY1fPHPcZBNTVleTB9TIeKqRzlN9z8nADkEAPQIDAQAB\nAoGAdQYuoTnDGMlN7pvXzjPww86K1gpAJo7iACsL4pDRGBCABcS0SQGvsxlea3D/\npTzPIJql78lasn0Wp2+xdGqT8+FXaDhR6a+yJEY0ZmRaivVcGnhdTLxzrtQ0/FG8\ndslK0gSvjgHRm2uYyp0ds6MexEuRipivRkpDzeIwYikhBYECQQDr16XzV957wtao\nC4qhgpfvgm1Y96KGruy09cwT0u7GlldZfq7KwtgnNITtTkCMHe4qiczyjPrSeoKw\nUfwA0+bhAkEA2KR7/Nlhrs12o6clItOyoF0F9GWhVVPCu1LxcQtK5WvTnjFIQNRy\nHcsYZvjfOIFDoyDTC084woAn3xrJ85iw3QJAKGT6RpDBSZ9YltXLO9ibX2mOgxN/\nIeRqJKCJAMg7H4Z2lZyOIap3zVdAgUjK43To6x5JHS4qc8yJ/9s694VT4QJBAIIv\nvg6BN3FLKStJK0jVfLdfj0+Br0TOc+wL+OlcxuI9PMsIhIno4LbEsGJY1hNnopSq\nCgj2z34ac1tgBtIrBMUCQGAdWIAzmCBKAUAilFYLckG7jgex/nK7lBZuEMsQ7+4+\nBDbj/ElDhvOo9kKM8AKpA/3wLC1UfDw14fkpQASiJok=\n-----END RSA PRIVATE KEY-----\n",
"keyFingerprint": "b4:5b:95:29:6e:49:f2:79:88:63:a6:95:db:79:56:8c",
"instanceStatus": "created",
"transientStatus": false
},
"attributeTimestamps": {
"instanceStatus": "2013-12-19T09:17:58.265Z"
},
"metadata": {
"name": "MyKeyPair",
"transactionId": "3a765a62-c2fa-412f-8675-6fbd6782dcf0"
},
"parameters": {
"kp_providerResourceId": "standard",
"zone": "nova"
}
},
{
"instanceId": "9cb7487e-824c-4a03-8de0-235a12e8c0c9",
"created": "2013-12-19T09:17:59.588Z",
"updated": "2013-12-19T09:18:01.320Z",
"ownerId": "0c91e10a-0a12-494d-bd8d-baad37183734",
"resourceUri": "sg/hpcloud/nova/standard",
"resourceType": "sg",
"provider": "hpcloud",
"region": "nova",
"providerResourceId": "standard",
"attributes": {
"providerInstanceId": 568597,
"instanceStatus": "created",
"transientStatus": false,
"rules": [
{
"protocol": "tcp",
"from-port": 22,
"to-port": 22,
"cidr-ip": [
"0.0.0.0/0"
],
"id": 414383,
"added": true
},
{
"protocol": "tcp",
"from-port": 3389,
"to-port": 3389,
"cidr-ip": [
"0.0.0.0/0"
],
"id": 414385,
"added": true
},
{
"protocol": "icmp",
"from-port": -1,
"to-port": -1,
"cidr-ip": [
"0.0.0.0/0"
],
"id": 414387,
"added": true
}
]
},
"attributeTimestamps": {
"instanceStatus": "2013-12-19T09:18:01.299Z",
"rules": "2013-12-19T09:18:01.300Z"
},
"metadata": {
"name": "MyDefault",
"transactionId": "3a765a62-c2fa-412f-8675-6fbd6782dcf0"
},
"parameters": {
"sg_providerResourceId": "standard",
"zone": "nova"
}
},
{
"instanceId": "b6caea2c-3f92-4833-b4ae-e33ea67571d9",
"created": "2013-12-19T09:18:04.673Z",
"updated": "2013-12-19T09:22:59.478Z",
"ownerId": "0c91e10a-0a12-494d-bd8d-baad37183734",
"resourceUri": "vm/hpcloud/nova/standard.xsmall",
"resourceType": "vm",
"provider": "hpcloud",
"region": "nova",
"providerResourceId": "Standard.xsmall",
"attributes": {
"providerInstanceId": 2711357,
"password": "ZBASeNQQaq79VXMp",
"instanceStatus": "deleted",
"transientStatus": false,
"privateIpAddress": "10.2.246.157",
"publicIpAddress": "15.185.244.53"
},
"attributeTimestamps": {
"password": "2013-12-19T09:19:01.983Z",
"instanceStatus": "2013-12-19T09:22:59.456Z",
"privateIpAddress": "2013-12-19T09:19:01.984Z",
"publicIpAddress": "2013-12-19T09:19:01.985Z"
},
"metadata": {
"name": "CNWFFA26_E88F_43A9_ABE6_94BFF21DA885",
"description": "HPCloud xSmall VM with Fedora 16 Server Nova",
"transactionId": "af678a28-d960-470c-b2b4-a0a8532242bd",
"originalWorkloadId": "14538a67-e35a-4e9b-835d-afa2c0f84dd1"
},
"parameters": {
"imageUri": "image/hpcloud/nova/ami-000011a5",
"keyPairId": "805346e2-39e5-4ec6-9d3d-02dca7ca38fc",
"securityGroupIds": [
"9cb7487e-824c-4a03-8de0-235a12e8c0c9"
],
"vm_providerResourceId": "Standard.xsmall",
"zone": "nova",
"cpuCount": "1",
"cpuSpeed": "1.2",
"localStorage": "30",
"ram": "1",
"username": "root",
"image_providerResourceId": "ami-000011a5",
"keyPairId_providerInstanceId": "805346e2-39e5-4ec6-9d3d-02dca7ca38fc",
"securityGroupIds_providerInstanceId": [
568597
]
}
}

 

This returns all the details pertaining to all the instances belonging to the user. Note that output from our API is always in JSON format.

The ComputeNext API is organized according to the different resource types, and also includes workloads and transactions.

  1. We welcome any feedback, questions or comments