create_entry_location
This command adds an archive catalog entry to the catalog location table.
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/entry_location
GuardAPI syntax
create_entry_location parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
entryType | String | Required. The type of archive file. Valid values:
|
fileName | String | Required. The name of the archive file in one of these formats:
|
hostName | String | Required. The hostname or IP address. |
password | String | The user's password.
|
path | String | Required. The path to the archive directory.
|
processDesc | String | Required when the entryType = AggResultArchive. |
retention | Integer | The number of days to keep the entry in the catalog. Default = 365 |
storageSystem | String | Required. The type of archive storage system. For valid values, call create_entry_location
from the command line with --help=true .
|
user | String | The user account to access the host.
Attention: For storageSystem type
FTP, the user value cannot include any of the following
characters: ! " $ & ' ( ) ; \ |
|
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
grdapi create_entry_location entryType=CollectorDataArchive
fileName=733392-a1.corp.com-w20071223.133546-d2007-12-27.dbdump.enc password=somePassword
user=someUser path=/var/dump/ hostName=192.168.1.241 storageSystem=scp