All URIs are relative to http://localhost:10010/v2
Method | HTTP request | Description |
---|---|---|
createCluster | POST /cluster | Creates new cluster |
deleteCluster | DELETE /cluster/{cid} | Delete an existing cluster |
detailCluster | GET /cluster/{cid} | Gets cluster metadata |
listClusters | GET /cluster | Returns list of cluster resources |
InlineResponse20015 createCluster(body)
Creates new cluster
Creates a new cluster
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ClusterApi();
var body = new algorithmhub.Body4(); // Body4 | The cluster parameters
apiInstance.createCluster(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | Body4 | The cluster parameters |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse20015 deleteCluster(cid)
Delete an existing cluster
Delete an existing cluster
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ClusterApi();
var cid = "cid_example"; // String | The cluster id
apiInstance.deleteCluster(cid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
cid | String | The cluster id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse20015 detailCluster(cid)
Gets cluster metadata
Gets cluster metadata
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ClusterApi();
var cid = "cid_example"; // String | The cluster id
apiInstance.detailCluster(cid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
cid | String | The cluster id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
[InlineResponse20015] listClusters()
Returns list of cluster resources
Returns a list of cluster resources
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ClusterApi();
apiInstance.listClusters().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