mirror of https://github.com/vernonkeenan/lib
7.0 KiB
7.0 KiB
Devops.ClusterApi
All URIs are relative to http://devops.vernonkeenan.com:8080/v1
Method | HTTP request | Description |
---|---|---|
getCluster | GET /clusters/{clusterIdPath} | Get a single Cluster object |
getClusters | GET /clusters | Get a list Clusters |
getClustersObservable | GET /clusters/observable | Get Clusters in an observable array |
postClusters | POST /clusters | Create new Clusters |
putClusters | PUT /clusters | Update Clustera |
getCluster
Cluster getCluster(clusterIdPath)
Get a single Cluster object
Return a single Cluster object from datastore as a Singleton
Example
import Devops from 'devops';
let defaultClient = Devops.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new Devops.ClusterApi();
let clusterIdPath = "clusterIdPath_example"; // String | Taxnexus Record Id of a Cluster
apiInstance.getCluster(clusterIdPath, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterIdPath | String | Taxnexus Record Id of a Cluster |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getClusters
ClusterResponse getClusters(opts)
Get a list Clusters
Return a list of Cluster records from the datastore
Example
import Devops from 'devops';
let defaultClient = Devops.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new Devops.ClusterApi();
let opts = {
'clusterId': "clusterId_example", // String | Taxnexus Record Id of a Cluster
'companyId': "companyId_example", // String | Taxnexus Record Id of a Company
'limit': 789, // Number | How many objects to return at one time
'offset': 789 // Number | How many objects to skip? (default 0)
};
apiInstance.getClusters(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | String | Taxnexus Record Id of a Cluster | [optional] |
companyId | String | Taxnexus Record Id of a Company | [optional] |
limit | Number | How many objects to return at one time | [optional] |
offset | Number | How many objects to skip? (default 0) | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getClustersObservable
[Cluster] getClustersObservable()
Get Clusters in an observable array
Returns a Cluster retrieval in a observable array
Example
import Devops from 'devops';
let defaultClient = Devops.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new Devops.ClusterApi();
apiInstance.getClustersObservable((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
postClusters
ClusterResponse postClusters(clusterRequest)
Create new Clusters
Create Clusters in Taxnexus
Example
import Devops from 'devops';
let defaultClient = Devops.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new Devops.ClusterApi();
let clusterRequest = new Devops.ClusterRequest(); // ClusterRequest | An array of Cluster records
apiInstance.postClusters(clusterRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterRequest | ClusterRequest | An array of Cluster records |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
putClusters
ClusterResponse putClusters(clusterRequest)
Update Clustera
Update Cluster in Taxnexus
Example
import Devops from 'devops';
let defaultClient = Devops.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new Devops.ClusterApi();
let clusterRequest = new Devops.ClusterRequest(); // ClusterRequest | An array of Cluster records
apiInstance.putClusters(clusterRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterRequest | ClusterRequest | An array of Cluster records |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json