Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwisClient needs BulkDelete support #43

Closed
tdanner opened this issue Oct 30, 2019 · 2 comments
Closed

SwisClient needs BulkDelete support #43

tdanner opened this issue Oct 30, 2019 · 2 comments
Assignees

Comments

@tdanner
Copy link
Contributor

tdanner commented Oct 30, 2019

The SWIS REST API supports deleting many objects in a single batch - see https://github.com/solarwinds/OrionSDK/wiki/REST#bulkdelete-request. But the Python client lacks a wrapper for this feature. The implementation is pretty simple:

def bulkdelete(self, uris):
	self._req("POST", "BulkDelete", {'uris': uris})

Noticed while investigating https://thwack.solarwinds.com/message/428474.

@superadm1n
Copy link
Contributor

I think this is a good idea. I have implemented it on my fork and tested it and works as expected. I added a sample script and issued a pull request.

@danjagnow
Copy link
Contributor

Resolved by #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants