Fetching the Group Service Connectability Parameters from SAP
Use the post /v1/cckm/sap/get-service-connectability
API to fetch the group service connectability parameters from SAP.
Syntax
curl -k '<IP>/api/v1/cckm/sap/get-service-connectability' -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
connection (optional) | string | Name or ID of the SAP connection. It is a required parameter when group_id is provided. |
group_id (optional) | string | Group ID of the SAP group. group_id and id parameters are mutually exclusive - specify either. |
id (optional) | string | Resource ID of the SAP group added in CCKM. group_id and id parameters are mutually exclusive - specify either. |
You need to provide either group_id
or id
.
If you provided the group_id
, you also need to provide the connection.
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/get-service-connectability' -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI5OWI4NDZhMC0wYjk3LTRjNDMtYTM5Ny02NTZhOTg0NWNlODEiLCJzdWIiOiJsb2NhbHxiODUyNzU2MS1iOTMzLTQ3ZmEtYjVjZS1iYjdmY2RhNjBiMDUiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImU5NzgwYjg4LTZkODYtNDhmZi1iMmRkLTgyODE5NzA3MmQ5NiIsImlhdCI6MTcyMjQ4NjkxMywiZXhwIjoxNzIyNDg3MjEzfQ.tBlA5Ynw3wuYv6sxNU0UsRTsfb6_S8Be7lG87VVmY8oa41pjBwC_t-YNFO5ehEFnoF3QcAO69_beMz-rBbYjGw' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n "group_id": "17956763-7408-4pfe-bs48-c846f2111fae",\n "connection": "sap-connection"\n}' --compressed
Example Response
{
"validKey": false,
"validTu": false,
"previouslyRegistered": false,
"serviceConnectSupported": true,
"connectable": false
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.