POST Codesign/GetApplication

Returns information about a signing application that is known within CodeSign Protect.

Requirements

  • Permissions:  None. Anyone can view Applications
  • 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

Specify one of the following parameters. To get any of these values, call POST Codesign/EnumerateApplications.

Input parameters

Name

Description

Dn

(Optional) The Distinguished Name (DN) of the signing application. Use the appropriate syntax. For example, in Postman: \\VED\\Code Signing\\Signing Applications\\[YourSgnApp].

Guid

(Optional) The GUID that uniquely identifies the signing application.

ID

(Optional) The signing application identifier.

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:

  • Application: The array of SignApplicationCollections.
  • Error: Appears only when Success is false. An error message that accompanies the Result. Check your payload input values.

  • Result: The Result code of this API call. For more information, see Sign Result Codes.

  • Success: The result of this API call: A value of false indicates the request failed due to an Error. Otherwise, true.

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: Find signing tool information, such as hash

Request

POST https://codesign.venafi.example/vedsdk/Codesign/GetApplication
Authorization:Bearer 4MyGeneratedBearerTknz==
{
   "Dn":"\\VED\\Code Signing\\Signing Applications\\Signtool - v7.1A"
}

Response

HTTP/1.1 200 OK
{
   "Application":{
      "Dn":"\\VED\\Code Signing\\Signing Applications\\Signtool - v7.1A",
      "Guid":"{8f168386-0136-44b2-8bda-43327a7aa2c1}",
      "Hash":"FC8A501D7AEC932910B30D0597B813A5187DBD4F629146AFBF4EC047ACB9E6C5",
      "Id":392,
      "SignatorySubject":"Microsoft Corporation"
   },
   "Result":1,
   "Success":true
}