Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 2.29 KB

PatchPolicyLogsPreviewApi.md

File metadata and controls

73 lines (51 loc) · 2.29 KB

jamf.PatchPolicyLogsPreviewApi

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

Method HTTP request Description
patch_patch_policies_id_logs_get GET /patch/patch-policies/{id}/logs Return the Patch Policy Attempt details

patch_patch_policies_id_logs_get

list[PatchPolicyAttempt] patch_patch_policies_id_logs_get(id, device_id=device_id)

Return the Patch Policy Attempt details

Returns the patch policy attempt details

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.PatchPolicyLogsPreviewApi(api_client)
    id = 56 # int | patch policy id
device_id = 56 # int | device id (optional)

    try:
        # Return the Patch Policy Attempt details 
        api_response = api_instance.patch_patch_policies_id_logs_get(id, device_id=device_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling PatchPolicyLogsPreviewApi->patch_patch_policies_id_logs_get: %s\n" % e)

Parameters

Name Type Description Notes
id int patch policy id
device_id int device id [optional]

Return type

list[PatchPolicyAttempt]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Patch Policy Attempt Details -

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