Skip to content

Get Mobile Devices#39

Merged
brysontyrrell merged 11 commits intomainfrom
mobile-devices
Feb 14, 2024
Merged

Get Mobile Devices#39
brysontyrrell merged 11 commits intomainfrom
mobile-devices

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
@brysontyrrell brysontyrrell deleted the mobile-devices branch February 14, 2024 03:44
liquidz00 pushed a commit to liquidz00/jamf-pro-sdk-python that referenced this pull request Nov 23, 2025
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