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:
@@ -70,19 +70,22 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID
|
||||
|
||||
try:
|
||||
# Cancel Workflow Execution by ID
|
||||
|
||||
api_instance.cancel_workflow_execution(id)
|
||||
|
||||
WorkflowsApi(api_client).cancel_workflow_execution(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_instance.cancel_workflow_execution(id)
|
||||
except Exception as e:
|
||||
# WorkflowsApi(api_client).cancel_workflow_execution(id)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -123,23 +126,27 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.create_workflow_request import CreateWorkflowRequest
|
||||
from sailpoint.beta.models.workflow import Workflow
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
create_workflow_request = {name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}} # CreateWorkflowRequest |
|
||||
|
||||
try:
|
||||
# Create Workflow
|
||||
Result = create_workflow_request.from_json(create_workflow_request)
|
||||
api_response = api_instance.create_workflow(Result)
|
||||
|
||||
new_create_workflow_request = CreateWorkflowRequest()
|
||||
new_create_workflow_request.from_json(create_workflow_request)
|
||||
results =WorkflowsApi(api_client).create_workflow(new_create_workflow_request)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.create_workflow(Result)
|
||||
# results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request)
|
||||
print("The response of WorkflowsApi->create_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -180,19 +187,22 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow
|
||||
|
||||
try:
|
||||
# Delete Workflow By Id
|
||||
|
||||
api_instance.delete_workflow(id)
|
||||
|
||||
WorkflowsApi(api_client).delete_workflow(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_instance.delete_workflow(id)
|
||||
except Exception as e:
|
||||
# WorkflowsApi(api_client).delete_workflow(id)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -233,22 +243,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow import Workflow
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow
|
||||
|
||||
try:
|
||||
# Get Workflow By Id
|
||||
|
||||
api_response = api_instance.get_workflow(id)
|
||||
|
||||
results =WorkflowsApi(api_client).get_workflow(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_workflow(id)
|
||||
# results = WorkflowsApi(api_client).get_workflow(id)
|
||||
print("The response of WorkflowsApi->get_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -290,21 +303,24 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID.
|
||||
|
||||
try:
|
||||
# Get Workflow Execution
|
||||
|
||||
api_response = api_instance.get_workflow_execution(id)
|
||||
|
||||
results =WorkflowsApi(api_client).get_workflow_execution(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_workflow_execution(id)
|
||||
# results = WorkflowsApi(api_client).get_workflow_execution(id)
|
||||
print("The response of WorkflowsApi->get_workflow_execution:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -346,22 +362,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_execution_event import WorkflowExecutionEvent
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution
|
||||
|
||||
try:
|
||||
# Get Workflow Execution History
|
||||
|
||||
api_response = api_instance.get_workflow_execution_history(id)
|
||||
|
||||
results =WorkflowsApi(api_client).get_workflow_execution_history(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_workflow_execution_history(id)
|
||||
# results = WorkflowsApi(api_client).get_workflow_execution_history(id)
|
||||
print("The response of WorkflowsApi->get_workflow_execution_history:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -417,10 +436,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_execution import WorkflowExecution
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID.
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
|
||||
@@ -430,13 +453,12 @@ from pprint import pprint
|
||||
try:
|
||||
# List Workflow Executions
|
||||
|
||||
api_response = api_instance.get_workflow_executions(id, )
|
||||
|
||||
results =WorkflowsApi(api_client).get_workflow_executions(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_workflow_executions(id, limit, offset, count, filters)
|
||||
# results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters)
|
||||
print("The response of WorkflowsApi->get_workflow_executions:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -478,23 +500,26 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
|
||||
|
||||
try:
|
||||
# List Complete Workflow Library
|
||||
|
||||
api_response = api_instance.list_complete_workflow_library()
|
||||
|
||||
results =WorkflowsApi(api_client).list_complete_workflow_library()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_complete_workflow_library(limit, offset)
|
||||
# results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset)
|
||||
print("The response of WorkflowsApi->list_complete_workflow_library:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -537,10 +562,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_library_action import WorkflowLibraryAction
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
|
||||
filters = 'id eq \"sp:create-campaign\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional)
|
||||
@@ -548,13 +577,12 @@ from pprint import pprint
|
||||
try:
|
||||
# List Workflow Library Actions
|
||||
|
||||
api_response = api_instance.list_workflow_library_actions()
|
||||
|
||||
results =WorkflowsApi(api_client).list_workflow_library_actions()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_workflow_library_actions(limit, offset, filters)
|
||||
# results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters)
|
||||
print("The response of WorkflowsApi->list_workflow_library_actions:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -592,21 +620,24 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_library_operator import WorkflowLibraryOperator
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
|
||||
try:
|
||||
# List Workflow Library Operators
|
||||
|
||||
api_response = api_instance.list_workflow_library_operators()
|
||||
|
||||
results =WorkflowsApi(api_client).list_workflow_library_operators()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_workflow_library_operators()
|
||||
# results = WorkflowsApi(api_client).list_workflow_library_operators()
|
||||
print("The response of WorkflowsApi->list_workflow_library_operators:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -649,10 +680,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_library_trigger import WorkflowLibraryTrigger
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
|
||||
filters = 'id eq \"idn:identity-attributes-changed\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional)
|
||||
@@ -660,13 +695,12 @@ from pprint import pprint
|
||||
try:
|
||||
# List Workflow Library Triggers
|
||||
|
||||
api_response = api_instance.list_workflow_library_triggers()
|
||||
|
||||
results =WorkflowsApi(api_client).list_workflow_library_triggers()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_workflow_library_triggers(limit, offset, filters)
|
||||
# results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters)
|
||||
print("The response of WorkflowsApi->list_workflow_library_triggers:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -704,21 +738,24 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow import Workflow
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
|
||||
try:
|
||||
# List Workflows
|
||||
|
||||
api_response = api_instance.list_workflows()
|
||||
|
||||
results =WorkflowsApi(api_client).list_workflows()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_workflows()
|
||||
# results = WorkflowsApi(api_client).list_workflows()
|
||||
print("The response of WorkflowsApi->list_workflows:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -760,11 +797,15 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.json_patch_operation import JsonPatchOperation
|
||||
from sailpoint.beta.models.workflow import Workflow
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow
|
||||
[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}] # List[JsonPatchOperation] |
|
||||
json_patch_operation = {
|
||||
@@ -776,14 +817,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Patch Workflow
|
||||
Result = json_patch_operation.from_json(json_patch_operation)
|
||||
api_response = api_instance.patch_workflow(id, Result)
|
||||
|
||||
new_json_patch_operation = JsonPatchOperation()
|
||||
new_json_patch_operation.from_json(json_patch_operation)
|
||||
results =WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.patch_workflow(id, Result)
|
||||
# results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation)
|
||||
print("The response of WorkflowsApi->patch_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -825,24 +866,27 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.post_external_execute_workflow200_response import PostExternalExecuteWorkflow200Response
|
||||
from sailpoint.beta.models.post_external_execute_workflow_request import PostExternalExecuteWorkflowRequest
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow
|
||||
post_external_execute_workflow_request = sailpoint.beta.PostExternalExecuteWorkflowRequest() # PostExternalExecuteWorkflowRequest | (optional)
|
||||
|
||||
try:
|
||||
# Execute Workflow via External Trigger
|
||||
|
||||
api_response = api_instance.post_external_execute_workflow(id, )
|
||||
|
||||
results =WorkflowsApi(api_client).post_external_execute_workflow(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.post_external_execute_workflow(id, Result)
|
||||
# results = WorkflowsApi(api_client).post_external_execute_workflow(id, new_post_external_execute_workflow_request)
|
||||
print("The response of WorkflowsApi->post_external_execute_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->post_external_execute_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -883,22 +927,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow_o_auth_client import WorkflowOAuthClient
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow
|
||||
|
||||
try:
|
||||
# Generate External Trigger OAuth Client
|
||||
|
||||
api_response = api_instance.post_workflow_external_trigger(id)
|
||||
|
||||
results =WorkflowsApi(api_client).post_workflow_external_trigger(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.post_workflow_external_trigger(id)
|
||||
# results = WorkflowsApi(api_client).post_workflow_external_trigger(id)
|
||||
print("The response of WorkflowsApi->post_workflow_external_trigger:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->post_workflow_external_trigger: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -940,24 +987,27 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response
|
||||
from sailpoint.beta.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow
|
||||
test_external_execute_workflow_request = sailpoint.beta.TestExternalExecuteWorkflowRequest() # TestExternalExecuteWorkflowRequest | (optional)
|
||||
|
||||
try:
|
||||
# Test Workflow via External Trigger
|
||||
|
||||
api_response = api_instance.test_external_execute_workflow(id, )
|
||||
|
||||
results =WorkflowsApi(api_client).test_external_execute_workflow(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.test_external_execute_workflow(id, Result)
|
||||
# results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request)
|
||||
print("The response of WorkflowsApi->test_external_execute_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1001,24 +1051,28 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.test_workflow200_response import TestWorkflow200Response
|
||||
from sailpoint.beta.models.test_workflow_request import TestWorkflowRequest
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow
|
||||
test_workflow_request = {input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}} # TestWorkflowRequest |
|
||||
|
||||
try:
|
||||
# Test Workflow By Id
|
||||
Result = test_workflow_request.from_json(test_workflow_request)
|
||||
api_response = api_instance.test_workflow(id, Result)
|
||||
|
||||
new_test_workflow_request = TestWorkflowRequest()
|
||||
new_test_workflow_request.from_json(test_workflow_request)
|
||||
results =WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.test_workflow(id, Result)
|
||||
# results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request)
|
||||
print("The response of WorkflowsApi->test_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1060,11 +1114,15 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.workflows_api import WorkflowsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.workflow import Workflow
|
||||
from sailpoint.beta.models.workflow_body import WorkflowBody
|
||||
from sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow
|
||||
workflow_body = {
|
||||
"owner" : {
|
||||
@@ -1107,14 +1165,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Update Workflow
|
||||
Result = workflow_body.from_json(workflow_body)
|
||||
api_response = api_instance.update_workflow(id, Result)
|
||||
|
||||
new_workflow_body = WorkflowBody()
|
||||
new_workflow_body.from_json(workflow_body)
|
||||
results =WorkflowsApi(api_client).update_workflow(id, new_workflow_body)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.update_workflow(id, Result)
|
||||
# results = WorkflowsApi(api_client).update_workflow(id, new_workflow_body)
|
||||
print("The response of WorkflowsApi->update_workflow:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling WorkflowsApi->update_workflow: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user