datamart_update_copy_file_info
This command modifies a user-defined and predefined file data mart export.
This API is available in Guardium V9.5 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/datamart_update_copy_file_info
GuardAPI syntax
datamart_update_copy_file_info parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
destinationHost | String | Required. Hostname of target server. |
destinationPassword | String | Required if you are using a username and password for authentication. Password for the user specified by destinationUser. |
destinationPath | String | Required. Path to location to store the data mart extraction. |
destinationPort | String | Required. The port number for the destination. |
destinationUser | String | Required. User with write access to the destination path. |
failoverDestinationHost | string | If the export to destinationHost fails, then Guardium attempts to export the files to failoverDestinationHost. destinationHost and failoverDestinationHost must have the same credentials and path (destinationPath). The output to get_datamart_info shows the server to which results were last sent. |
Name | String | Required. Data mart name |
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:
|
validate | Boolean | Valid values:
Default = 1 (true) |
withCOMPLETEfile | Boolean | A complete file is sent after a data file is successfully transferred. Valid values:
Default = 1 (true) |
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. |
Example
To update the Export:Session Log transfer method to SCP:
grdapi datamart_update_copy_file_info destinationHost=server22 destinationPassword=passpass destinationPath=<destination server> destinationUser=useruser
Name="Export:Session Log" transferMethod=SCP