All URIs are relative to http://localhost:10010/v2
Method | HTTP request | Description |
---|---|---|
createCompute | POST /compute | Creates new compute |
deleteCompute | DELETE /compute/{cnid} | Delete an existing compute |
detailCompute | GET /compute/{cnid} | Gets compute metadata |
listCompute | GET /compute | Returns list of compute resources |
InlineResponse20014 createCompute(body)
Creates new compute
Creates a new compute
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ComputeApi();
var body = new algorithmhub.Body3(); // Body3 | The compute parameters
apiInstance.createCompute(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | Body3 | The compute parameters |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse20014 deleteCompute(cnid)
Delete an existing compute
Delete an existing compute
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ComputeApi();
var cnid = "cnid_example"; // String | The compute id
apiInstance.deleteCompute(cnid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
cnid | String | The compute id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse20014 detailCompute(cnid)
Gets compute metadata
Gets compute metadata
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ComputeApi();
var cnid = "cnid_example"; // String | The compute id
apiInstance.detailCompute(cnid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
cnid | String | The compute id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
[InlineResponse20014] listCompute()
Returns list of compute resources
Returns a list of compute resources
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ComputeApi();
apiInstance.listCompute().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: Not defined