Newer Version Available
ExternalEncryptionRootKey
Supported Calls
describeSObjects(), query(), update()
Special Access Rules
Fields
| Field | Details |
|---|---|
| ActivatedDate |
|
| CreatedBy |
|
| Description |
|
| LastModifiedBy |
|
| Region |
|
| RootKeyIdentifier |
|
| RootKeyService |
|
| Status |
|
Usage
Three functions are available: describeSObjects(),query(), and update()
Use your preferred developer environment to run the examples. Use the Salesforce developer Introduction to REST API for basic information on making REST calls into Salesforce. Also, Introducing the Salesforce Shield Platform Encryption REST API gives you starter information on using REST to work with Shield Platform Encryption.
- Describe an external root key with describeSObjects()
-
To get information about the ExternalEncryptionRootKey sObject, use describe.
1curl --location 'https://DOMAIN.my.salesforce.com/services/data/v62.0/sobjects/'\ 2ExternalEncryptionRootKey/describe' 3--header 'Content-Type: application/json' \ 4--header 'Authorization: Bearer TOKEN'On success, the response is the full JSON description of the ExternalEncryptionRootKey sObject.
- Get info on an external root key with query()
-
To get information about a specific root key, use query on the ExternalEncryptionRootKey sObject. Use the Identifier value as listed on the Key Management Page for the root key Id in the WHERE clause.
1curl --location 'https://DOMAIN.my.salesforce.com/services/data/v62.0/query?' \ 2?q=SELECT+FIELDS(ALL)+FROM+ExternalEncryptionRootKey+WHERE+Id='48q001t5ddzbucnAAA'+\ 3--header 'Content-Type: application/json' \ 4--header 'Authorization: Bearer TOKEN'On success, the response is be similar to
1{ 2 "totalSize": 1, 3 "done": true, 4 "records": [ 5 { 6 "attributes": { 7 "type": "ExternalEncryptionRootKey", 8 "url": "/services/data/v62.0/sobjects/ExternalEncryptionRootKey/48q001t5ddzbucnAAA" 9 }, 10 "Id": "48q001t5ddzbucnAAA", 11 "RootKeyIdentifier": "97ee8238-c5ac-4320-a2d0-a728aaefd567", 12 "CreatedDate": "2024-08-05T17:32:11.841+0000", 13 "CreatedBy": "charley.t.pulasky@wise-raccoon-od1ly6.com", 14 "LastModifiedDate": "2025-02-12T18:36:11.063+0000", 15 "LastModifiedBy": "charley.t.pulasky@wise-raccoon-od1ly6.com", 16 "RootKeyService": "SF", 17 "Region": "KEY REGION", 18 "Status": "Active", 19 "Description": null, 20 "ActivatedDate": null 21 } 22 ] 23} - Update Status on an external root key with update()
-
To update the status of an ExternalEncryptionRootKey from Active to Inactive, or from Inactive to Active, use PATCH on the specific key object. Use the vaule for Identifier as listed on the Key Management Page for the root key identifier.
1curl --location --request PATCH 'https://DOMAIN.my.salesforce.com/services/data/v62.0/sobjects/ExternalEncryptionRootKey/ROOTKEYIDENTIFIER' \ 2--header 'Content-Type: application/json' \ 3--header 'Authorization: Bearer TOKEN'\ 4--data '{ 5 "Status": "Active" 6}'On success, the response is be similar to I SEE NO RESPONSE.