All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| create_linked_object_definition | POST /api/v1/meta/schemas/user/linkedObjects | Create a Linked Object Definition |
| delete_linked_object_definition | DELETE /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName} | Delete a Linked Object Definition |
| get_linked_object_definition | GET /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName} | Retrieve a Linked Object Definition |
| list_linked_object_definitions | GET /api/v1/meta/schemas/user/linkedObjects | List all Linked Object Definitions |
LinkedObject create_linked_object_definition(linked_object)
Create a Linked Object Definition
Creates a linked object definition
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.linked_object import LinkedObject
from okta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://subdomain.okta.com
# See configuration.py for a list of all supported configuration parameters.
configuration = okta.Configuration(
host = "https://subdomain.okta.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiToken
configuration.api_key['apiToken'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiToken'] = 'Bearer'
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with okta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = okta.LinkedObjectApi(api_client)
linked_object = okta.LinkedObject() # LinkedObject |
try:
# Create a Linked Object Definition
api_response = api_instance.create_linked_object_definition(linked_object)
print("The response of LinkedObjectApi->create_linked_object_definition:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling LinkedObjectApi->create_linked_object_definition: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| linked_object | LinkedObject |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_linked_object_definition(linked_object_name)
Delete a Linked Object Definition
Deletes a linked object definition
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://subdomain.okta.com
# See configuration.py for a list of all supported configuration parameters.
configuration = okta.Configuration(
host = "https://subdomain.okta.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiToken
configuration.api_key['apiToken'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiToken'] = 'Bearer'
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with okta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = okta.LinkedObjectApi(api_client)
linked_object_name = 'linked_object_name_example' # str |
try:
# Delete a Linked Object Definition
api_instance.delete_linked_object_definition(linked_object_name)
except Exception as e:
print("Exception when calling LinkedObjectApi->delete_linked_object_definition: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| linked_object_name | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LinkedObject get_linked_object_definition(linked_object_name)
Retrieve a Linked Object Definition
Retrieves a linked object definition
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.linked_object import LinkedObject
from okta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://subdomain.okta.com
# See configuration.py for a list of all supported configuration parameters.
configuration = okta.Configuration(
host = "https://subdomain.okta.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiToken
configuration.api_key['apiToken'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiToken'] = 'Bearer'
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with okta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = okta.LinkedObjectApi(api_client)
linked_object_name = 'linked_object_name_example' # str |
try:
# Retrieve a Linked Object Definition
api_response = api_instance.get_linked_object_definition(linked_object_name)
print("The response of LinkedObjectApi->get_linked_object_definition:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling LinkedObjectApi->get_linked_object_definition: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| linked_object_name | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[LinkedObject] list_linked_object_definitions()
List all Linked Object Definitions
Lists all linked object definitions
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.linked_object import LinkedObject
from okta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://subdomain.okta.com
# See configuration.py for a list of all supported configuration parameters.
configuration = okta.Configuration(
host = "https://subdomain.okta.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiToken
configuration.api_key['apiToken'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiToken'] = 'Bearer'
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with okta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = okta.LinkedObjectApi(api_client)
try:
# List all Linked Object Definitions
api_response = api_instance.list_linked_object_definitions()
print("The response of LinkedObjectApi->list_linked_object_definitions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling LinkedObjectApi->list_linked_object_definitions: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]