Code Monkey home page Code Monkey logo

smi-service-dell-server-inventory's Introduction

smi-service-dell-server-inventory

Connects via the IDRAC on a Dell server and collects a comprehensive inventory.

Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.

Purpose

The dell-server-inventory container is a stateless spring-boot microservice that exposes a REST API for the purpose of returning a comprehensive JSON formatted inventory of a Dell 11th generation and newer server.

The service can be called without a callback URL in order to run synchronously. If a callback URL is provided in the payload, the service will return immediately and post to the callback URL when the results are available.


How to Use

Startup

Standalone, with no configuration settings provided:

docker run --name service-server-inventory -p 0.0.0.0:46011:46011 -d rackhd/dell-server-inventory:latest

The service can also start up to bootstrap its configuration from consul. More information about registration with and using advanced configuration settings provided by a Consul K/V store can be found in the online help.

API Definitions

A swagger UI is provided by the microservice at http://<>:46011/swagger-ui.html

Syncronous API's
  • http://<>:46011/api/1.0/server/inventory/hardware
  • http://<>:46011/api/1.0/server/inventory/software
  • http://<>:46011/api/1.0/server/inventory/nics
  • http://<>:46011/api/1.0/server/inventory/summary
  • http://<>:46011/api/1.0/server/inventory/boot
  • http://<>:46011/api/1.0/server/inventory/bios
  • http://<>:46011/api/1.0/server/inventory/logs/get/SEL
  • http://<>:46011/api/1.0/server/inventory/logs/get/LC
Example Post (Without Callback)
http://<<ip>>:46011/api/1.0/server/inventory/hardware
{
  "address": "<<Target IDRAC IP>>",
  "password": "calvin",
  "userName": "root"
}
Asyncronous API's
  • http://<>:46011/api/1.0/server/inventory/callback
Example Post (With Callback)
http://<<ip>>:46011/api/1.0/server/inventory/callback
{
  "credential": {
    "address": "<<Target IDRAC IP>>",
    "password": "calvin",
    "userName": "root"
  },
  "callbackUri": "http://<<ip>>:<<port>>/your/callback/path",
  "type": "hardware"
}
  • supported callback types are {hardware, software, nics, summary, boot and bios}

Licensing

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Source code for this microservice is available in repositories at https://github.com/RackHD.

The microservice makes use of dependent Jar libraries that may be covered by other licenses. In order to comply with the requirements of applicable licenses, the source for dependent libraries used by this microservice is available for download at: https://bintray.com/rackhd/binary/download_file?file_path=smi-service-dell-server-inventory-dependency-sources-devel.zip

Additionally the binary and source jars for all dependent libraries are available for download on Maven Central.

RackHD is a Trademark of Dell EMC


Support

Slack Channel: codecommunity.slack.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.