mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-08 12:27:47 +00:00
update layout for method examples
This commit is contained in:
@@ -58,22 +58,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'.
|
||||
|
||||
try:
|
||||
# Delete MFA method configuration
|
||||
|
||||
api_response = api_instance.delete_mfa_config(method)
|
||||
|
||||
results =MFAConfigurationApi(api_client).delete_mfa_config(method)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.delete_mfa_config(method)
|
||||
# results = MFAConfigurationApi(api_client).delete_mfa_config(method)
|
||||
print("The response of MFAConfigurationApi->delete_mfa_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -111,21 +114,24 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
|
||||
try:
|
||||
# Configuration of Duo MFA method
|
||||
|
||||
api_response = api_instance.get_mfa_duo_config()
|
||||
|
||||
results =MFAConfigurationApi(api_client).get_mfa_duo_config()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_mfa_duo_config()
|
||||
# results = MFAConfigurationApi(api_client).get_mfa_duo_config()
|
||||
print("The response of MFAConfigurationApi->get_mfa_duo_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -166,22 +172,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.kba_question import KbaQuestion
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional)
|
||||
|
||||
try:
|
||||
# Configuration of KBA MFA method
|
||||
|
||||
api_response = api_instance.get_mfa_kba_config()
|
||||
|
||||
results =MFAConfigurationApi(api_client).get_mfa_kba_config()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_mfa_kba_config(all_languages)
|
||||
# results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages)
|
||||
print("The response of MFAConfigurationApi->get_mfa_kba_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -219,21 +228,24 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
|
||||
try:
|
||||
# Configuration of Okta MFA method
|
||||
|
||||
api_response = api_instance.get_mfa_okta_config()
|
||||
|
||||
results =MFAConfigurationApi(api_client).get_mfa_okta_config()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_mfa_okta_config()
|
||||
# results = MFAConfigurationApi(api_client).get_mfa_okta_config()
|
||||
print("The response of MFAConfigurationApi->get_mfa_okta_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -274,10 +286,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
mfa_duo_config = {
|
||||
"accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y",
|
||||
"host" : "example.com",
|
||||
@@ -292,14 +308,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Set Duo MFA configuration
|
||||
Result = mfa_duo_config.from_json(mfa_duo_config)
|
||||
api_response = api_instance.set_mfa_duo_config(Result)
|
||||
|
||||
new_mfa_duo_config = MfaDuoConfig()
|
||||
new_mfa_duo_config.from_json(mfa_duo_config)
|
||||
results =MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.set_mfa_duo_config(Result)
|
||||
# results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config)
|
||||
print("The response of MFAConfigurationApi->set_mfa_duo_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -340,10 +356,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
mfa_okta_config = {
|
||||
"accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y",
|
||||
"host" : "example.com",
|
||||
@@ -354,14 +374,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Set Okta MFA configuration
|
||||
Result = mfa_okta_config.from_json(mfa_okta_config)
|
||||
api_response = api_instance.set_mfa_okta_config(Result)
|
||||
|
||||
new_mfa_okta_config = MfaOktaConfig()
|
||||
new_mfa_okta_config.from_json(mfa_okta_config)
|
||||
results =MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.set_mfa_okta_config(Result)
|
||||
# results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config)
|
||||
print("The response of MFAConfigurationApi->set_mfa_okta_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -402,11 +422,15 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.kba_answer_request_item import KbaAnswerRequestItem
|
||||
from sailpoint.beta.models.kba_answer_response_item import KbaAnswerResponseItem
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}] # List[KbaAnswerRequestItem] |
|
||||
kba_answer_request_item = {
|
||||
"answer" : "Your answer",
|
||||
@@ -416,14 +440,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Set MFA KBA configuration
|
||||
Result = kba_answer_request_item.from_json(kba_answer_request_item)
|
||||
api_response = api_instance.set_mfakba_config(Result)
|
||||
|
||||
new_kba_answer_request_item = KbaAnswerRequestItem()
|
||||
new_kba_answer_request_item.from_json(kba_answer_request_item)
|
||||
results =MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.set_mfakba_config(Result)
|
||||
# results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item)
|
||||
print("The response of MFAConfigurationApi->set_mfakba_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -464,22 +488,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.mfa_config_test_response import MfaConfigTestResponse
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'.
|
||||
|
||||
try:
|
||||
# MFA method's test configuration
|
||||
|
||||
api_response = api_instance.test_mfa_config(method)
|
||||
|
||||
results =MFAConfigurationApi(api_client).test_mfa_config(method)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.test_mfa_config(method)
|
||||
# results = MFAConfigurationApi(api_client).test_mfa_config(method)
|
||||
print("The response of MFAConfigurationApi->test_mfa_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user