Skip to main content

sailpoint.jit_activations.JITActivationsApi

Use this API to start and manage Just-In-Time (JIT) Privileged activation workflows for entitlement connections.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
start-activate-workflow-v1POST /jit-activations/v1/activateStart JIT activation workflow
start-deactivate-workflow-v1POST /jit-activations/v1/deactivateDeactivate JIT activation workflow
start-extend-workflow-v1POST /jit-activations/v1/extendExtend JIT activation workflow

start-activate-workflow-v1

Start JIT activation workflow Starts a JIT Privileged (JIT P) activation workflow for the given entitlement connection and duration. The service performs quick validation; the workflow performs additional validation.

The response is returned with HTTP 202 Accepted while the workflow initializes.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyjitactivationactivaterequestJitactivationactivaterequestTrue

Return type

Jitactivationactivateresponse

Responses

CodeDescriptionData TypeResponse headers
202Accepted. The activation workflow was accepted and is running.Jitactivationactivateresponse-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.StartActivateWorkflowV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.StartActivateWorkflowV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

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

Example

from sailpoint.jit_activations.api.jit_activations_api import JITActivationsApi
from sailpoint.jit_activations.api_client import ApiClient
from sailpoint.jit_activations.models.jitactivationactivaterequest import Jitactivationactivaterequest
from sailpoint.jit_activations.models.jitactivationactivateresponse import Jitactivationactivateresponse
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
jitactivationactivaterequest = '''sailpoint.jit_activations.Jitactivationactivaterequest()''' # Jitactivationactivaterequest |

try:
# Start JIT activation workflow
new_jitactivationactivaterequest = Jitactivationactivaterequest.from_json(jitactivationactivaterequest)
results = JITActivationsApi(api_client).start_activate_workflow_v1(jitactivationactivaterequest=new_jitactivationactivaterequest)
# Below is a request that includes all optional parameters
# results = JITActivationsApi(api_client).start_activate_workflow_v1(new_jitactivationactivaterequest)
print("The response of JITActivationsApi->start_activate_workflow_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling JITActivationsApi->start_activate_workflow_v1: %s\n" % e)

[Back to top]

start-deactivate-workflow-v1

Deactivate JIT activation workflow Sends a signal to a running JIT Privileged (JIT P) activation workflow to deactivate.

This request cannot be applied to a workflow that does not exist or whose execution has already completed. The client receives an error response in those cases.

The response is returned with HTTP 202 Accepted after the signal is sent.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyjitactivationdeactivaterequestJitactivationdeactivaterequestTrue

Return type

Jitactivationdeactivateresponse

Responses

CodeDescriptionData TypeResponse headers
202Accepted. The deactivation signal was sent to the workflow.Jitactivationdeactivateresponse-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.StartActivateWorkflowV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.StartActivateWorkflowV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

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

Example

from sailpoint.jit_activations.api.jit_activations_api import JITActivationsApi
from sailpoint.jit_activations.api_client import ApiClient
from sailpoint.jit_activations.models.jitactivationdeactivaterequest import Jitactivationdeactivaterequest
from sailpoint.jit_activations.models.jitactivationdeactivateresponse import Jitactivationdeactivateresponse
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
jitactivationdeactivaterequest = '''sailpoint.jit_activations.Jitactivationdeactivaterequest()''' # Jitactivationdeactivaterequest |

try:
# Deactivate JIT activation workflow
new_jitactivationdeactivaterequest = Jitactivationdeactivaterequest.from_json(jitactivationdeactivaterequest)
results = JITActivationsApi(api_client).start_deactivate_workflow_v1(jitactivationdeactivaterequest=new_jitactivationdeactivaterequest)
# Below is a request that includes all optional parameters
# results = JITActivationsApi(api_client).start_deactivate_workflow_v1(new_jitactivationdeactivaterequest)
print("The response of JITActivationsApi->start_deactivate_workflow_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling JITActivationsApi->start_deactivate_workflow_v1: %s\n" % e)

[Back to top]

start-extend-workflow-v1

Extend JIT activation workflow Sends a signal to a running JIT Privileged (JIT P) activation workflow to extend the activation period by the requested number of minutes.

This request cannot be applied to a workflow that does not exist or whose execution has already completed. The client receives an error response in those cases.

The response is returned with HTTP 202 Accepted after the signal is sent.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyjitactivationextendrequestJitactivationextendrequestTrue

Return type

Jitactivationextendresponse

Responses

CodeDescriptionData TypeResponse headers
202Accepted. The extend signal was sent to the workflow.Jitactivationextendresponse-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.StartActivateWorkflowV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.StartActivateWorkflowV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

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

Example

from sailpoint.jit_activations.api.jit_activations_api import JITActivationsApi
from sailpoint.jit_activations.api_client import ApiClient
from sailpoint.jit_activations.models.jitactivationextendrequest import Jitactivationextendrequest
from sailpoint.jit_activations.models.jitactivationextendresponse import Jitactivationextendresponse
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
jitactivationextendrequest = '''sailpoint.jit_activations.Jitactivationextendrequest()''' # Jitactivationextendrequest |

try:
# Extend JIT activation workflow
new_jitactivationextendrequest = Jitactivationextendrequest.from_json(jitactivationextendrequest)
results = JITActivationsApi(api_client).start_extend_workflow_v1(jitactivationextendrequest=new_jitactivationextendrequest)
# Below is a request that includes all optional parameters
# results = JITActivationsApi(api_client).start_extend_workflow_v1(new_jitactivationextendrequest)
print("The response of JITActivationsApi->start_extend_workflow_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling JITActivationsApi->start_extend_workflow_v1: %s\n" % e)

[Back to top]