1.0.1 • Published 8 years ago

apcera-ap-is v1.0.1

Weekly downloads
6
License
-
Repository
-
Last release
8 years ago

apcera-ap-is

ApceraApIs - JavaScript client for apcera-ap-is REST APIs used to manage an Apcera cluster and its resources. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-05-06T22:36:41.864Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install apcera-ap-is --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/apcera-ap-is then install it via:

npm install YOUR_USERNAME/apcera-ap-is --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var ApceraApIs = require('apcera-ap-is');

var defaultClient = ApceraApIs.ApiClient.default;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix['authorization'] = "Token"

var api = new ApceraApIs.DefaultApi()

var opts = { 
  'startTime': 3.4, // {Number} UNIX timestamp. If specified, only events that occurred on or after the specified time are returned in the response.
  'endTime': 3.4, // {Number} UNIX timestamp. If specified, only events that occurred on or before the specified time are returned in the response.
  'fqn': "fqn_example", // {String} If specified, only events on the resource specified by `fqn` are returned in the response. You can also specify an FQN segment, which may include wildcards for the resource type. For example:\n * `*::/` returns all audit logs for all resource types.\n * `job::/` returns all audit logs for Job resource types. \n * `job::/apcera` returns all audit logs for Job resource types in the `/apcera` namespace and its sub-namespaces. \n * `*::/apcera` returns all audit logs for all resource types in the `/apcera` namespace its sub-namespaces.
  'eventType': "eventType_example", // {String} If specified, only events of the specified type are returned in the response.
  'authorization': "authorization_example" // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.auditGet(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.kiso.io/v1

ClassMethodHTTP requestDescription
ApceraApIs.DefaultApiauditGetGET /auditReturns audit log items for the cluster.
ApceraApIs.InstancesApiinstanceManagersGetGET /instance_managersReturns a list of instance managers.
ApceraApIs.InstancesApiinstanceManagersUuidGetGET /instance_managers/{uuid}Returns details for the specified instance manager.
ApceraApIs.InstancesApiinstanceManagersUuidInstancesGetGET /instance_managers/{uuid}/instancesReturns a list of instances managed by the specified instance manager.
ApceraApIs.InstancesApiinstancesUuidSnapshotPostPOST /instances/{uuid}/snapshotCreates a snapshot of a capsule.
ApceraApIs.InstancesApitagsGetGET /tagsLists all tags on all instance managers in the cluster.
ApceraApIs.JobsApibindingsPostPOST /bindingsCreates a new binding between a job and a service, or between two jobs (a job link).
ApceraApIs.JobsApidockerJobCheckPOST /jobs/docker-job-checkChecks a Docker job before creation to see if it will be allowed by docker.allow policy.
ApceraApIs.JobsApidockerJobsPostPOST /jobs/dockerCreates a new job from a Docker image.
ApceraApIs.JobsApijobsGetGET /jobsList jobs.
ApceraApIs.JobsApijobsHealthGetGET /jobs/healthRetrieves health information for a job with a specific UUID.
ApceraApIs.JobsApijobsPostPOST /jobsCreates a new job.
ApceraApIs.JobsApijobsRoutesEndpointGetGET /jobs/routes/{endpoint}Returns a map of the specified endpoint to an array of job UUIDs that are assigned to the endpoint.
ApceraApIs.JobsApijobsRoutesGetGET /jobs/routesReturns a list of all route endpoints that each map to an array of job UUIDs assigned to the endpoint.
ApceraApIs.JobsApijobsUuidComplianceGetGET /jobs/{uuid}/complianceChecks the specified job for policy compliance.
ApceraApIs.JobsApijobsUuidDeleteDELETE /jobs/{uuid}Deletes the specified job.
ApceraApIs.JobsApijobsUuidFilesPathGetGET /jobs/{uuid}/files/{path}Returns information about an instance's underlying file system.
ApceraApIs.JobsApijobsUuidGetGET /jobs/{uuid}Returns details about the specified job.
ApceraApIs.JobsApijobsUuidInstancesGetGET /jobs/{uuid}/instancesReturns instances from the health manager for a given job UUID.
ApceraApIs.JobsApijobsUuidInstancesInstanceUuidDeleteDELETE /jobs/{uuid}/instances/{instance_uuid}Stop a given instance of a job.
ApceraApIs.JobsApijobsUuidLogsDrainsDrainUuidDeleteDELETE /jobs/{uuid}/logs/drains/{drain_uuid}Deletes a log drain from a job.
ApceraApIs.JobsApijobsUuidLogsDrainsGetGET /jobs/{uuid}/logs/drainsReturns all log drains for the specified job.
ApceraApIs.JobsApijobsUuidLogsDrainsPostPOST /jobs/{uuid}/logs/drainsCreates a log drain on the specified job.
ApceraApIs.JobsApijobsUuidLogsGetGET /jobs/{uuid}/logsReturns logs for the specified job.
ApceraApIs.JobsApijobsUuidPutPUT /jobs/{uuid}Updates a job.
ApceraApIs.JobsApijobsUuidTunnelGetGET /jobs/{uuid}/tunnelCreates a bi-directional tunnel with the job/instance UUID specified.
ApceraApIs.JobsApijobsUuidTunnelInstanceIdGetGET /jobs/{uuid}/tunnel/{instance_id}Creates a bi-directional tunnel with the job/instance UUID specified.
ApceraApIs.JobsApitasksUuidGetGET /tasks/{uuid}Returns a list of task events for a given task.
ApceraApIs.JobsApiunbindPostPOST /unbindRemoves a service binding from a job.
ApceraApIs.JobsApiunlinkPostPOST /unlinkRemoves a link between two jobs.
ApceraApIs.LogsApiauditLogsGetGET /audit_logsReturns audit log items for the cluster.
ApceraApIs.LogsApilogsChannelGetGET /logs/{channel}Streams logs for the specified channel.
ApceraApIs.MetricsApimetricsClusterGetGET /metrics/clusterReturns metrics data for the cluster.
ApceraApIs.MetricsApimetricsInstanceManagersGetGET /metrics/instance_managersReturns metrics for instance managers.
ApceraApIs.MetricsApimetricsJobsGetGET /metrics/jobsReturns job metrics.
ApceraApIs.MetricsApimetricsRouteCountersGetGET /metrics/route/countersReturns metrics for counters on the route.
ApceraApIs.MetricsApimetricsRouteTimersGetGET /metrics/route/timersReturns metrics for timers on the route.
ApceraApIs.PackagesApipackagesDependenciesPostPOST /packages/dependenciesReturns a list of packages that fulfill the specified dependency type and name for the specified namespace.
ApceraApIs.PackagesApipackagesGetGET /packagesReturns a list of packages on the cluster.
ApceraApIs.PackagesApipackagesPackageUuidResourcesResourceUuidPutPUT /packages/{package_uuid}/resources/{resource_uuid}Uploads a package resource for the specified package.
ApceraApIs.PackagesApipackagesPostPOST /packagesCreates a new package.
ApceraApIs.PackagesApipackagesResourcesUuidGetGET /packages/resources/{uuid}Downloads the specified package's binary resource.
ApceraApIs.PackagesApipackagesResourcesUuidPutPUT /packages/resources/{uuid}Uploads package resources for the specified package.
ApceraApIs.PackagesApipackagesUuidDeleteDELETE /packages/{uuid}Deletes the specified package.
ApceraApIs.PackagesApipackagesUuidGetGET /packages/{uuid}Returns the specified package.
ApceraApIs.PackagesApipackagesUuidPutPUT /packages/{uuid}Updates the specified package's properties.
ApceraApIs.ProvidersApiprovidersGetGET /providersReturns a list of providers defined on the cluster.
ApceraApIs.ProvidersApiprovidersPostPOST /providersCreates a new provider.
ApceraApIs.ProvidersApiprovidersUuidDeleteDELETE /providers/{uuid}Deletes the specified provider.
ApceraApIs.RulesApirulesGetGET /rulesLists all policy rules.
ApceraApIs.RulesApirulesPostPOST /rulesCreates a new semantic pipeline rule for governing a given provider's behavior.
ApceraApIs.RulesApirulesUuidDeleteDELETE /rules/{uuid}Deletes a policy event rule.
ApceraApIs.RulesApirulesUuidGetGET /rules/{uuid}Returns information about a rule that that controls the behavior of semantic pipelines.
ApceraApIs.ServicesAndBindingsApibindingsPostPOST /bindingsCreates a new binding between a job and a service, or between two jobs (a job link).
ApceraApIs.ServicesAndBindingsApiservicesGetGET /servicesLists available services.
ApceraApIs.ServicesAndBindingsApiservicesPostPOST /servicesCreates a new service.
ApceraApIs.ServicesAndBindingsApiservicesUuidDeleteDELETE /services/{uuid}Deletes the specified service.
ApceraApIs.ServicesAndBindingsApiunbindPostPOST /unbindRemoves a service binding from a job.
ApceraApIs.StagingPipelinesApistagingpipelinesGetGET /stagingpipelinesLists all staging pipelines
ApceraApIs.StagingPipelinesApistagingpipelinesPostPOST /stagingpipelinesCreates a new staging pipeline.
ApceraApIs.StagingPipelinesApistagingpipelinesUuidDeleteDELETE /stagingpipelines/{uuid}Deletes the specified staging pipeline.
ApceraApIs.StagingPipelinesApistagingpipelinesUuidGetGET /stagingpipelines/{uuid}Shows the specified staging pipeline.
ApceraApIs.StagingPipelinesApistagingpipelinesUuidPutPUT /stagingpipelines/{uuid}Updates the specified staging pipeline.
ApceraApIs.UtilitiesApiapcDownloadPlatformGetGET /apc/download/{platform}Downloads the APC utility.
ApceraApIs.UtilitiesApiapcVersionGetGET /apc/versionReturns the version of APC available for download.
ApceraApIs.UtilitiesApiinfoGetGET /infoReturns information about the API server.
ApceraApIs.UtilitiesApinamespaceDefaultGetGET /namespace/defaultReturns the default namespace for the currently logged-in user.
ApceraApIs.UtilitiesApiruntimesGetGET /runtimesLists supported workload runtimes.
ApceraApIs.UtilitiesApiversionGetGET /versionReturns the version number of the API Server.

Documentation for Models

Documentation for Authorization

authorization

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header
1.0.1

8 years ago

1.0.0

8 years ago