POST Config/AddPolicyValue
Adds an attribute value to a Policy object for the specified object class.
Requirements
- Permissions: The caller must have Manage permission to the requested Policy object.
- Token scope: Configuration:Manage
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 |
|---|---|
|
ObjectDN |
The Distinguished Name (DN) of the policy object to add the value to. |
|
AttributeName |
The name of the attribute. For more information, see How to find class names and attributes. |
|
Class |
The class name of the policy attribute. |
|
Value |
The value to add. |
|
Locked |
Indicates if the attribute should be locked, enforcing policy. |
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: Add a policy value
Request
POST https://tpp.venafi.example/vedsdk/Config/AddPolicyValue
Authorization:Bearer 4MyGeneratedBearerTknz==
{
"ObjectDN":"\\VED\\Policy\\TestPolicy",
"Class":"X509 Certificate",
"AttributeName":"Organization",
"Value":"Testing",
"Locked":"false"
}
Response
HTTP/1.1 200 OK
{
"Result":1
}