Connect SAP Cloud ALM🔗
Lightrun reads the services in your Cloud ALM landscape, plus their Integration Monitoring and Exception Monitoring logs.
Who does it: your SAP BTP admin.
Prerequisites🔗
- An active SAP Cloud ALM subscription.
- Access to the SAP Cloud ALM global account in the SAP BTP Cockpit. It's a separate global account from your main BTP account, named like
SAP Cloud ALM - <customer number>. - Permission to create service instances in its SAP Cloud ALM subaccount, for example Subaccount Administrator.
- The SAP Cloud ALM API entitlement with plan standard. It usually comes with the subscription as
SAPCloudALMAPIs. - Integration Monitoring or Exception Monitoring collecting data for your services. The connector reads only what Cloud ALM already collects.
Walkthrough🔗
Click through the setup screen by screen, or follow the written steps below.
Step 1: Create a read-only key in SAP BTP🔗
- In the SAP BTP Cockpit, choose the SAP Cloud ALM global account, then open its SAP Cloud ALM subaccount.
- Go to Services → Instances and Subscriptions and click Create. Fill in:
- Service: SAP Cloud ALM API
- Plan: standard
- Runtime Environment: Other
- Instance Name: for example
lightrun-ai-sre
- On the Parameters step, paste the JSON below. Type
$XSMASTERAPPNAMEexactly as shown; SAP replaces it with the Cloud ALM app name. - Click Create and wait until the instance shows Usable.
- Open the instance's … menu and choose Create Service Binding. Name it, for example
lightrun-ai-sre-key, leave the parameters as{}and click Create. - Open the binding, switch to JSON and click Copy JSON.
{
"xs-security": {
"xsappname": "lightrun-ai-sre",
"authorities": [
"$XSMASTERAPPNAME.calm-api.landscape.read",
"$XSMASTERAPPNAME.calm-api.logs.read",
"$XSMASTERAPPNAME.calm-api.integration-monitoring.read",
"$XSMASTERAPPNAME.calm-api.integration-monitoring.personal.read",
"$XSMASTERAPPNAME.calm-api.exm.read",
"$XSMASTERAPPNAME.calm-api.exm.personal.read"
]
}
}
| Scope | What it allows |
|---|---|
calm-api.landscape.read | Discover the services in your landscape |
calm-api.logs.read | Read logs |
calm-api.integration-monitoring.read | Read Integration Monitoring |
calm-api.integration-monitoring.personal.read | Read integration logs that include personal data |
calm-api.exm.read | Read Exception Monitoring |
calm-api.exm.personal.read | Read exception logs that include personal data |
Set the scopes on the instance
Put the scopes in the instance parameters, as above. SAP ignores scopes added to the binding, and calls then fail with HTTP 403 (SAP KBA 3745070).
Personal data
The two personal.read scopes let Lightrun read log entries that include personal data. If your privacy team prefers, leave them out. Lightrun then skips those entries.
Step 2: Connect in Lightrun🔗
- Go to Connectors, search for Cloud ALM and click Connect.
- Paste the binding JSON into Service key. Lightrun fills in API URL, Authentication URL, Client ID and Client Secret.
- Click Test connection. Lightrun lists one service from your landscape and checks the last 5 minutes of its monitoring logs. Connected means the key can see your landscape and read logs for at least one monitoring area.
- Click Add, then add the connector to your workflow's agent.
Step 3: Network🔗
Nothing to open on your side. Lightrun connects to SAP Cloud ALM over HTTPS. If you restrict the Cloud ALM API by IP address, allowlist Lightrun's IP addresses.
Troubleshooting🔗
| What you see | What to check |
|---|---|
| SAP Cloud ALM API isn't in the service list | You're in your main BTP account. Switch to the Cloud ALM global account and subaccount, then check Entitlements for SAP Cloud ALM API / standard. |
| There's no Create Service Key option | In the Other environment it's called Create Service Binding. |
| "Could not read SAP Cloud ALM services (HTTP 403)" | The scopes are missing from the instance. Update the instance parameters and create a new binding. |
| The cockpit won't load | Try an incognito window. A stale SAP sign-in is the usual cause. |
Last update: November 24, 2026