Comments (2)
@jausmus-wayspring You need to instantiate the command object you're passing. Can you try:
logout_user = client.pro_api.send_mdm_command_preview(
management_ids=["<ID>"],
command=LogOutUserCommand()
)
Few things I will start on related to this issue:
- The Pro API user guide needs a section on MDM commands with use cases/examples.
- The
send_mdm_command_preview
method needs example usage in the doc string. This is something that is going to be added across all API methods. - The
LogOutUserCommand
model is missing from the Pro models doc page. I'll add it back in, and the models will include example usage like the API methods.
from jamf-pro-sdk-python.
Thanks @brysontyrrell, instantiating it resolved the issue.
from jamf-pro-sdk-python.
Related Issues (12)
- [Feature Request] Add a model for the classic API category record HOT 3
- [Feedback] Handling Jamf Pro Versioning in the SDK
- [Feedback] delete and update methods should return something on success HOT 1
- [Bug] Bizarre 409 error when updating a static group using a string value for the computer ID.
- [Feedback] src/jamf_pro_sdk/clients/pro_api/__init__.py may get unwieldy HOT 1
- [Bug] ApiClientCredentialsProvider -> AccessToken() -> Pedantic -> Scope HOT 2
- [Bug] branch main is not passing make test HOT 2
- [Feature Request] Option to parse XML from Classic API endpoints HOT 3
- [Bug] Can't call the ApiClientCredentialsProvider class on import HOT 2
- [Feature Request] Would be nice to pull all inventory based on email address. HOT 1
- [Bug] ClassicAdvancedComputerSearch error when scope includes 'member of' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jamf-pro-sdk-python.