Skip to content

Latest commit

 

History

History
438 lines (300 loc) · 13.1 KB

File metadata and controls

438 lines (300 loc) · 13.1 KB

okta.FeatureApi

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

get_feature

Feature get_feature(feature_id)

Retrieve a Feature

Retrieves a feature

Example

  • 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)

Parameters

Name Type Description Notes
feature_id str `id` of the Feature

Return type

Feature

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

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_dependencies

List[Feature] list_feature_dependencies(feature_id)

List all Dependencies

Lists all dependencies

Example

  • 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)

Parameters

Name Type Description Notes
feature_id str `id` of the Feature

Return type

List[Feature]

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

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_dependents

List[Feature] list_feature_dependents(feature_id)

List all Dependents

Lists all dependents

Example

  • 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)

Parameters

Name Type Description Notes
feature_id str `id` of the Feature

Return type

List[Feature]

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

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_features

List[Feature] list_features()

List all Features

Lists all features

Example

  • 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)

Parameters

This endpoint does not need any parameter.

Return type

List[Feature]

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

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]

update_feature_lifecycle

Feature update_feature_lifecycle(feature_id, lifecycle, mode=mode)

Update a Feature Lifecycle

Updates a feature lifecycle

Example

  • 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)

Parameters

Name Type Description Notes
feature_id str `id` of the Feature
lifecycle FeatureLifecycle Whether to `enable` or `disable` the feature
mode str [optional]

Return type

Feature

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

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]