All URIs are relative to https://tryitout.jamfcloud.com/uapi
Method | HTTP request | Description |
---|---|---|
v1_ebooks_get | GET /v1/ebooks | Get Ebook object |
v1_ebooks_id_get | GET /v1/ebooks/{id} | Get specified Ebook object |
v1_ebooks_id_scope_get | GET /v1/ebooks/{id}/scope | Get specified scope of Ebook object |
EbookSearchResults v1_ebooks_get(page=page, page_size=page_size, sort=sort)
Get Ebook object
Gets ebook object
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.EbooksApi(api_client)
page = 0 # int | (optional) (default to 0)
page_size = 100 # int | (optional) (default to 100)
sort = ["name:asc"] # list[str] | Sorting criteria in the format: property:asc/desc. Default sort is name:asc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc (optional) (default to ["name:asc"])
try:
# Get Ebook object
api_response = api_instance.v1_ebooks_get(page=page, page_size=page_size, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling EbooksApi->v1_ebooks_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | [optional] [default to 0] | |
page_size | int | [optional] [default to 100] | |
sort | list[str] | Sorting criteria in the format: property:asc/desc. Default sort is name:asc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=date:desc,name:asc | [optional] [default to ["name:asc"]] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Ebook v1_ebooks_id_get(id)
Get specified Ebook object
Gets specified Ebook object
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.EbooksApi(api_client)
id = 'id_example' # str | instance id of ebook record
try:
# Get specified Ebook object
api_response = api_instance.v1_ebooks_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EbooksApi->v1_ebooks_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | instance id of ebook record |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Details about ebook were found for given id | - |
404 | Specified ebook object does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EbookScope v1_ebooks_id_scope_get(id)
Get specified scope of Ebook object
Gets specified scope of Ebook object
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.EbooksApi(api_client)
id = 'id_example' # str | instance id of ebook record
try:
# Get specified scope of Ebook object
api_response = api_instance.v1_ebooks_id_scope_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EbooksApi->v1_ebooks_id_scope_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | instance id of ebook record |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Details of scope for ebook were found | - |
404 | Specified scope for ebook object does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]