create_cas_template_set

This command creates a template set for the Configuration Auditing System (CAS).

A CAS template set contains a list of item templates that are bundled together. Each CAS template set shares a common purpose such as monitoring a particular type of database (such as Oracle on UNIX). A database template set is always specific to both the database type and the operating system type.

This API is available in Guardium V9.5 and later.

REST API syntax

This API is available as a REST service with the POST method. Call this API as follows:
POST https://[Guardium hostname or IP address]:8443/restAPI/cas_template_set

GuardAPI syntax

create_cas_template_set parameter=value

Parameters

Parameter Value type Description
dbType String Required. The database type.

If you enter a database type that is not supported (or you misspell it), Guardium displays a list of supported DBs. If the template set does not require a specific DB type, specify N_A.

isDefault Boolean Valid values:
  • 0 (false)
  • 1 (true): This template set is the default.
isEditable Boolean Valid values:
  • 0 (false)
  • 1 (true): This template set can be modified.
osType String Required. The operating system type can be either:
  • UNX: UNIX
  • WIN: Windows
templateSetLabel String Required. The name of this template set.

REST API Example

To create a CAS template set for Db2 on UNIX:

curl -k --header "Authorization:Bearer 8ad14246-8815-4043-ab19-074d6bfcaad3" -i -X POST -d '
{"dbType":"DB2","osType":"UNX","templateSetLabel":"cas_temp_set_001"}'  
https://localhost:8443/restAPI/cas_template_set