Skip to content

Latest commit

 

History

History
130 lines (91 loc) · 3.87 KB

UserSessionPreviewApi.md

File metadata and controls

130 lines (91 loc) · 3.87 KB

jamf.UserSessionPreviewApi

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

Method HTTP request Description
user_get GET /user Return all Jamf Pro user acounts
user_update_session_post POST /user/updateSession Update values in the User's current session

user_get

list[Account] user_get()

Return all Jamf Pro user acounts

Return all Jamf Pro user acounts.

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.UserSessionPreviewApi(api_client)
    
    try:
        # Return all Jamf Pro user acounts 
        api_response = api_instance.user_get()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling UserSessionPreviewApi->user_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[Account]

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 List of all Jamf Pro user acounts. -

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

user_update_session_post

Session user_update_session_post(session=session)

Update values in the User's current session

Updates values in the user's current session.

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.UserSessionPreviewApi(api_client)
    session = jamf.Session() # Session | Values to update in user's current session. (optional)

    try:
        # Update values in the User's current session 
        api_response = api_instance.user_update_session_post(session=session)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling UserSessionPreviewApi->user_update_session_post: %s\n" % e)

Parameters

Name Type Description Notes
session Session Values to update in user's current session. [optional]

Return type

Session

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 The user's current session has been sucessfully updated. -

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