Skip to content

Latest commit

 

History

History
130 lines (91 loc) · 4.08 KB

LdapPreviewApi.md

File metadata and controls

130 lines (91 loc) · 4.08 KB

jamf.LdapPreviewApi

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

Method HTTP request Description
ldap_groups_get GET /ldap/groups Retrieve the configured access groups that contain the text in the search param
ldap_servers_get GET /ldap/servers Retrieve all LDAP Servers including Cloud Identity Providers

ldap_groups_get

LdapGroupSearchResults ldap_groups_get(q=q)

Retrieve the configured access groups that contain the text in the search param

Retrieves the configured access groups that contain the text in the searchParam.

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.LdapPreviewApi(api_client)
    q = 'null' # str | Will perform a \"contains\" search on the names of access groups (optional) (default to 'null')

    try:
        # Retrieve the configured access groups that contain the text in the search param 
        api_response = api_instance.ldap_groups_get(q=q)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling LdapPreviewApi->ldap_groups_get: %s\n" % e)

Parameters

Name Type Description Notes
q str Will perform a "contains" search on the names of access groups [optional] [default to 'null']

Return type

LdapGroupSearchResults

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successful search. -

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

ldap_servers_get

list[LdapServer] ldap_servers_get()

Retrieve all LDAP Servers including Cloud Identity Providers

Retrieves all LDAP Servers including Cloud Identity Providers.

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.LdapPreviewApi(api_client)
    
    try:
        # Retrieve all LDAP Servers including Cloud Identity Providers 
        api_response = api_instance.ldap_servers_get()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling LdapPreviewApi->ldap_servers_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[LdapServer]

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successfully completed. -

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