POST Codesign/GetRight
Returns caller rights for a given CodeSign Protect object.
Requirements
- Permissions: None.
- Token scope: Codesign: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 |
---|---|
Dn |
The Distinguished Name (DN) of an object. Use the appropriate syntax. For example, in Postman:
|
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: Show the caller's rights for an environment
The following example shows that the caller has the rights of a Code Signing Administrator.
Request
POST https://codesign.venafi.example//vedsdk/Codesign/GetRight Authorization:Bearer 4MyGeneratedBearerTknz== { "Dn":"\\VED\\Code Signing\\Projects\\Sample\\Development Environment" }
Response
HTTP/1.1 200 OK { "Result":1, "Rights":1, "Success":true }