Updating Connection of SAP Groups
Use the patch /v1/cckm/sap/groups/{id} API to update the connection of a SAP group with the given id.
Syntax
curl -k '<IP>/api/v1/cckm/sap/groups/{id}' -X PATCH -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' --data-binary $'{\n  "connection": "sap-connection"\n}' --compressed
Here, {id} is the resource ID of the SAP group on the CipherTrust Manager. Run the get /v1/cckm/sap/groups API to view the resource ID (id) of the SAP groups added to the CipherTrust Manager. Note that this resource id is different from the group_id on SAP.
Request Parameters
| Parameter | Type | Description | 
|---|---|---|
| AUTHTOKEN | string | Authentication token. | 
| connection | string | Name or ID of the SAP connection. | 
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/groups/7860401f-34c4-45bf-b17f-6ddb15fa7f14' -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIxNmI1ZWQ0OC0yM2RiLTRjY2QtODEyZC00NTE3NzY0ZTkyZjQiLCJzdWIiOiJsb2NhbHw0YjFlYWQ4ZC00M2E0LTQzZmUtOGQzYy0xNGJmNDMwZDFhYzkiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODQ3NzRhMmYtYWNkMS00NWU1LTg1OWYtZGUzOGQ4ODYzZjg5Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImFhZTZiYmNiLTVhMDktNDNjNy05NzcwLTdjNjQyNDFmYmVhYiIsImlhdCI6MTYzNzcyOTQ0MCwiZXhwIjoxNjM3NzI5NzQwfQ.1YvEa0LZMOL7Ma8XOYxaqV9NwfNRLT3egvNdi4bXEO0' -H 'Content-Type: application/json' --data-binary $'{\n  "connection": "sap-connection-new"\n}' --compressed
Example Response
{
    "id": "7860401f-34c4-45bf-b17f-6ddb15fa7f14",
    "uri": "kylo:kylo:cckm:sap-group:7860401f-34c4-45bf-b17f-6ddb15fa7f14",
    "account": "kylo:kylo:admin:accounts:kylo",
    "createdAt": "2021-11-24T03:32:38.244614Z",
    "updatedAt": "2021-11-24T04:52:07.015740975Z",
    "name": "HXM",
    "group_id": "2b17e4bc-6384-4047-bb02-d0a9d48ffdca",
    "sap_application": "SFSF",
    "keystore_id": "1e40864c-1b58-44b1-8654-a3a893705fb3",
    "connection": "sap-connection-new",
    "cloud_name": "sap",
    "keystore_name": "esk-amer",
    "provider": "ESK",
    "region": "amer",
    "tier": "PREMIUM",
    "tenant": "thales-preprod",
    "meta": {
        "created": "2021-09-28T12:34:28",
        "creator_id": "69f41156-5197-490d-aa5f-f1ffb0ab4e66",
        "creator_name": "creator.name@xyz.com"
    },
    "refreshed_at": "2021-11-24T03:36:21.303862Z"
}
The sample output shows the details with updated SAP connection of the group (with the resource ID 7860401f-34c4-45bf-b17f-6ddb15fa7f14).
Response Codes
| Response Code | Description | 
|---|---|
| 2xx | Success | 
| 4xx | Client errors | 
| 5xx | Server errors | 
Refer to HTTP status codes for details.