1.0.0 • Published 5 years ago

topological_inventory v1.0.0

Weekly downloads
2
License
Apache 2.0
Repository
-
Last release
5 years ago

topological_inventory

To be used by topology_inventory_ui and others.

TopologicalInventory - JavaScript client for topological_inventory Topological Inventory This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Build package: 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 topological_inventory --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --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.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

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

var TopologicalInventory = require('topological_inventory');

var defaultClient = TopologicalInventory.ApiClient.instance;

// Configure HTTP basic authorization: UserSecurity
var UserSecurity = defaultClient.authentications['UserSecurity'];
UserSecurity.username = 'YOUR USERNAME'
UserSecurity.password = 'YOUR PASSWORD'

var api = new TopologicalInventory.DefaultApi()

var body = new TopologicalInventory.ID(); // {ID} 

api.createAuthentication(body).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/r/insights/platform/topological-inventory/v0.0

ClassMethodHTTP requestDescription
TopologicalInventory.DefaultApicreateAuthenticationPOST /authenticationsCreate a new Authentication
TopologicalInventory.DefaultApicreateEndpointPOST /endpointsCreate a new Endpoint
TopologicalInventory.DefaultApicreateSourcePOST /sourcesCreate a new Source
TopologicalInventory.DefaultApicreateSourceTypePOST /source_typesCreate a new SourceType
TopologicalInventory.DefaultApideleteAuthenticationDELETE /authentications/{id}Delete an existing Authentication
TopologicalInventory.DefaultApideleteEndpointDELETE /endpoints/{id}Delete an existing Endpoint
TopologicalInventory.DefaultApideleteSourceDELETE /sources/{id}Delete an existing Source
TopologicalInventory.DefaultApilistAuthenticationsGET /authenticationsList Authentications
TopologicalInventory.DefaultApilistContainerGroupContainersGET /container_groups/{id}/containersList Containers for ContainerGroup
TopologicalInventory.DefaultApilistContainerGroupsGET /container_groupsList ContainerGroups
TopologicalInventory.DefaultApilistContainerImagesGET /container_imagesList ContainerImages
TopologicalInventory.DefaultApilistContainerNodeContainerGroupsGET /container_nodes/{id}/container_groupsList ContainerGroups for ContainerNode
TopologicalInventory.DefaultApilistContainerNodesGET /container_nodesList ContainerNodes
TopologicalInventory.DefaultApilistContainerProjectContainerGroupsGET /container_projects/{id}/container_groupsList ContainerGroups for ContainerProject
TopologicalInventory.DefaultApilistContainerProjectContainerTemplatesGET /container_projects/{id}/container_templatesList ContainerTemplates for ContainerProject
TopologicalInventory.DefaultApilistContainerProjectsGET /container_projectsList ContainerProjects
TopologicalInventory.DefaultApilistContainerTemplatesGET /container_templatesList ContainerTemplates
TopologicalInventory.DefaultApilistContainersGET /containersList Containers
TopologicalInventory.DefaultApilistEndpointsGET /endpointsList Endpoints
TopologicalInventory.DefaultApilistFlavorsGET /flavorsList Flavors
TopologicalInventory.DefaultApilistOrchestrationStacksGET /orchestration_stacksList OrchestrationStacks
TopologicalInventory.DefaultApilistServiceInstancesGET /service_instancesList ServiceInstances
TopologicalInventory.DefaultApilistServiceOfferingServiceInstancesGET /service_offerings/{id}/service_instancesList ServiceInstances for ServiceOffering
TopologicalInventory.DefaultApilistServiceOfferingServicePlansGET /service_offerings/{id}/service_plansList ServicePlans for ServiceOffering
TopologicalInventory.DefaultApilistServiceOfferingsGET /service_offeringsList ServiceOfferings
TopologicalInventory.DefaultApilistServicePlanServiceInstancesGET /service_plans/{id}/service_instancesList ServiceInstances for ServicePlan
TopologicalInventory.DefaultApilistServicePlansGET /service_plansList ServicePlans
TopologicalInventory.DefaultApilistSourceContainerGroupsGET /sources/{id}/container_groupsList ContainerGroups for Source
TopologicalInventory.DefaultApilistSourceContainerImagesGET /sources/{id}/container_imagesList ContainerImages for Source
TopologicalInventory.DefaultApilistSourceContainerNodesGET /sources/{id}/container_nodesList ContainerNodes for Source
TopologicalInventory.DefaultApilistSourceContainerProjectsGET /sources/{id}/container_projectsList ContainerProjects for Source
TopologicalInventory.DefaultApilistSourceContainerTemplatesGET /sources/{id}/container_templatesList ContainerTemplates for Source
TopologicalInventory.DefaultApilistSourceContainersGET /sources/{id}/containersList Containers for Source
TopologicalInventory.DefaultApilistSourceEndpointsGET /sources/{id}/endpointsList Endpoints for Source
TopologicalInventory.DefaultApilistSourceOrchestrationStacksGET /sources/{id}/orchestration_stacksList OrchestrationStacks for Source
TopologicalInventory.DefaultApilistSourceServiceInstancesGET /sources/{id}/service_instancesList ServiceInstances for Source
TopologicalInventory.DefaultApilistSourceServiceOfferingsGET /sources/{id}/service_offeringsList ServiceOfferings for Source
TopologicalInventory.DefaultApilistSourceServicePlansGET /sources/{id}/service_plansList ServicePlans for Source
TopologicalInventory.DefaultApilistSourceTypeSourcesGET /source_types/{id}/sourcesList Sources for SourceType
TopologicalInventory.DefaultApilistSourceTypesGET /source_typesList SourceTypes
TopologicalInventory.DefaultApilistSourceVmsGET /sources/{id}/vmsList Vms for Source
TopologicalInventory.DefaultApilistSourceVolumeTypesGET /sources/{id}/volume_typesList VolumeTypes for Source
TopologicalInventory.DefaultApilistSourceVolumesGET /sources/{id}/volumesList Volumes for Source
TopologicalInventory.DefaultApilistSourcesGET /sourcesList Sources
TopologicalInventory.DefaultApilistTasksGET /tasksList Tasks
TopologicalInventory.DefaultApilistVmVolumeAttachmentsGET /vms/{id}/volume_attachmentsList VolumeAttachments for Vm
TopologicalInventory.DefaultApilistVmVolumesGET /vms/{id}/volumesList Volumes for Vm
TopologicalInventory.DefaultApilistVmsGET /vmsList Vms
TopologicalInventory.DefaultApilistVolumeAttachmentsGET /volume_attachmentsList VolumeAttachments
TopologicalInventory.DefaultApilistVolumeTypesGET /volume_typesList VolumeTypes
TopologicalInventory.DefaultApilistVolumesGET /volumesList Volumes
TopologicalInventory.DefaultApiorderServicePlanPOST /service_plans/{id}/orderOrder an existing ServicePlan
TopologicalInventory.DefaultApireplaceAuthenticationPUT /authentications/{id}Replace an existing Authentication
TopologicalInventory.DefaultApireplaceEndpointPUT /endpoints/{id}Replace an existing Endpoint
TopologicalInventory.DefaultApireplaceSourcePUT /sources/{id}Replace an existing Source
TopologicalInventory.DefaultApishowAuthenticationGET /authentications/{id}Show an existing Authentication
TopologicalInventory.DefaultApishowContainerGET /containers/{id}Show an existing Container
TopologicalInventory.DefaultApishowContainerGroupGET /container_groups/{id}Show an existing ContainerGroup
TopologicalInventory.DefaultApishowContainerImageGET /container_images/{id}Show an existing ContainerImage
TopologicalInventory.DefaultApishowContainerNodeGET /container_nodes/{id}Show an existing ContainerNode
TopologicalInventory.DefaultApishowContainerProjectGET /container_projects/{id}Show an existing ContainerProject
TopologicalInventory.DefaultApishowContainerTemplateGET /container_templates/{id}Show an existing ContainerTemplate
TopologicalInventory.DefaultApishowEndpointGET /endpoints/{id}Show an existing Endpoint
TopologicalInventory.DefaultApishowFlavorGET /flavors/{id}Show an existing Flavor
TopologicalInventory.DefaultApishowOrchestrationStackGET /orchestration_stacks/{id}Show an existing OrchestrationStack
TopologicalInventory.DefaultApishowServiceInstanceGET /service_instances/{id}Show an existing ServiceInstance
TopologicalInventory.DefaultApishowServiceOfferingGET /service_offerings/{id}Show an existing ServiceOffering
TopologicalInventory.DefaultApishowServicePlanGET /service_plans/{id}Show an existing ServicePlan
TopologicalInventory.DefaultApishowSourceGET /sources/{id}Show an existing Source
TopologicalInventory.DefaultApishowSourceTypeGET /source_types/{id}Show an existing SourceType
TopologicalInventory.DefaultApishowTaskGET /tasks/{id}Show an existing Task
TopologicalInventory.DefaultApishowVmGET /vms/{id}Show an existing Vm
TopologicalInventory.DefaultApishowVolumeGET /volumes/{id}Show an existing Volume
TopologicalInventory.DefaultApishowVolumeAttachmentGET /volume_attachments/{id}Show an existing VolumeAttachment
TopologicalInventory.DefaultApishowVolumeTypeGET /volume_types/{id}Show an existing VolumeType
TopologicalInventory.DefaultApiupdateAuthenticationPATCH /authentications/{id}Update an existing Authentication
TopologicalInventory.DefaultApiupdateEndpointPATCH /endpoints/{id}Update an existing Endpoint
TopologicalInventory.DefaultApiupdateSourcePATCH /sources/{id}Update an existing Source

Documentation for Models

Documentation for Authorization

UserSecurity

  • Type: HTTP basic authentication