POST Config/EnumerateObjectsDerivedFrom
Returns all Config objects derived from the specified class. If the class inherits from a parent, the return data also includes parent classes. For more information, see Parent class—Credential Base.
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
|
Name |
Description |
|---|---|
|
DerivedFrom |
The name of the parent class for which derived objects should be returned for. |
|
Pattern (Optional) |
Pattern by which to filter the response:
|
Returns
|
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:
|
Example: Find parent class for an object
Request
POST https://tpp.venafi.example/vedsdk/Config/EnumerateObjectsDerivedFrom
Authorization:Bearer 4MyGeneratedBearerTknz==
{
"DerivedFrom":"CredentialBase"
}
Response
HTTP/1.1 200 OK
{
"Objects":[
{
"AbsoluteGUID":"{8da2eb3d}{26efe6cb}{dad47f6c}",
"DN":"\\VED\\Policy\\PasswordCred",
"GUID":"{dad47f6c}",
"Name":"PasswordCred",
"Parent":"\\VED\\Policy",
"TypeName":"PasswordCredential"
}
],
"Result":1
}