create_hashicorp_config

This command creates a HashiCorp configuration on your Guardium® system.

This API is available in Guardium v11.4 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/hashicorp

GuardAPI syntax

create_hashicorp_config parameter=value

Parameters

Parameter Value type Description
AuthType String Required. For valid values, call create_hashicorp_config from the command line with --help=true.
name String Required. The name of the HashiCorp configuration.
password String The username.
username String The password.
useTLS Boolean Transport Layer Security (TLS) with server-side or client-side authentication.
Valid values:
  • 0 (false)
  • 1 (true)

Default = 1 (true)

vaultHostName String Required. The vault hostname.
vaultPortNumber Integer Required. The port number.

Examples

This example creates a configuration with a username and password with no Transport Layer Security (TLS):
grdapi create_hashicorp_config AuthType="Username & Password" name="No TLS User and password API" username="apps" password="guardium" useTLS="false" vaultHostName="hostname" vaultPortNumber="8300"
This example creates a configuration with TLS server authentication:
grdapi create_hashicorp_config AuthType="Username & Password" name="TLS User and password API" username="apps" password="guardium" useTLS="true" vaultHostName="hostname" vaultPortNumber="8500"
This example creates a configuration with TLS client authentication. The username and password is not required:
grdapi create_hashicorp_config AuthType="TLS Certificates" name="TLS Client Cert API" useTLS="true" vaultHostName="hostname" vaultPortNumber="8200"