PyWorkspaceOneUEM
=========
PyWorkspaceOneUEM is a Python API library for VMware Workspace ONE UEM formerly known as AirWatch
Credit
A huge credit goes to John Richrads @jprichards and his project PyVMwareAirWatch from which a majority of the codebase was adopted.
Usage
example.py
from pyws1uem.client import WorkspaceOneAPI
wso = WorkspaceOneAPI(env='your_environment_url',
apikey='your_api_token_key',
username='username',
password='password')
# Get the OG ID for a specified Group ID
wso.groups.get_id_from_groupid(groupid='testog')
# Create a Child OG for a specified Parent OG Group ID (Type/Name optional)
wso.groups.create_child_og(parent_groupid='testog', groupid='newog', og_type='Container', name='newog')
# Get a Device ID via an alternate device identifier
wso.devices.get_id_by_alt_id(serialnumber='C09Z1TC8FJWT')
Supported Functionality
- Devices
- Search devices with specific criteria
- V1 Endpoint criteria > user, model, platform, lastseen, ownership, lgid(OrganizationGroup ID), compliantstatus, seensince
- V2 Endpoint criteria > user, model, platform, lastseen, ownership, lgid, compliance_status, seen_since
- V3 Endpoint criteria > user, model_identifier, device_type, last_seen, ownership, organization_group_uuid, compliance_status, seen_since
- Return the full device details by an Extensive Device Search
- Get Device Details by Alt ID (Macaddress, Udid, Serialnumber, ImeiNumber, EasId)
- Get Device ID by Alt ID (Macaddress, Udid, Serialnumber, ImeiNumber, EasId)
- Clear Device Passcode
- Get Device Details by Device ID
- Send Commands To devices via Device ID or by Alt ID
- Get Device FileVualt Recover Key
- Get Security Info Sample by Device ID or Alt ID
- Get Bulk Security Info Sample
- Switch device From Staging User to End User
- Get Network info Sample by Device ID
- Delete a Device by Device ID
- Delete a Device Custom Attribute by Device ID or Alternate ID
- Get a list of device enrollment tokens for a given Group ID
- Create a device enrollment token in a given OG
- Search devices with specific criteria
- Tags
- Add a Tag to a Device
- Remove a Tag from a Device
- Check if a tag is already applied
- Users
- Search for users by Username, Firstname, Lastname, Email, OrganizationGroupID, or Role
- Delete user
- Groups
- Get OG ID from Group ID
- Create Customer type OG (On-Prem only)
- Create Child OG
- Get UUID from OG ID
Requirements
Release files for pyws1uem 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyws1uem-0.0.10.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyws1uem-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.7 kB
Release files / pyws1uem-0.0.10.tar.gz
| Download URL | pyws1uem-0.0.10.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8817ac95432cb9fc751959f4fa38501f65e86a8cd25f8789124d109b559fcf8c
|
|
BLAKE2b-256 checksum How to use checksums |
4809a2a1a75f62391b8c8d807109b97414c713515a83143e0985786502be220e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
|
Release files / pyws1uem-0.0.10-py3-none-any.whl
| Download URL | pyws1uem-0.0.10-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a08bd3d41f621744a2c93d2240050de959a6657717f058fbb45a7604204a4d6d
|
|
BLAKE2b-256 checksum How to use checksums |
51eaeebd31cafb876fb8df99f1b1567e38652103273a209a812fe56428fb0d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
|