Helper Library for CA Service Desk Soap API
Project description
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Download-URL: https://github.com/jsarver/catools/tarball/v0.0.1-alpha
Description: Soap Helper Library for CA Service Desk
Features
Create and update any Object
Create and update tickets
Create and contacts
Usage:
#creating a client that interfaces with CA
client = login("hostname", "username", "password")
#Now you can perform several tasks
results = client.searchObjects("cnt","last_name='smith'",-1, ["last_name","first_name"])
#print list of users
for user in results.to_dict():
print(user['last_name'], user['first_name']
#Update an object
#query for users named smith and asking to only return the last_name and first_name attributes
results = client.searchObjects("cnt", "last_name='smith'",-1, ["last_name","first_name"])
#pick first user from search
user = results[0]
#change users first name to ned
c.updateObject(user['handle'], ["first_name","ned"], ["first_name","last_name"])
#list attributes for an object
print(client.listAttributes('cnt'))
Keywords: soap,ca service desk
Platform: UNKNOWN
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Download-URL: https://github.com/jsarver/catools/tarball/v0.0.1-alpha
Description: Soap Helper Library for CA Service Desk
Features
Create and update any Object
Create and update tickets
Create and contacts
Usage:
#creating a client that interfaces with CA
client = login("hostname", "username", "password")
#Now you can perform several tasks
results = client.searchObjects("cnt","last_name='smith'",-1, ["last_name","first_name"])
#print list of users
for user in results.to_dict():
print(user['last_name'], user['first_name']
#Update an object
#query for users named smith and asking to only return the last_name and first_name attributes
results = client.searchObjects("cnt", "last_name='smith'",-1, ["last_name","first_name"])
#pick first user from search
user = results[0]
#change users first name to ned
c.updateObject(user['handle'], ["first_name","ned"], ["first_name","last_name"])
#list attributes for an object
print(client.listAttributes('cnt'))
Keywords: soap,ca service desk
Platform: UNKNOWN
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file CATools-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: CATools-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d9fbfd9f3d1b8137acf726216449946605e3515824e7b43cee3e0a620fbb28 |
|
MD5 | 357b3ca6235d8c117c903601ced1643d |
|
BLAKE2b-256 | 14c4340757051803ad7da2a1e517bdb82963e8c4d29ae80a33e72ea973e2cfd7 |