CI Lifecycle Management API
-
- UpdatedJan 30, 2025
- 24 minutes to read
- Yokohama
- API reference
The CI Lifecycle Management API provides endpoints to manipulate configuration item (CI) operational states and apply CI actions.
The API interfaces adhere to restrictions and allowances specified by not allowed CI actions, compatible CI actions, and not allowed operational transitions. If an interface attempts a restricted operation, the operation is blocked, an error is logged, and a task is created if appropriate.
CI Lifecycle Management - DELETE /now/cilifecyclemgmt/actions
Removes a configuration item (CI) action for a list of CIs.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/actions
Default URL: /api/now/cilifecyclemgmt/actions
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
actionName | Required. Configuration item action name. Data type: String |
requestorId | Required. Sys_id of a workflow context, or
an operator user ID returned from the CI Lifecycle Management - POST /now/cilifecyclemgmt/operators endpoint.
Operator user IDs are located in the CI State Registered Users [statemgmt_register_users] table. Data type: String |
sysIds | Required. Comma-separated list of CI sys_ids. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Remove a CI action from two CIs.
The response body confirms that the CI action was removed from the CIs.
CI Lifecycle Management - DELETE /now/cilifecyclemgmt/operators/{req_id}
Unregisters an operator for non-workflow users.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/operators/{req_id}
Default URL: /api/now/cilifecyclemgmt/operators/{req_id}
Supported request parameters
Parameter | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
req_id | Sys_id of a workflow context, or
an operator user ID returned from the CI Lifecycle Management - POST /now/cilifecyclemgmt/operators endpoint.
Operator user IDs are located in the CI State Registered Users [statemgmt_register_users] table. Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Unregister an operator by user ID.
The response body verifies that the operator was unregistered.
CI Lifecycle Management - GET /now/cilifecyclemgmt/actions/{sys_id}
Returns a list of active configuration item (CI) actions for the specified CI.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/actions/{sys_id}
Default URL: /api/now/cilifecyclemgmt/actions/{sys_id}
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
sys_id | Sys_id of the CI for which to return associated CI actions. Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.ciActions parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
The response body shows that no CI actions are active for the specified CI.
CI Lifecycle Management - GET /now/cilifecyclemgmt/compatActions
Determines whether two specified configuration item (CI) actions are compatible.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/compatActions
Default URL: /api/now/cilifecyclemgmt/compatActions
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
actionName | Required. Name of CI action to compare. Data type: String |
otherActionName | Required. Name of CI action to compare. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
result | Flag indicating whether the two specified CI actions are compatible. Possible
values:
Data type: String |
Example: cURL request
Check compatibility of Patching and Provisioning CI actions.
The response body confirms that the two CI actions are compatible.
CI Lifecycle Management - GET /now/cilifecyclemgmt/leases/{sys_id}/expired
Determines whether the lease has expired for the requestor of a configuration item (CI) action applied to the specified CI.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/leases/{sys_id}/expired
Default URL: /api/now/cilifecyclemgmt/leases/{sys_id}/expired
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
sys_id | Sys_id of the CI that is the target of the applied CI action. Data type: String |
Name | Description |
---|---|
actionName | Required. Name of the CI action applied to the specified CI. Data type: String |
requestorId | Required. Sys_id of a workflow context, or
an operator user ID returned from the CI Lifecycle Management - POST /now/cilifecyclemgmt/operators endpoint.
Operator user IDs are located in the CI State Registered Users [statemgmt_register_users] table. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
The response body shows that the lease for the requestor of the applied CI action has not expired.
CI Lifecycle Management - GET /now/cilifecyclemgmt/notAllowedAction
Determines whether a specified configuration item (CI) action is not allowed for a CI of a specified class when in a specified operational state.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/notAllowedAction
Default URL: /api/now/cilifecyclemgmt/notAllowedAction
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
actionName | Required. Name of the CI action to check. Data type: String |
ciClass | Required. CI class. Data type: String |
opsLabel | Required. Operational state to check. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
result | Flag indicating whether the CI action is restricted (not allowed) for CIs of
the specified type when in the specified operational state. Possible values:
Data type: String |
Example: cURL request
Check whether the Patching CI action is restricted (not allowed) for computers in the DR Standby operational state.
The response body confirms that this action is restricted (not allowed) for the specified CI class when in the specified operational state.
CI Lifecycle Management - GET /now/cilifecyclemgmt/notAllowedOpsTransition
Determines whether a configuration item (CI) from a specified class can transition from a specified operational state to a second specified operational state.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/notAllowedOpsTransition
Default URL: /api/now/cilifecyclemgmt/notAllowedOpsTransition
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
ciClass | Required. CI class to check transition restrictions for. Data type: String |
opsLabel | Required. Label of current CI operational state. Data type: String |
transitionOpsLabel | Required. Label of operational state that is the target of the
transition. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
result | Flag indicating whether the specified operational state transition is
restricted (not allowed) for the specified CI class. Possible values:
Data type: String |
Example: cURL request
Check whether transition from Retired operational state to DR Standby operational state is restricted (not allowed) for Linux server CIs.
The response body shows that the specified operational state transition is unrestricted (allowed) for this CI class.
CI Lifecycle Management - GET /now/cilifecyclemgmt/requestors/{req_id}/valid
Determines whether the specified active workflow user or registered user is a valid requestor.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/requestors/{req_id}/valid
Default URL: /api/now/cilifecyclemgmt/requestors/{req_id}/valid
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
req_id | Sys_id of a workflow context, or
an operator user ID returned from the CI Lifecycle Management - POST /now/cilifecyclemgmt/operators endpoint.
Operator user IDs are located in the CI State Registered Users [statemgmt_register_users] table. Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
CI Lifecycle Management - GET /now/cilifecyclemgmt/statuses/{sys_id}
Returns the current operational state for the specified configuration item (CI).
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/statuses/{sys_id}
Default URL: /api/now/cilifecyclemgmt/statuses/{sys_id}
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
sys_id | Sys_id of the CI. Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
CI Lifecycle Management - PATCH /now/cilifecyclemgmt/leases/{sys_id}
Extends the specified configuration item (CI) action's lease expiration time for the specified user.
If the previous lease has expired, the new lease time starts immediately.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/leases/{sys_id}
Default URL: /api/now/cilifecyclemgmt/leases/{sys_id}
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
sys_id | Sys_id of the CI for which to extend the lease. Data type: String |
Name | Description |
---|---|
actionName | Required. Name of the associated CI action. Data type: String |
leaseTime | Required. Time duration for which the lease is valid for the CI action
specified in actionName. Data type: String Format: HH:MM:SS |
requestorId | Required. Sys_id of a workflow context, or
an operator user ID returned from the CI Lifecycle Management - POST /now/cilifecyclemgmt/operators endpoint.
Operator user IDs are located in the CI State Registered Users [statemgmt_register_users] table. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Extend the duration of a Patching CI action requestor lease by 24 hours.
CI Lifecycle Management - POST /now/cilifecyclemgmt/actions
Adds a specified configuration item (CI) action to a specified list of CIs.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/actions
Default URL: /api/now/cilifecyclemgmt/actions
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Add a Patching CI action to two CIs.
CI Lifecycle Management - POST /now/cilifecyclemgmt/operators
Registers an operator for a non-workflow user.
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/operators
Default URL: /api/now/cilifecyclemgmt/operators
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
CI Lifecycle Management - POST /now/cilifecyclemgmt/statuses
Sets the operational state for a specified list of configuration items (CIs).
URL format
Versioned URL: /api/now/{api_version}/cilifecyclemgmt/statuses
Default URL: /api/now/cilifecyclemgmt/statuses
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully
processed by the endpoint.
Review the response body result.result parameter to verify the outcome of the operation. If the endpoint encounters errors while processing the request, error codes and messages appear in the response body result.errors parameter. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Set the Repair in Progress
operational state for two CIs.
The response body shows that the desired operational state was set for both CIs specified in the request.
On this page
- CI Lifecycle Management - DELETE /now/cilifecyclemgmt/actions
- CI Lifecycle Management - DELETE /now/cilifecyclemgmt/operators/{req_id}
- CI Lifecycle Management - GET /now/cilifecyclemgmt/actions/{sys_id}
- CI Lifecycle Management - GET /now/cilifecyclemgmt/compatActions
- CI Lifecycle Management - GET /now/cilifecyclemgmt/leases/{sys_id}/expired
- CI Lifecycle Management - GET /now/cilifecyclemgmt/notAllowedAction
- CI Lifecycle Management - GET /now/cilifecyclemgmt/notAllowedOpsTransition
- CI Lifecycle Management - GET /now/cilifecyclemgmt/requestors/{req_id}/valid
- CI Lifecycle Management - GET /now/cilifecyclemgmt/statuses/{sys_id}
- CI Lifecycle Management - PATCH /now/cilifecyclemgmt/leases/{sys_id}
- CI Lifecycle Management - POST /now/cilifecyclemgmt/actions
- CI Lifecycle Management - POST /now/cilifecyclemgmt/operators
- CI Lifecycle Management - POST /now/cilifecyclemgmt/statuses