Node client for the Rancher API
An API client is included in this package
const Rancher = require('rancher-client');
const client = new Rancher.Client({ url: 'https://try.rancher.com/v2-beta/projects/XXXXXXXX/', access_key: 'SoMeToKeN', secret_key: 'someSecRetToken' });
client.getContainer(containerId).then((container) => {
// gets the container for the provided container id
}).catch((err)=>{
console.error(' ERROR : ', err)
});
Creates a container
Gets information about a specific container
Updates a container
Stops a container
Starts a container
Restarts a container
Removes a container
Purges a container
Gets the container logs of a container
Creates a stack
Gets all stacks
Gets information about a specific stack
Gets the stack services of a stack
Removes a stack
Gets all ports
Gets all hosts
Gets information about a specific host
Deletes a host
Gets information about a specific registration token
Gets all services
Gets information about a specific service
Gets the service stats of a service
Stops a service
Starts a service
Restarts a service
Creates a volume
Gets information about a specific volume
Removes a volume
NOTE: These docs were written by a script