POST Config/EnumerateAll

Returns all Config objects matching the specified pattern for the Distinguished Name (DN).

Requirements

  • Permissions:  In order for the enumeration to work properly, the caller must have View permission to the requested object.
  • Token scope:  Configuration

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

Pattern

An expression for filtering DN matches:

  • To list DNs that include an asterisk (*) or question mark (?), prepend two backslashes (\\). For example, \\*.MyCompany.net treats the asterisk as a literal character and returns only certificates with DNs that match *.MyCompany.net.
  • To list DNs with a wildcard character, append a question mark (?). For example, "test_?.mycompany.net" counts test_1.MyCompany.net and test_2.MyCompany.net but not test12.MyCompany.net.
  • To list DNs with similar names, prepend an asterisk. For example, *est.MyCompany.net, counts Test.MyCompany.net and West.MyCompany.net.
  • You can also use both literals and wildcards in a pattern.

    NOTE  Web SDK wildcards operate differently than the UI wildcards. For REST API calls, be sure to follow the guidelines stated in this section.

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:

  • Error: Appears only when the operation cannot supply the necessary data. Provides only a description and Result. No other data.
  • Objects: An array of object details:

    • AbsoluteGUID: The left-to-right concatenation of all of the GUIDs for all of the objects in the DN.
    • DN: The Distinguished Name (DN) of the object.
    • GUID: The GUID that identifies the object.
    • ID: The object identifier.
    • Name: The Common Name (CN) of the object.
    • Parent: The parent DN of the object.
    • Revision: The revision of the object.
    • TypeName: the class name of the object.
  • Result: The result code that indicates the reason for success or failure. For more information, see Config result codes.

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 Config objects

Request

POST https://tpp.venafi.example/vedsdk/Config/EnumerateAll
Authorization:Bearer 4MyGeneratedBearerTknz==
{
   "Pattern":"*devi*"
}

Response

HTTP/1.1 200 OK
{
   "Objects":[
      {
         "AbsoluteGUID":"{dc817d30...}{35df8f14...}{3d7e8e7b...}{21508a66...}{705f8c7b...}",
         "DN":"\\VED\\Clients\\Work\\UA-SSH-test\\ssh device placement work",
         "GUID":"{705f8c7b-7064-403d-82e4-6076b229cf55}",
         "Id":5855,
         "Name":"ssh device placement work",
         "Parent":"\\VED\\Clients\\Work\\UA-SSH-test",
         "Revision":635636047565094643,
         "TypeName":"Client Agent Device Placement Work"
      },
      {
         "AbsoluteGUID":"{dc817d30...{db3354d9...}{8d9549fb-6fa3...}{c80813bd...}",
         "DN":"\\VED\\Policy\\EMEA\\Test Device 12",
         "GUID":"{c80813bd-d708-48d8-85f4-06859bdd26a3}",
         "Id":8186,
         "Name":"Test Device 12",
         "Parent":"\\VED\\Policy\\EMEA",
         "Revision":636081393195417562,
         "TypeName":"Device"
      }
   ],
   "Result":1
}