GET PKI/HashiCorp/CA/{guid}

Retrieves details about a HashiCorp Vault PKI secrets engine. Trust Protection Platform stores information about the Vault PKI configuration and renewal settings for the intermediate CA certificate.

Requirements

  • Permissions:  The caller must have View permission and Read permission.
  • Token scope:  Certificate

Headers

  • Content type: Content-Type:application/json.

  • Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.

Parameters

Input parameters

Name

Description

{guid}

In the request URL, specify the GUID of the HashiCorp application object. In Trust Protection Platform, the GUID represents the HashiCorp Vault PKI secrets engine in the Vault. To get the GUID, call GET PKI/HashiCorp/CA.

Returns

Response description

Name

Description

HTTP 400

For invalid requests, this method returns an error message for bad parameters, data, or syntax.

  • Device [application.Parent] does not exist or you do not have sufficient rights to the object.

HTTP 200

For valid requests, Certificates/Request returns a HTTP 200 message and a PkiResponse object.

Example: Get HashiCorp certificate information

Request for Example 1

GET https://tpp.venafi.example/vedsdk/PKI/HashiCorp/CA/{d790add4-d9e7-474a-a667-f397b1b2f12d}
Authorization:Bearer 4MyGeneratedBearerTknz==

Response Example 1

HTTP/1.1 200 OK
{
   "Certificate":{
      "City":"SLC",
      "CommonName":"www.test.venafi.com2",
      "Country":"US",
      "KeyAlgorithm":"RSA",
      "KeyBitSize":"2048",
      "Organization":"Venafi",
      "State":"UT"
   },
   "CreateCertificateAuthority":false,
   "CreatePKIRole":false,
   "FolderDn":"\\VED\\Policy\\VK\\HashiCorp",
   "Installation":{
      "CredentialDn":"\\VED\\Policy\\msca_cred",
      "Host":"192.168.1.150"
   },
   "PkiPath":"pki-issuer",
   "Roles":[
      "{9bdb1c2b-f472-4e15-bb88-8b3afad9990c}"
   ]
}