Adding SAP Groups
Use the post /v1/cckm/sap/add-groups
API to add a SAP group to the CipherTrust Manager as a container.
Syntax
curl -k '<IP>/api/v1/cckm/sap/add-groups' -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' --data-binary $'{\n "connection": "sap-connection",\n "group_id": [\n "sap-group-id"\n ]\n}' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
connection | string | Name or ID of the SAP connection. |
group_id | array of strings | List of IDs of the SAP groups to be added. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/add-groups' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmMDYzMTBmYy02NGVhLTQ4OTgtYmI3Mi05YTIwYzBkOTUxYzIiLCJzdWIiOiJsb2NhbHxmYzg2MjhkMC1mNjczLTRhMWYtYjQ3Yi1hM2I0ODVhMWU3OTQiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiYzk4YzkyZTUtMjM0OS00YzU5LWJlZWYtODc2OTQ4ZjIwNzM0Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImEwM2I1N2Y0LTg5N2UtNDg2NS1iODk1LTM2ODE5MjNjODUwNSIsImlhdCI6MTYzMzMyMTQyNSwiZXhwIjoxNjMzMzIxNzI1fQ.hmOX5tKRWYYpIDOgLwMXfjMLjdv8O2NRf7Zs04Kwv3A' -H 'Content-Type: application/json' --data-binary $'{\n "connection": "UI_SAP_CONNECTION",\n "group_id": [\n "aa17c7ac-27b6-4709-b091-a46cad289352"\n ]\n}' --compressed
Example Response
{
"id": "5cabfd8d-1601-45b0-a05d-2c94fe23850c",
"uri": "kylo:kylo:cckm:sap-group:5cabfd8d-1601-45b0-a05d-2c94fe23850c",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-11-24T03:34:35.438365406Z",
"updatedAt": "2021-11-24T03:34:35.438365575Z",
"groups": [
{
"id": "aa17c7ac-27b6-4709-b091-a46cad289352",
"uri": "kylo:kylo:cckm:sap-group:aa17c7ac-27b6-4709-b091-a46cad289352",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-11-24T03:34:35.436011154Z",
"updatedAt": "0001-01-01T00:00:00Z",
"name": "test-group",
"group_id": "072b8883-897f-4b4c-a545-da685bb45717",
"sap_application": "GENERAL",
"keystore_id": "1e40864c-1b58-44b1-8654-a3a893705fb3",
"connection": "UI_SAP_CONNECTION",
"cloud_name": "sap",
"keystore_name": "esk-amer",
"provider": "ESK",
"region": "amer",
"tier": "PREMIUM",
"tenant": "thales-preprod",
"meta": {
"created": "2021-10-19T08:45:07",
"creator_id": "171cdee5-947e-4bcd-ae0b-562256624904",
"creator_name": "creator.name@xyz.com"
}
}
]
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.