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

Get Mobile Devices #39

Merged
merged 11 commits into from
Feb 14, 2024
Merged

Get Mobile Devices #39

merged 11 commits into from
Feb 14, 2024

Conversation

brysontyrrell
Copy link
Collaborator

This PR adds the get_mobile_device_inventory_v2 method to the Pro API Client.

from jamf_pro_sdk import JamfProClient, BasicAuthProvider
from jamf_pro_sdk.clients.pro_api.pagination import SortField

client = JamfProClient("instance.jamfcloud.com", BasicAuthProvider("user", "pass"))

response = client.pro_api.get_mobile_device_inventory_v2(
    sections=["CERTIFICATES"],
    page_size=1000,
    sort_expression=SortField("mdmProfileExpirationDate").desc()
)

This PR also starts the process of adding non-failing integration tests to main branch PRs.

@brysontyrrell brysontyrrell added the enhancement New feature or request label Feb 13, 2024
@brysontyrrell brysontyrrell merged commit 7b6f011 into main Feb 14, 2024
2 checks passed
@brysontyrrell brysontyrrell deleted the mobile-devices branch February 14, 2024 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants