Host secret rotation script templates
/secrets-manager/api/v1/script-templates
Get all host secret rotation script templates
oauth
Required Scopes:
admin
hostsView
service
Get all host secret rotation script templates
All Scopes
admin
· Admin scope - used for built-in PrivX admin accounthostsManage
· User with "hosts-manage" permissionhostsProvisioning
· Deploy script client scopehostsView
· User with "hosts-view" permissionservice
· Microservice scope - used for communication between PrivX microservicestargetDomainsManage
· User with "target-domains-manage" permissiontargetDomainsView
· User with "target-domains-view" permissionuser
· Normal userscript template response
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"operating_system": "LINUX",
"script": "string",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"created_by": "string",
"updated_by": "string"
}
]
}
/secrets-manager/api/v1/script-template
Create a host secret rotation script template
name
string
script
string
{
"name": "string",
"script": "string"
}
inserted
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}
/secrets-manager/api/v1/script-template/{id}
Get a host secret rotation script template by ID
id
string
required
scripts array
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"operating_system": "LINUX",
"script": "string",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"created_by": "string",
"updated_by": "string"
}
/secrets-manager/api/v1/script-template/{id}
Update a host secret rotation script template by ID
id
string
name
string
operating_system
string
powershell for windows and Unix Shell for Linux
script
string
script as string
created
string
When the object was created. Added by backend
updated
string
When the object was updated. Added by backend
created_by
string
added by backend
updated_by
string
added by backend
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"operating_system": "LINUX",
"script": "string",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"created_by": "string",
"updated_by": "string"
}
inserted
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"operating_system": "LINUX",
"script": "string",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"created_by": "string",
"updated_by": "string"
}
/secrets-manager/api/v1/script-template/{id}
Delete a host secret rotation script template by ID
id
string
required
deleted
Empty response
/secrets-manager/api/v1/script-template/compile
Compile a script template with test data
operating_system
string
script
string
{
"operating_system": "LINUX",
"script": "string"
}
example script
{
"script": "string"
}
Was this page helpful?