configure_results_archive
Use this API to configure the results archive on one or more Guardium® systems.
This API is available in Guardium V11.1 and later.
REST API syntax
This API is available as a REST service with the
PUT
method. Call this API as
follows:
PUT https://[Guardium hostname or IP address]:8443/restAPI/results_archive_comfiguration
GuardAPI syntax
configure_results_archive parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
accessKey | String | Required for Cleversafe; and for Amazon S3 when authType=Security-Credentials or authType=IAM-Role. Identifies user as the party responsible for service requests. It needs to be included it in each request. It is not confidential and does not need to be encrypted. (20-character, alphanumeric sequence). |
archiveOlderThan | Integer | Required. The archive includes data older than this number of days. For example, to archive all data from yesterday and older than yesterday, set archiveOlderThan to 1. |
archiveValues | Integer | Required. Whether the archive data includes values from SQL strings. Valid values:
|
authType | String | Required for Amazon S3 only. Valid values:
|
bucketName | String | Required for Amazon S3 and Cleversafe only. The unique bucket name. |
destHost | String | Host name of the target archive server. |
ignoreOlderThan | Integer | Required. Together with archiveOlderThan, specifies the time interval of data to archive: data that is older than this value, in days, is not exported. |
passwd | String | Required. Password for the target archive server. |
passwdRetype | String | Required. Password for the target archive server. |
port | Integer | Required. Port on the target archive server. |
protocol | String | Required. For valid values, call configure_results_archive
from the command line with --help=true .
|
region | String | Required for AmazonS3. Valid values:
|
retention | Integer | Required for Centera only. Number of days to retain the archive data on the target archive server. |
secretKey | String | Required for Amazon S3 and Cleversafe only. The Secret Access Key is associated with the Access Key ID, used to calculate the digital signature that needs to be included in the request. (Only the user and AWS should have this 40-character sequence. ) |
ssh_key_active | Boolean | Enables data transfer using the SSH key. Enable the SSH key feature with
the CLI command store system scp-ssh-key-mode on. Generate ssh-key pairs and copy
the public part of the key, public-transfer-key , to the remote host. For more
information, see Enabling ssh-key pairs for data archive, data export, data mart. Valid
values:
|
transferMethod | String | Required. Valid values:
|
targetDir | String | Required. The target directory on the target archive server. |
userName | String | Required. User name for the target archive server. |
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. |
Examples
To archive results older than 1 day but not older than 2 days, including the SQL strings, to an SCP server, with the username USER and password PASSW:
grdapi configure_results_archive archiveOlderThan=1 archiveValues=1 ignoreOlderThan=2 userName=USER passwd=PASSW passwdRetype=PASSW destHost=<full path to target archive host> port=<port> protocol=SCP targetDir=<directory on target archive server>