Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 2.13 KB

MdmApi.md

File metadata and controls

71 lines (49 loc) · 2.13 KB

jamf.MdmApi

All URIs are relative to https://tryitout.jamfcloud.com/uapi

Method HTTP request Description
preview_mdm_renew_profile_udid_post POST /preview/mdm/renew-profile/{udid} Renew MDM Profile

preview_mdm_renew_profile_udid_post

preview_mdm_renew_profile_udid_post(udid)

Renew MDM Profile

Renews the device's MDM Profile, including the device identity certificate within the MDM Profile.

Example

from __future__ import print_function
import time
import jamf
from jamf.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://tryitout.jamfcloud.com/uapi
# See configuration.py for a list of all supported configuration parameters.
configuration = jamf.Configuration(
    host = "https://tryitout.jamfcloud.com/uapi"
)


# Enter a context with an instance of the API client
with jamf.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = jamf.MdmApi(api_client)
    udid = 'udid_example' # str | udid of the device

    try:
        # Renew MDM Profile 
        api_instance.preview_mdm_renew_profile_udid_post(udid)
    except ApiException as e:
        print("Exception when calling MdmApi->preview_mdm_renew_profile_udid_post: %s\n" % e)

Parameters

Name Type Description Notes
udid str udid of the device

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
202 Renew Profile action was queued with APNs. -
403 Insufficient privileges to perform this action or Renew MDM Profile is not enabled. -

[Back to top] [Back to API list] [Back to Model list] [Back to README]