GET PKI/HashiCorp/Role/{guid}
Retrieves policy information from Trust Protection Platform about a HashiCorp Vault PKI role.
Requirements
- Permissions: The caller must have View permission and Read permission to the role Policy object.
- 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
|
Name |
Description |
|---|---|
|
{guid} |
In the request URL, specify the GUID that uniquely identifies a HashiCorp role. To get the GUID, call POST Config/FindObjectsOfClass with these parameters:
|
Returns
| Name | Description |
|---|---|
|
HTTP 400 on Error |
For invalid requests, this method returns: Error: An error message for invalid parameters data, or syntax.
|
|
HTTP 200 on Success |
For valid requests, this method returns a HTTP 200 message and the following message body:
|
Example: List information about a HashiCorp role
Request
GET https://test.venafi.example/vedsdk/PKI/HashiCorp/Role/{a146f27d-2901-42f2-be01-541f0e640d35}
Authorization:Bearer 4MyGeneratedBearerTknz==
Response
HTTP/1.1 200 OK
{
"City":"SLC",
"Country":"US",
"EnhancedKeyUsage":"string",
"Error":null,
"FolderDn":"\\VED\\Policy\\HashiCorp\\TestRole",
"Guid":"{1951b602-ee26-4222-bd28-64f8b6f57db7}",
"KeyAlgorithm":"EC",
"KeyBitSize":"p512",
"Organization":"Venafi",
"OrganizationalUnits":[
"Lab 71"
],
"RoleName":"TestRole",
"State":"UT",
"WhitelistedDomains":[
"OKdomain.com"
]
}