Skip to main content

Simple REST-client for Cisco Nexus Dashboard

Project description

simple_nexus_dashboard is a simplified REST Client for the Cisco Nexus Dashboard

Features

simple_nexus_dashboard has following features:
  • manage login

  • CRUD interface for all possible API URLs via .get, .post, .put

  • list_all function for getting all paged results

Installation

Install simple_nexus_dashboard by running:

pip3 install simple_nexus_dashboard

Examples

Get all Advisories for a specific Site Group

import getpass
from simple_nexus_dashboard import NexusDashboardClient
from pprint import pprint

nd=NexusDashboardClient("https://" + input("Nexus Dashboard IP:") , ssl_verify=False)

nd.login(input("Username:"),getpass.getpass("Password:"))
nd.nir.params["insightsGroupName"]=input("Site Groupname:")
nd.nir.params["aggr"]="mnemonicTitle"

for item in nd.nir.telemetry.advisories.details.list_all().get("entries",[]):
    pprint(item)

Contribute

Roadmap

Selected Roadmap items:
  • add more documentation

  • add some more examples

For documentation please refer to https://simple_nexus_dashboard.readthedocs.io/en/latest/

License

This project is licensed under the Apache License Version 2.0

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_nexus_dashboard-0.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file simple_nexus_dashboard-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_nexus_dashboard-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4289be1ebb98a98b7efe0e7d7fda643b7dfb2b7a77c2371cbdb5337b4e145333
MD5 c88b2f1e68ad2e7794cc49cff2fbe34e
BLAKE2b-256 691fec560814b1c499439568ab66b65cde57254ccc4a72708fa5acdf15954ff7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page