list_cas_template_sets
This command returns a list of the Configuration Auditing System (CAS) template sets. You can filter the returned list by database, operating system, or both.
This API is available in Guardium V9.5 and later.
REST API syntax
GET
method. Call this API as follows:
GET https://[Guardium hostname or IP address]:8443/restAPI/cas_template_set
GuardAPI syntax
list_cas_template_sets parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
dbType | String | The database type. If you enter a database type that is not supported (or you misspell it), Guardium displays a list of supported DBs. To list templates that do not require a specific DB type, specify N_A. |
osType | String | The operating system type can be either:
|
api_target_host | String |
Specifies the target hosts where the API executes. Valid values:
IP addresses must conform to the IP mode of your network. For dual IP mode, use the same IP protocol with which the managed unit is registered with the central manager. For example, if the registration uses IPv6, specify an IPv6 address. The hostname is independent of IP mode and can be used with any mode. |
GuardAPI example
To request a list of template sets on Windows for Oracle:
grdapi list_cas_template_sets osType=WIN dbType=Oracle
Id, templateSetLabel, osType, dbType, Default, editable 17, Default Windows/Oracle Template Set, WIN, ORACLE, true, false 55, Default Windows/Oracle Template Set v8.0, WIN, ORACLE, true, false 34, Windows/Oracle Assessment, WIN, ORACLE, false, false
REST API example:
To list CAS template sets for Db2:
curl -k -i --header "Authorization: Bearer 8ad14246-8815-4043-ab19-074d6bfcaad3"
https://localhost:8443/restAPI/cas_template_set?dbType=DB2
[ { "audit_config_template_set_id": 20001, "label": "cas_temp_set_001", "os_type": "UNX", "db_type": "DB2", "default": "true", "editable": "true" }, { "audit_config_template_set_id": 20000, "label": "dd", "os_type": "UNX", "db_type": "DB2", "default": "true", "editable": "true" } }