/host-store/api/v1/whitelists
Get all whitelists
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects to return
sortkey
string
Sort by specific object property
sortdir
string
Sort direction, asc or desc
Successful request, respond with a list of whitelists
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"comment": "string",
"type": "glob",
"whitelist_patterns": [
"string"
],
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"author": "5bf77342-221c-11ee-be56-0242ac120002",
"updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
}
]
}
/host-store/api/v1/whitelists
Create a whitelist
id
string
Whitelist ID
name
string
required
Unique whitelist name displayed in UI
comment
string
Optional comment displayed in UI
type
string
required
Whitelist pattern type
whitelist_patterns
array
created
string
When the object was created. Added by backend
updated
string
When the object was updated. Added by backend
author
string
added by backend
updated_by
string
added by backend
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"comment": "string",
"type": "glob",
"whitelist_patterns": [
"string"
],
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"author": "5bf77342-221c-11ee-be56-0242ac120002",
"updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
}
Whitelist successfully created
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}
/host-store/api/v1/whitelists/{id}
Get a whitelist
id
string
required
Successful request, respond with a whitelist object
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"comment": "string",
"type": "glob",
"whitelist_patterns": [
"string"
],
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"author": "5bf77342-221c-11ee-be56-0242ac120002",
"updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
}
/host-store/api/v1/whitelists/{id}
Update a whitelist
id
string
Whitelist ID
name
string
required
Unique whitelist name displayed in UI
comment
string
Optional comment displayed in UI
type
string
required
Whitelist pattern type
whitelist_patterns
array
created
string
When the object was created. Added by backend
updated
string
When the object was updated. Added by backend
author
string
added by backend
updated_by
string
added by backend
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"comment": "string",
"type": "glob",
"whitelist_patterns": [
"string"
],
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"author": "5bf77342-221c-11ee-be56-0242ac120002",
"updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
}
Whitelist successfully updated
Empty response
/host-store/api/v1/whitelists/{id}
Delete a whitelist
id
string
required
Whitelist successfully updated
Empty response
/host-store/api/v1/whitelists/search
Search whitelists
keywords
string
Comma or space-separated strings to search in whitelists' id, name, comment or type. The leading and trailing wildcards for the keywords are implicit.
{
"keywords": "string"
}
Successful request, respond with a list of whitelists
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"name": "string",
"comment": "string",
"type": "glob",
"whitelist_patterns": [
"string"
],
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"author": "5bf77342-221c-11ee-be56-0242ac120002",
"updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
}
]
}
/host-store/api/v1/whitelists/evaluate
Evaluate commands against whitelist patterns
whitelist
object
type
string
Whitelist pattern type
whitelist_patterns
array
rshell_variant
string
Shell variant
commands
array
{
"whitelist": {
"type": "glob",
"whitelist_patterns": [
"string"
]
},
"rshell_variant": "bash",
"commands": [
"string"
]
}
Successful request, respond with whitelist evaluate response
{
"whitelist_pattern_results": [
{
"whitelist_pattern": "string",
"status": [
"OK"
]
}
],
"command_results": [
{
"command": "string",
"allowed": true
}
]
}
Was this page helpful?