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 |
list[Account] user_get()
Return all Jamf Pro user acounts
Return all Jamf Pro user acounts.
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)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
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]
Session user_update_session_post(session=session)
Update values in the User's current session
Updates values in the user's current session.
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)
Name | Type | Description | Notes |
---|---|---|---|
session | Session | Values to update in user's current session. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
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]