Salesforce Cloud Certificates APIs
Salesforce Certificates are necessary to protect cache-only or BYOK keys when they are in transit between CCKM and Salesforce.
Create a Salesforce Certificate
Use POST /v1/cckm/sfdc/certificates
to create a certificate suitable for Salesforce. 4096-bit key size RSA certificate with Platform Encryption enabled, and without Exportable Private Key option.
Syntax
curl -k 'https://<IP>/api/v1/cckm/sfdc/certificates' -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' --data-binary $'{\n "name": "<certificate_name>",\n "organization_id": "<organization_id>"\n}' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
name | string | Name for certificate. |
orgnization_id | string | ID of the organization to associate with the certificate. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiMGQ5YTc2NTktZDc0YS00MDA0LWEyOTYtY2JlZGRmZjUyYWM4Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjRjNzM3ZmJiLTcxNWItNDRhYi1hYmRjLTBhNDgwNWMxYzhmMSIsImlhdCI6MTYzMzcxNzAzNiwiZXhwIjoxNjMzNzE3MzM2fQ.ywTFykGSLCVouW7kYR4YQpC5kvnzY8Y7pNfbOHVvovU' -H 'Content-Type: application/json' --data-binary $'{\n "name": "sfdc_cert",\n "organization_id": "04f63144-940c-4c4f-8426-111111111111"\n}' --compressed
Example Response
{
"id": "137e43bd-79a6-4019-97a1-9f5a10360266",
"uri": "kylo:kylo:cckm:certificate:sfdc-cert-137e43bd-79a6-4019-97a1-9f5a10360266",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:28:09.3978Z",
"updatedAt": "2021-09-22T01:28:09.396535Z",
"organization_id": "f7d5c526-872f-451e-b119-634b376ac5ac",
"sfdc_organization_id": "00D030000008olxEAA",
"organization_name": "Sample Org",
"ca_signed": false,
"key_size": 4096,
"version": 3,
"subject": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"signature_algorithm_name": "SHA256-RSA",
"serial_number": "30111193961490128631138561580454",
"subject_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"authority_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"subject_key": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"valid_to": "2023-09-22 12:00:00 +0000 UTC",
"issuer": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"valid_from": "2021-09-22 17:18:15 +0000 UTC",
"public_key_name": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"signature": "554ec2e14175b569b38a9a8a04f01dff34226365dafb8eca4ca98171dc04504fce37d9e7a3a7182bb2f64b05d2b0c4de64692c60a4cfbce564233e2966a168e1bd1b4561a87d398f6a1e213faa959c43b6ad614ffba65a401befae383071820868671cfc466db6cfa86f0e90b9395dce97ddce6c49e6544bd0768a0636d067ac20818458e519ae7a05cbf4ec653b9b4806ee2c226a9b259b5b65c8341a6b826849eccb0014f1501ab7dddbd8151732eef6f3440a0812b23121871963141a77d93786028cf032232674edb43b173f70487c56eab8bfb02246b973278f0f25f16453761690dda70a6083dcc9be587a6ab84e80e605a69dea7f3179a1bcf9f2fa221cd105d921c4ae64aa842f570f142d65dd6427fcd8dad28536f50a36db8afda9f630f75d6eab36909bade47a66fc6780e65de8c2cc2360ae2fec87ff122700c74736526dc947ade6220f5b70d81c993c7b47cb2c3c3b5b32fd08233b008f0f94b921e721eb84a0d3b6d0dcc1e7b69a6e75979738df83b165e80ff06e46fd1e3d0d73c8034947e5448fff63414bbdb428f0871ec8808d30e0f4fedfb2f6de9b0350f7741382b4194519e6bbb1f2864a47b6ef7c1cbb3e685405b17a5c3a5c0f434dc18804001147b31e99cdc58622cb1a8e37dd42534548b49fb3f72c5b580cbd55a86fc11e226859c1225c686169c8e5e8fa84360a0d9d58d38690d70af3666c",
"public_key": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAhtMulpzk1ZXisHtiBgYV\nSNaHslC1DxzI2J0y4rz9Gqd/Zem40MCP+tEckyQjDt+XJDuRrAPZQUdE46SH4C4k\na6gJ7abTAQiT+5EYzN0MWmWAVAFOO2iMZtMyMSJ38TC5KsaqNe/tiEJQufk8sJ/L\neNK3z7/gjeEICE70IdtxzLHzoEqyerfbPsY1AOUCJeUhHVzEqErv908k8KRLNlEx\nMCN1dH0HyrkMLubfSPCeIWNRQ/wQZ1AzngOwOegD/tOVL/5ARprLFuzfpBE5aS+n\n9ACWbk+N4YQmRXFMTb/9DRLowxm6De+WCl0froNMqPJCPd4o8u3TS5X6j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ldzpfdzmxJ5lRL\n0HaKBjbQZ6wggYRY5RmuegXL9OxlO5tIBu4sImqbJZtbZcg0GmuCaEnsywAU8VAa\nt93b2BUXMu7280QKCBKyMSGHGWMUGnfZN4YCjPAyIyZ07bQ7Fz9wSHxW6ri/sCJG\nuXMnjw8l8WRTdhaQ3acKYIPcyb5Yemq4ToDmBaad6n8xeaG8+fL6IhzRBdkhxK5k\nqoQvVw8ULWXdZCf82NrShTb1Cjbbiv2p9jD3XW6rNpCbreR6ZvxngOZd6MLMI2Cu\nL+yH/xInAMdHNlJtyUet5iIPW3DYHJk8e0fLLDw7WzL9CCM7AI8PlLkh5yHrhKDT\nttDcwee2mm51l5c434OxZegP8G5G/R49DXPIA0lH5USP/2NBS720KPCHHsiAjTDg\n9P7fsvbemwNQ93QTgrQZRRnmu7HyhkpHtu98HLs+aFQFsXpcOlwPQ03BiAQAEUez\nHpnNxYYiyxqON91CU0VItJ+z9yxbWAy9VahvwR4iaFnBIlxoYWnI5ej6hDYKDZ1Y\n04aQ1wrzZmw=\n-----END CERTIFICATE-----\n",
"master_label": "sfdc_cert",
"created_by_id": "0053h000000r5rKABQ",
"created_by_name": "John Doe",
"created_date": "2021-09-22T17:18:15Z",
"file_name": "certs/sfdc_cert.crt",
"full_name": "sfdc_cert",
"salesforce_id": "0P10300000000u0CBA",
"last_modified_by_id": "0053h000000r5rKABQ",
"last_modified_by_name": "John Doe",
"last_modified_date": "1970-01-01T00:00:00Z",
"type": "Certificate",
"name": "sfdc_cert"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
List Salesforce Certificates Available on CCKM
Use GET /v1/cckm/sfdc/certificates/
to return a list of certificates. The results can be filtered using the query parameters.
Syntax
curl -k 'https://<IP>/api/v1/cckm/sfdc/certificates?skip=0&limit=10' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Query Parameters
Parameter | Type | Description |
---|---|---|
id | string | Filter the result based on the certificate ID. |
name | string | Filter the result based on the certificate name. |
organization_name | string | Filter the result based on the organization name. |
organization_id | string | Filter the result based on the organization ID generated and assigned by CCKM. |
sfdc_organization_id | string | Filter the result based on the organization ID generated and assigned by Salesforce. |
skip | integer | Number of records to skip. For example, if "skip":5 is specified, the first five records will not be displayed in the output. |
limit | integer | Number of records to display. For example, if "limit":10 is specified, then the next 10 records (after skipping the number of records specified in the skip parameter) will be displayed in the output. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates?<query-parameters>' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjkxODFjZWM0LWMyYmEtNGFjNC1hMDM4LTkxNDhmNWIyZGI5NyIsImlhdCI6MTYzNDA0NjA0NSwiZXhwIjoxNjM0MDQ2MzQ1fQ.jo_2gwkXTLGlYvL6IPKIha9ySZXDmfr9g3pHzcG3Hn4' --compressed
Example Response
{
"skip": "0,",
"limit": "10,",
"total": "1,",
"resources": [
{
"id": "137e43bd-79a6-4019-97a1-9f5a10360266",
"uri": "kylo:kylo:cckm:certificate:sfdc-cert-137e43bd-79a6-4019-97a1-9f5a10360266",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:28:09.3978Z",
"updatedAt": "2021-09-22T01:28:09.396535Z",
"organization_id": "f7d5c526-872f-451e-b119-634b376ac5ac",
"sfdc_organization_id": "00D030000008olxEAA",
"organization_name": "Sample Org",
"ca_signed": false,
"key_size": 4096,
"version": 3,
"subject": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"signature_algorithm_name": "SHA256-RSA",
"serial_number": "30111193961490128631138561580454",
"subject_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"authority_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"subject_key": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"valid_to": "2023-09-22 12:00:00 +0000 UTC",
"issuer": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"valid_from": "2021-09-22 17:18:15 +0000 UTC",
"public_key_name": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"signature": "554ec2e14175b569b38a9a8a04f01dff34226365dafb8eca4ca98171dc04504fce37d9e7a3a7182bb2f64b05d2b0c4de64692c60a4cfbce564233e2966a168e1bd1b4561a87d398f6a1e213faa959c43b6ad614ffba65a401befae383071820868671cfc466db6cfa86f0e90b9395dce97ddce6c49e6544bd0768a0636d067ac20818458e519ae7a05cbf4ec653b9b4806ee2c226a9b259b5b65c8341a6b826849eccb0014f1501ab7dddbd8151732eef6f3440a0812b23121871963141a77d93786028cf032232674edb43b173f70487c56eab8bfb02246b973278f0f25f16453761690dda70a6083dcc9be587a6ab84e80e605a69dea7f3179a1bcf9f2fa221cd105d921c4ae64aa842f570f142d65dd6427fcd8dad28536f50a36db8afda9f630f75d6eab36909bade47a66fc6780e65de8c2cc2360ae2fec87ff122700c74736526dc947ade6220f5b70d81c993c7b47cb2c3c3b5b32fd08233b008f0f94b921e721eb84a0d3b6d0dcc1e7b69a6e75979738df83b165e80ff06e46fd1e3d0d73c8034947e5448fff63414bbdb428f0871ec8808d30e0f4fedfb2f6de9b0350f7741382b4194519e6bbb1f2864a47b6ef7c1cbb3e685405b17a5c3a5c0f434dc18804001147b31e99cdc58622cb1a8e37dd42534548b49fb3f72c5b580cbd55a86fc11e226859c1225c686169c8e5e8fa84360a0d9d58d38690d70af3666c",
"public_key": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAhtMulpzk1ZXisHtiBgYV\nSNaHslC1DxzI2J0y4rz9Gqd/Zem40MCP+tEckyQjDt+XJDuRrAPZQUdE46SH4C4k\na6gJ7abTAQiT+5EYzN0MWmWAVAFOO2iMZtMyMSJ38TC5KsaqNe/tiEJQufk8sJ/L\neNK3z7/gjeEICE70IdtxzLHzoEqyerfbPsY1AOUCJeUhHVzEqErv908k8KRLNlEx\nMCN1dH0HyrkMLubfSPCeIWNRQ/wQZ1AzngOwOegD/tOVL/5ARprLFuzfpBE5aS+n\n9ACWbk+N4YQmRXFMTb/9DRLowxm6De+WCl0froNMqPJCPd4o8u3TS5X6jRR7TYnw\noo4e/DRQDYX3BzrQdFMUHW1Utj0iIeUltWCr/YgWZSpR0BjDQ9fxr+U1wsZBHSeh\n2VdF2rTmDL/zIMvh7vG0pbsFyFGAIzAVjzAt7gP7b0/UT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07bQ7Fz9wSHxW6ri/sCJG\nuXMnjw8l8WRTdhaQ3acKYIPcyb5Yemq4ToDmBaad6n8xeaG8+fL6IhzRBdkhxK5k\nqoQvVw8ULWXdZCf82NrShTb1Cjbbiv2p9jD3XW6rNpCbreR6ZvxngOZd6MLMI2Cu\nL+yH/xInAMdHNlJtyUet5iIPW3DYHJk8e0fLLDw7WzL9CCM7AI8PlLkh5yHrhKDT\nttDcwee2mm51l5c434OxZegP8G5G/R49DXPIA0lH5USP/2NBS720KPCHHsiAjTDg\n9P7fsvbemwNQ93QTgrQZRRnmu7HyhkpHtu98HLs+aFQFsXpcOlwPQ03BiAQAEUez\nHpnNxYYiyxqON91CU0VItJ+z9yxbWAy9VahvwR4iaFnBIlxoYWnI5ej6hDYKDZ1Y\n04aQ1wrzZmw=\n-----END CERTIFICATE-----\n",
"master_label": "sfdc_cert",
"created_by_id": "0053h000000r5rKABQ",
"created_by_name": "John Doe",
"created_date": "2021-09-22T17:18:15Z",
"file_name": "certs/sfdc_cert.crt",
"full_name": "sfdc_cert",
"salesforce_id": "0P10300000000u0CBA",
"last_modified_by_id": "0053h000000r5rKABQ",
"last_modified_by_name": "John Doe",
"last_modified_date": "1970-01-01T00:00:00Z",
"type": "Certificate",
"name": "sfdc_cert"
}
]
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Get Details for a Salesforce Certificate
Use GET /v1/cckm/sfdc/certificates/{id}
to return the details for a certificate with the given ID.
Syntax
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/137e43bd-79a6-4019-97a1-9f5a10360266' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImM4ZmVhOWVmLWUzYWYtNDliMC04YTI1LTY2MWZkZDA4MTgwZSIsImlhdCI6MTYzNDA0NjgyOCwiZXhwIjoxNjM0MDQ3MTI4fQ.sM2mgIJOM7L_0k8R5ZjL54NJ_H-FsxFtgxq-A0rVqxs' --compressed
Example Response
{
"id": "137e43bd-79a6-4019-97a1-9f5a10360266",
"uri": "kylo:kylo:cckm:certificate:sfdc-cert-137e43bd-79a6-4019-97a1-9f5a10360266",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:28:09.3978Z",
"updatedAt": "2021-09-22T01:28:09.396535Z",
"organization_id": "f7d5c526-872f-451e-b119-634b376ac5ac",
"sfdc_organization_id": "00D030000008olxEAA",
"organization_name": "Sample Org",
"ca_signed": false,
"key_size": 4096,
"version": 3,
"subject": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"signature_algorithm_name": "SHA256-RSA",
"serial_number": "30111193961490128631138561580454",
"subject_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"authority_key_identifier": "4494f581699e9c7aef14f183289c0935df9a3f55",
"subject_key": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"valid_to": "2023-09-22 12:00:00 +0000 UTC",
"issuer": "CN=sfdc_cert,OU=00D030000008olx,O=Salesforce.com,L=San Francisco,ST=CA,C=USA",
"valid_from": "2021-09-22 17:18:15 +0000 UTC",
"public_key_name": "30820222300d06092a864886f70d01010105000382020f003082020a028202010086d32e969ce4d595e2b07b6206061548d687b250b50f1cc8d89d32e2bcfd1aa77f65e9b8d0c08ffad11c9324230edf97243b91ac03d9414744e3a487e02e246ba809eda6d3010893fb9118ccdd0c5a658054014e3b688c66d332312277f130b92ac6aa35efed884250b9f93cb09fcb78d2b7cfbfe08de108084ef421db71ccb1f3a04ab27ab7db3ec63500e50225e5211d5cc4a84aeff74f24f0a44b365131302375747d07cab90c2ee6df48f09e21635143fc106750339e03b039e803fed3952ffe40469acb16ecdfa41139692fa7f400966e4f8de1842645714c4dbffd0d12e8c319ba0def960a5d1fae834ca8f2423dde28f2edd34b95fa8d147b4d89f0a28e1efc34500d85f7073ad07453141d6d54b63d2221e525b560abfd8816652a51d018c343d7f1afe535c2c6411d27a1d95745dab4e60cbff320cbe1eef1b4a5bb05c851802330158f302dee03fb6f4fd44f39f0a3d838ba8cf992459bf104608129026f346fc2b6062dd753547959dc1bf5b27abbd30ed76975213049f1de8ec085f09235b05bb5d9a29a079bf5c2d9d7d470c35f39ea76e1f61b2935ccad39785735341b8b8979bae5a7b43c531861a8cbb3dab5a369ed8ba9bb23cb94742bfa0bbb1a5ecf83dc547c4a48634c771b0e1d268d2ab23c51e3a2448cec1665270185e6beea387d55f278e150be8119f003606bc96340aa06252aa348cf27ea00890203010001",
"signature": "554ec2e14175b569b38a9a8a04f01dff34226365dafb8eca4ca98171dc04504fce37d9e7a3a7182bb2f64b05d2b0c4de64692c60a4cfbce564233e2966a168e1bd1b4561a87d398f6a1e213faa959c43b6ad614ffba65a401befae383071820868671cfc466db6cfa86f0e90b9395dce97ddce6c49e6544bd0768a0636d067ac20818458e519ae7a05cbf4ec653b9b4806ee2c226a9b259b5b65c8341a6b826849eccb0014f1501ab7dddbd8151732eef6f3440a0812b23121871963141a77d93786028cf032232674edb43b173f70487c56eab8bfb02246b973278f0f25f16453761690dda70a6083dcc9be587a6ab84e80e605a69dea7f3179a1bcf9f2fa221cd105d921c4ae64aa842f570f142d65dd6427fcd8dad28536f50a36db8afda9f630f75d6eab36909bade47a66fc6780e65de8c2cc2360ae2fec87ff122700c74736526dc947ade6220f5b70d81c993c7b47cb2c3c3b5b32fd08233b008f0f94b921e721eb84a0d3b6d0dcc1e7b69a6e75979738df83b165e80ff06e46fd1e3d0d73c8034947e5448fff63414bbdb428f0871ec8808d30e0f4fedfb2f6de9b0350f7741382b4194519e6bbb1f2864a47b6ef7c1cbb3e685405b17a5c3a5c0f434dc18804001147b31e99cdc58622cb1a8e37dd42534548b49fb3f72c5b580cbd55a86fc11e226859c1225c686169c8e5e8fa84360a0d9d58d38690d70af3666c",
"public_key": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAhtMulpzk1ZXisHtiBgYV\nSNaHslC1DxzI2J0y4rz9Gqd/Zem40MCP+tEckyQjDt+XJDuRrAPZQUdE46SH4C4k\na6gJ7abTAQiT+5EYzN0MWmWAVAFOO2iMZtMyMSJ38TC5KsaqNe/tiEJQufk8sJ/L\neNK3z7/gjeEICE70IdtxzLHzoEqyerfbPsY1AOUCJeUhHVzEqErv908k8KRLNlEx\nMCN1dH0HyrkMLubfSPCeIWNRQ/wQZ1AzngOwOegD/tOVL/5ARprLFuzfpBE5aS+n\n9ACWbk+N4YQmRXFMTb/9DRLowxm6De+WCl0froNMqPJCPd4o8u3TS5X6jRR7TYnw\noo4e/DRQDYX3BzrQdFMUHW1Utj0iIeUltWCr/YgWZSpR0BjDQ9fxr+U1wsZBHSeh\n2VdF2rTmDL/zIMvh7vG0pbsFyFGAIzAVjzAt7gP7b0/UTznwo9g4uoz5kkWb8QRg\ngSkCbzRvwrYGLddTVHlZ3Bv1snq70w7XaXUhMEnx3o7AhfCSNbBbtdmimgeb9cLZ\n19Rww1856nbh9hspNcytOXhXNTQbi4l5uuWntDxTGGGoy7PataNp7YupuyPLlHQr\n+gu7Gl7Pg9xUfEpIY0x3Gw4dJo0qsjxR46JEjOwWZScBhea+6jh9VfJ44VC+gRnw\nA2BryWNAqgYlKqNIzyfqAIkCAwEAAQ==\n-----END PUBLIC KEY-----\n",
"content": "-----BEGIN CERTIFICATE-----\nMIIGZDCCBEygAwIBAgIOAXwOg92jAAAAAF4MXaYwDQYJKoZIhvcNAQELBQAwejES\nMBAGA1UEAwwJc2ZkY19jZXJ0MRgwFgYDVQQLDA8wMEQwMzAwMDAwMDhvbHgxFzAV\nBgNVBAoMDlNhbGVzZm9yY2UuY29tMRYwFAYDVQQHDA1TYW4gRnJhbmNpc2NvMQsw\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by_name": "John Doe",
"created_date": "2021-09-22T17:18:15Z",
"file_name": "certs/sfdc_cert.crt",
"full_name": "sfdc_cert",
"salesforce_id": "0P10300000000u0CBA",
"last_modified_by_id": "0053h000000r5rKABQ",
"last_modified_by_name": "John Doe",
"last_modified_date": "1970-01-01T00:00:00Z",
"type": "Certificate",
"name": "sfdc_cert"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Delete a Salesforce Certificate
Use DELETE /v1/cckm/sfdc/certificates/{id}/
to delete a certificate with the given ID.
Syntax
curl -k 'https://<IP>/api/v1/cckm/sfdc/certificates/{id}' -X DELETE -H 'Authorization: Bearer AUTHOKEN' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/137e43bd-79a6-4019-97a1-9f5a10360266' -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImI5NGU0OGI5LTljYTItNDgzYy05NmVjLWQzNzliMzhjMmEzNiIsImlhdCI6MTYzNDA0NzA0MywiZXhwIjoxNjM0MDQ3MzQzfQ.H6jwbEqquBGZINje--1RspWWeQlSu25p0pQG3fm27Mc' --compressed
Example Response
{
"status": 204
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Synchronize Certificates from Salesforce
Use POST /v1/cckm/sfdc/certificates/synchronization-jobs
to synchronize organization registered certificates from Salesforce. This downloads certificates stored on Salesforce to CCKM, to be associated with organizations registered on CCKM.
Syntax
curl -k 'https://<IP>/api/v1/cckm/sfdc/certificates/synchronization-jobs' -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' --data-binary $'{\n "organization_ids": ["<CCKM_organization_id>"],\n "synchronize_all": <true_or_false>}' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
organization_ids | array | Array of organization IDs generated and assigned by CCKM. |
synchronize_all | boolean | Set true to synchronize all certificates from all organizations. synchronize_all and organizations are mutually exclusive. Specify either the synchronize_all or organizations. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/synchronization-jobs' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImJlM2JlYmExLTRlMjUtNDFiNC1hMzBiLTEwZmM4YTk0YTliOCIsImlhdCI6MTYzNDA0ODQyNCwiZXhwIjoxNjM0MDQ4NzI0fQ.cUr48OlYgON8qjH-laTFVSY7m2FikO4-rmszW6bLLQ0' -H 'Content-Type: application/json' --data-binary $'{\n "synchronize_all": true\n}' --compressed
Example Response
{
"id": "686f862f-e7b0-4298-807e-690c71c3161d",
"uri": "kylo:kylo:cckm:certificate-synchronization-job:686f862f-e7b0-4298-807e-690c71c3161d",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:35:57.186883Z",
"updatedAt": "2021-09-22T01:35:57.185063Z",
"synchronize_all": true,
"overall_status": "in_progress",
"cloud": "sfdc",
"abort": false,
"organization_ids": [
"f7d5c526-872f-451e-b119-634b376ac5ac"
],
"organization_names": [
"Sample Org"
],
"detailed_status": {}
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Get Certificate Synchronization Status for All Jobs
Use GET /v1/cckm/sfdc/certificates/synchronization-jobs
to return a list of updated certificate synchronization status for all jobs. The results can be filtered using the query parameters.
Syntax
curl -k 'https://<IP>/api/v1/cckm/sfdc/certificates/synchronization-jobs?<query-parameters>' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Query Parameters
Parameter | Type | Description |
---|---|---|
id | string | Filter by internal id of the synchronization job. |
overall_status | string | Filter by synchronization overall status. Possible values are "in_progress", "completed", and "failed. |
organization_ids | array | Filter by organizations, using the organization IDs generated and assigned by CCKM. |
skip | integer | Number of records to skip. For example, if "skip":5 is specified, the first five records will not be displayed in the output. |
limit | integer | Number of records to display. For example, if "limit":10 is specified, then the next 10 records (after skipping the number of records specified in the skip parameter) will be displayed in the output. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/synchronization-jobs?skip=0&limit=10' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImJlM2JlYmExLTRlMjUtNDFiNC1hMzBiLTEwZmM4YTk0YTliOCIsImlhdCI6MTYzNDA0ODQyNCwiZXhwIjoxNjM0MDQ4NzI0fQ.cUr48OlYgON8qjH-laTFVSY7m2FikO4-rmszW6bLLQ0' --compressed
Example Response
{
"skip": 0,
"limit": 10,
"total": 1,
"resources": [
{
"id": "686f862f-e7b0-4298-807e-690c71c3161d",
"uri": "kylo:kylo:cckm:certificate-synchronization-job:686f862f-e7b0-4298-807e-690c71c3161d",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:35:57.186883Z",
"updatedAt": "2021-09-22T01:35:59.306393Z",
"synchronize_all": true,
"overall_status": "completed",
"cloud": "sfdc",
"abort": false,
"organization_ids": [
"f7d5c526-872f-451e-b119-634b376ac5ac"
],
"organization_names": [
"Sample Org"
],
"detailed_status": {
"f7d5c526-872f-451e-b119-634b376ac5ac": "completed"
}
}
]
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Get Certificate Synchronization Status for A Job
Use GET /v1/cckm/sfdc/certificates/synchronization-jobs/{iD}
to return a list of updated certificate synchronization status for a job with the given ID.
Syntax
curl -k 'https://<ID>/api/v1/cckm/sfdc/certificates/synchronization-jobs/{id}' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/synchronization-jobs/686f862f-e7b0-4298-807e-690c71c3161d' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImJmMzhiMjhiLWFhMjMtNGEzNi1hYmQ4LTM2NDAzYmYzODNlNCIsImlhdCI6MTYzNDA0OTEzOSwiZXhwIjoxNjM0MDQ5NDM5fQ.ZyzHdzkNTRJg-AHs_Rftgu5D6-cQOHjURCXK8HyIDS0' --compressed
Example Response
{
"application/json": {
"id": "686f862f-e7b0-4298-807e-690c71c3161d",
"uri": "kylo:kylo:cckm:certificate-synchronization-job:686f862f-e7b0-4298-807e-690c71c3161d",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:35:57.186883Z",
"updatedAt": "2021-09-22T01:35:59.306393Z",
"synchronize_all": true,
"overall_status": "completed",
"cloud": "sfdc",
"abort": false,
"organization_ids": [
"f7d5c526-872f-451e-b119-634b376ac5ac"
],
"organization_names": [
"Sample Org"
],
"detailed_status": {
"f7d5c526-872f-451e-b119-634b376ac5ac": "completed"
}
}
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.
Cancel a Certificate Synchronization Job
Use POST /v1/cckm/sfdc/certificates/synchronization-jobs/{id}/cancel
to cancel a synchronization job of the given ID.
Syntax
curl -k 'https://<ID>/api/v1/cckm/sfdc/certificates/synchronization-jobs/{id}/cancel' -X POST -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://thales.com/api/v1/cckm/sfdc/certificates/synchronization-jobs/686f862f-e7b0-4298-807e-690c71c3161d/cancel' -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmZjhhMDM1ZS02NjExLTQ5ZWUtYWNmNC1lMzgwZTMxNGRhOTIiLCJzdWIiOiJsb2NhbHwzMTk0ZGY4Ny1kOTk2LTRjOGMtYWRmMi03MjNkZDA3NDY2YmIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNzc2Y2ZkMDQtMzFiZS00NzBmLWJjZDItNjllYzgyNzgyNTExIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjZkZTk4ZTFiLWZjOWQtNDY5MS05Y2E2LWM0ZTAyNDYwNzFmYiIsImlhdCI6MTYzNDA0OTM0NCwiZXhwIjoxNjM0MDQ5NjQ0fQ.W3jQxGIU-gqHafr3iMAPQ18r9YNkgnvfBSdb_CS_i2Y' --compressed
Example Response
{
"application/json": {
"id": "686f862f-e7b0-4298-807e-690c71c3161d",
"uri": "kylo:kylo:cckm:certificate-synchronization-job:686f862f-e7b0-4298-807e-690c71c3161d",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-09-22T01:35:57.186883Z",
"updatedAt": "2021-09-22T01:35:59.306393Z",
"synchronize_all": true,
"overall_status": "completed",
"cloud": "sfdc",
"abort": true,
"organization_ids": [
"f7d5c526-872f-451e-b119-634b376ac5ac"
],
"organization_names": [
"Sample Org"
],
"detailed_status": {
"f7d5c526-872f-451e-b119-634b376ac5ac": "in_progress"
}
}
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.