Skip to content

halm90/pyopsman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyopsman

Copyright 2019

Licensed under the GNU General Purpose License.

Python library for accessing opsman.

Class objects are instantiated which access the API as methods, masking the REST interface.

Architecture heavily borrows from cloudianapi by Romero Galiza Jr.

For opsman API documentation: https://docs.pivotal.io/pivotalcf/2-2/opsman-api (later versions may be available at the same site).

Usage

Sample use:

from pyopsman.client import PyOpsmanClient

client = PyOpsmanClient("http://foo/bar", "me", "passwd"[, port=42])

try:
    client.uaa.expiration()
except Exception as exn:
    print("uaa expiration request exception: {}".format(exn))

TODO

  • Add header capability to request
  • Get token, add to header
  • Add (empty) bodies for major command groups (as in UAA)
  • Add specific major commands to command groups
  • Unit tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages