POST PKI/HashiCorp/CA/{guid}

Creates or updates roles in the HashiCorp Vault PKI secrets engine according to the Trust Protection Platform configuration.

Requirements

  • Permissions:  The caller must have Read permission to the PKI application object and role policy folder object.
  • Token scope:  Certificate:Manage

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.

HTTP 200

For valid requests, this method returns a HTTP 200 message and the

CreatePkiResponse object.

Example: Apply role settings to roles of the HashiCorp Vault PKI secrets engine

Request for Example

POST https://test.venafi.example/vedsdk/PKI/HashiCorp/CA/{fb1a5f69-3911-4b72-8037-e5ed9faac529}
Authorization:Bearer 4MyGeneratedBearerTknz==

Response for Example

HTTP/1.1 200 OK
{
    "CertificateDN": "\\VED\\Policy\\HashiCorp\\pan.test2.com",
    "CertificateGuid": "{701bcdc8-d3cc-4206-87cd-ee38a1d24401}",
    "Guid": "{fb1a5f69-3911-4b72-8037-e5ed9faac529}"
}