Modify a Dictionary Using API
It is possible to update existing Policy Dictionaries using the API in order to automate the process of adding new content to your dictionaries.
NOTE: It is not possible to delete or create dictionaries using the API.
For complete details on the APIs, see Skyhigh CASB APIs.
Get the Dictionary ID
In order to add new content to a Policy Dictionary using the API, you must first know the Dictionary’s Dictionary ID.
Endpoint Name:
- https://www.myshn.net/shnapi/rest/dlp/dictionary
Required Method:
- GET
Required Headers:
- Authorization: Basic Auth (User name and password used to access the Skyhigh CASB Cloud Manager)
- Content-Type: application/json
Sample Request:
The 'id' and 'name' can have random values. Obtain the Dictionary ID for the target dictionary from the response JSON.
|
Post New Content to the Dictionary
Once you have the Dictionary ID for your target dictionary, you can use the Dictionary ID to create new content for the Policy Dictionary.
Endpoint Name:
https://www.myshn.net/shnapi/rest/dlp/dictionary
Required Method:
- PUT
Required Headers:
- Authorization: Basic Auth (User name and password used to access the Skyhigh CASB Cloud Manager)
- Content-Type: application/json
Required Parameters:
- ID: The Dictionary ID for the request. This is the unique identifier for the target dictionary
- Name: The unique name of the target dictionary
- Content: A comma-separated list of the new content to be added to the target dictionary
Sample Request:
|