All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| get_feature | GET /api/v1/features/{featureId} | Retrieve a Feature |
| list_feature_dependencies | GET /api/v1/features/{featureId}/dependencies | List all Dependencies |
| list_feature_dependents | GET /api/v1/features/{featureId}/dependents | List all Dependents |
| list_features | GET /api/v1/features | List all Features |
| update_feature_lifecycle | POST /api/v1/features/{featureId}/{lifecycle} | Update a Feature Lifecycle |
Feature get_feature(feature_id)
Retrieve a Feature
Retrieves a feature
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.feature import Feature
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.FeatureApi(api_client)
feature_id = 'R5HjqNn1pEqWGy48E9jg' # str | `id` of the Feature
try:
# Retrieve a Feature
api_response = api_instance.get_feature(feature_id)
print("The response of FeatureApi->get_feature:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FeatureApi->get_feature: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| feature_id | str | `id` of the Feature |
- 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[Feature] list_feature_dependencies(feature_id)
List all Dependencies
Lists all dependencies
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.feature import Feature
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.FeatureApi(api_client)
feature_id = 'R5HjqNn1pEqWGy48E9jg' # str | `id` of the Feature
try:
# List all Dependencies
api_response = api_instance.list_feature_dependencies(feature_id)
print("The response of FeatureApi->list_feature_dependencies:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FeatureApi->list_feature_dependencies: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| feature_id | str | `id` of the Feature |
- 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[Feature] list_feature_dependents(feature_id)
List all Dependents
Lists all dependents
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.feature import Feature
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.FeatureApi(api_client)
feature_id = 'R5HjqNn1pEqWGy48E9jg' # str | `id` of the Feature
try:
# List all Dependents
api_response = api_instance.list_feature_dependents(feature_id)
print("The response of FeatureApi->list_feature_dependents:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FeatureApi->list_feature_dependents: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| feature_id | str | `id` of the Feature |
- 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[Feature] list_features()
List all Features
Lists all features
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.feature import Feature
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.FeatureApi(api_client)
try:
# List all Features
api_response = api_instance.list_features()
print("The response of FeatureApi->list_features:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FeatureApi->list_features: %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]
Feature update_feature_lifecycle(feature_id, lifecycle, mode=mode)
Update a Feature Lifecycle
Updates a feature lifecycle
- Api Key Authentication (apiToken):
- OAuth Authentication (oauth2):
import okta
from okta.models.feature import Feature
from okta.models.feature_lifecycle import FeatureLifecycle
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.FeatureApi(api_client)
feature_id = 'R5HjqNn1pEqWGy48E9jg' # str | `id` of the Feature
lifecycle = okta.FeatureLifecycle() # FeatureLifecycle | Whether to `enable` or `disable` the feature
mode = 'mode_example' # str | (optional)
try:
# Update a Feature Lifecycle
api_response = api_instance.update_feature_lifecycle(feature_id, lifecycle, mode=mode)
print("The response of FeatureApi->update_feature_lifecycle:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FeatureApi->update_feature_lifecycle: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| feature_id | str | `id` of the Feature | |
| lifecycle | FeatureLifecycle | Whether to `enable` or `disable` the feature | |
| mode | str | [optional] |
- 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]