POST Codesign/EnumerateTemplates

Returns all user-defined Venafi CodeSign Protect Environment Templates. User-defined templates contain default settings that are either be required or suggested.

Requirements

  • Permissions:  None. Anyone can view templates. However, some templates may have limited visibility.
  • Token scope:  Codesign

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

{} 

Returns all environment templates.

Filter

The template name.

Returns

Response description

Name

Description

HTTP 200

For valid requests, this call returns a HTTP 200 message and the following data in the message body:

HTTP 400

For invalid requests, this call returns HTTP 400 Bad Request and the following data in the message body:

  • error: The reason for the error.
  • error_description: If available, additional information about how to retry the request.

Example: List all templates

Request

POST https://codesign.venafi.example/vedsdk/Codesign/EnumerateTemplates
Authorization:Bearer 4MyGeneratedBearerTknz==
{
}

Response

HTTP/1.1 200 OK
{
   "AppleTemplates":[...],
   "CSPTemplates":[...],
   "CertificateTemplates":[...],
   "DotNetTemplates"[...],
   "GPGTemplates":[...],
   "KeyPairTemplates"[...],
   "Result":1,
   "Success":true
}