/secrets-manager/api/v1/script-templates
get all script templates
oauth
Required Scopes:
admin
hostsView
service
get all script templates
All Scopes
admin
· Admin scope - used for built-in PrivX admin accounthostsManage
· Clients with hosts-manage scopehostsProvisioning
· Deploy script usershostsView
· Clients with hosts-view scopeservice
· Microservice scope - used for communication between PrivX microservicestargetDomainsManage
· Clients with target-domains-manage scopetargetDomainsView
· Clients with target-domains-view scopeuser
· Normal usersscript 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
insert a new script template to db
name
string
script
string
{
"name": "string",
"script": "string"
}
inserted
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}
/secrets-manager/api/v1/script-template/{id}
get a script template
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 script template
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 script template
id
string
required
deleted
Empty response
/secrets-manager/api/v1/script-template/compile
compile script with test data
operating_system
string
script
string
{
"operating_system": "LINUX",
"script": "string"
}
example script
{
"script": "string"
}
Was this page helpful?