Resource Changes API
With the Resource Changes REST API, you can watch resources in application lifecycle management and you are notified when those resources are changed.
The API models a web-hook that is used to react on value changes in SAP Cloud ALM entities that are exposed as REST resources. It informs external systems about which resources are changed and how.
Resources are entities that are described in the SAP Cloud ALM API catalog and are accessible via the SAP Cloud ALM REST API, such as EventSituations.
The Resource Changes API contains the following information:
-
The event type describing the type of change event, such as EVENT-SITUATION.CREATED.
-
The type of resource, such as EVENT-SITUATION.
-
The payload of the resource. The format of the payload is described in the SAP Business API Hub.
Documentation
SAP Business Accelerator Hub: https://api.sap.com/api/CALM_RESOURCE_CHANGES/resource
.
API Definition
The SAP Cloud ALM Resource Changes API is implemented by the remote services destination as web-hook. In SAP Cloud ALM, this web-hook relies on the following elements:
-
An SAP BTP destination in SAP Cloud ALM to connect to the partner applications web-hook.
-
An SAP Cloud ALM External API subscription that will listen to specific SAP Cloud ALM entities changes and forward the corresponding message to the to the partner web-hook. In addition, some payload transformation rules can be customized at the subscription level with a payload mapping file.
The Resource Changes API supports the operation POST /resourceChangeCustomURL
Type
PUSH API
URL Format
https://<external_URL>/<web-hook-path>/resourceChangeCustomURL/
API Operations
-
POST /resource-change: Web-hook endpoint used to notify that a change occurred for a specific resource in SAP Cloud ALM. The parameters resourceType and eventType in the notification message indicate which event triggered the notification message.
Supported Resources Type:
-
EVENT-SITUATION
-
TASK
-
WORKFLOW
-
FEATURE
-
OPERATIONFLOW
Event Type:
SAP Cloud ALM supports the following events with the format <RESOURCE-TYPE>.<EVENT-TYPE>
Event Situations:
-
EVENT-SITUATION.CREATED
-
EVENT-SITUATION.UPDATED
-
EVENT-SITUATION.CLOSED
-
EVENT-SITUATION.PING
Tasks:
-
TASK.CREATED
-
TASK.UPDATED
-
TASK.DELETED
Workflows:
-
WORKFLOW.STARTED
-
WORKFLOW.CANCELED
-
WORKFLOW.PING
Features
-
FEATURE.CREATED
-
FEATURE.UPDATED
-
FEATURE.DELETED
Operations Automation
-
OPERATIONFLOW.GETDEFINITIONS
-
OPERATIONFLOW.STARTED
-
OPERATIONFLOW.PING
Issue
-
ISSUE.CREATED
Payload Format
|
Request Payload |
Response Payload |
|---|---|
|
The response payload depends on the event type. For more details, refer to the resource description. |
Authorizations
Users need access to a SAP BTP destination, from their SAP Cloud ALM tenant to the web-hook provider.
Example
Send a request for resources changes events:
POST https://<external_URL>/<web-hook_end-point>/resourceChangeCustomURL