https://github.com/cgascoig/intersight-simple-go
A simple to use Go client for the Cisco Intersight API
https://github.com/cgascoig/intersight-simple-go
cisco go golang intersight intersight-api
Last synced: about 2 months ago
JSON representation
A simple to use Go client for the Cisco Intersight API
- Host: GitHub
- URL: https://github.com/cgascoig/intersight-simple-go
- Owner: cgascoig
- License: mit
- Created: 2022-09-29T00:20:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T00:08:33.000Z (almost 2 years ago)
- Last Synced: 2025-02-02T13:53:48.917Z (4 months ago)
- Topics: cisco, go, golang, intersight, intersight-api
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/cgascoig/intersight-simple-go/actions/workflows/ci.yml)
[](https://godoc.org/github.com/cgascoig/intersight-simple-go)
[](https://goreportcard.com/report/github.com/cgascoig/intersight-simple-go)This module provides a simple to use client for the Intersight API.
## Features
- Handles signature authentication and supports both v2 and v3 keys.
- Faster compile time
- Simple to use
- Automatic configuration using environment variables## Installation
```
go get github.com/cgascoig/intersight-simple-go
```## Usage
Below is a simple example Go program that shows how to use this module```
package mainimport (
"fmt"
"log""github.com/cgascoig/intersight-simple-go/intersight"
)func main() {
client, err := intersight.NewClient()
if err != nil {
log.Fatalf("Error creating client: %v", err)
}result, err := client.Get("/api/v1/ntp/Policies")
if err != nil {
log.Fatalf("Error in API call: %v", err)
}fmt.Printf("Result: \n%v", result)
}```