POST SecretStore/LookupAllAssociationsbyVaultid
Returns certificate subject information and Secret Store attributes that are associated with a vault entry.
This API call only returns the following certificate association attributes: 'Store Archived', 'Store Added', 'Hash', 'Serial', 'Key Algorithm', 'Label', 'Template Major Version', 'Template Minor Version', 'Template Name', and 'Template Oid'. To obtain comprehensive details and validation information for a certificate, please use the Certificates API.
Requirements
- Permissions: The Write permission to the owner.
- Token scope: Restricted
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
Specify one Name parameter and corresponding Certificate or Secret Store attribute.
Name |
Description |
---|---|
VaultID |
Required. The integer that uniquely identifies the vault entry. To get the correct VaultID, use POST SecretStore/LookupByOwner. If you want the value of a specific association for a Vault ID, use POST SecretStore/LookupByVaultType instead. |
Returns
Name |
Description |
---|---|
Result |
A number indicating the status:
|
TypedNameValues |
An array of all associated values that correspond to the vault entry.
|
Request for Example 1
POST https://tpp.venafi.example/vedsdk/SecretStore/LookupAllAssociationsbyVaultid Authorization:Bearer 4MyGeneratedBearerTknz== { "VaultID": "75797" }
Response for Example 1
HTTP/1.1 200 OK
{ "Result":0, "TypedNameValues":[ { "Name":"Hash", "Type":"string", "Value":"60447BB534017DF56C22B2C5199D677B3C352F11" }, { "Name":"Key Algorithm", "Type":"string", "Value":"RSA" }, { "Name":"Serial", "Type":"string", "Value":"6D11B10E1574B11732E9B28D81000000B10E15" }, { "Name":"Template Major Version", "Type":"long", "Value":"100" }, { "Name":"Template Minor Version", "Type":"long", "Value":"Venafi" }, { "Name":"Template Oid", "Type":"string", "Value":"1.3.6.1.4.1.311.21.8" }
] }