Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Conversation

@thedodd
Copy link
Contributor

@thedodd thedodd commented Nov 17, 2015

Connected to #9.
Closes #9.

todo

  • get some tests in place to exercise the instance specific ACLs interface.
  • cut a new release of the client.

@thedodd
Copy link
Contributor Author

thedodd commented Nov 17, 2015

An example of using the ACLs interface from a specific instance:

(pyclient)Anthonys-MacBook-Pro:python-client adodd$ envipy
Python 2.7.10 (default, Jun 10 2015, 19:42:47)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import objectrocket

In [2]: client = objectrocket.Client()

In [3]: client.authenticate('test','testpass')

In [4]: es0 = client.instances.all()[0]

In [5]: es0.acls.all()
Out[5]: []

In [6]: es0.acls.create('0.0.0.0/24', 'TESTING', kibana=True)

In [7]:

creates the expected ACL:
screen shot 2015-11-16 at 9 14 44 pm

@thedodd thedodd self-assigned this Nov 17, 2015
@naemono
Copy link
Contributor

naemono commented Dec 8, 2015

Yeah @thedodd it makes perfect sense to have that accessible straight from the instance class....

+1

thedodd added a commit that referenced this pull request Dec 8, 2015
Implement the instance ACLs interface.
@thedodd thedodd merged commit 99d31c2 into master Dec 8, 2015
@thedodd thedodd deleted the instance-acls-interface branch December 8, 2015 21:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants