Download OpenAPI specification:Download
limit | integer [ 1 .. 100 ] Default: 10 Size of the subset to retrieve. |
offset | integer >= 0 Default: 0 Number of items to skip during retrieval. |
name | string Name filter. Filtering is performed as a case-insensitive partial match. |
order | string Default: "id" Enum: "name" "id" Order type. |
dir | string Default: "desc" Enum: "asc" "desc" Order direction. |
tags | object Example: tags={"key":"value"} Tags filter. Filtering is performed as a case-insensitive partial key value match. |
Authorization required | any User's access token (bearer auth). |
{- "policy": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the new Policy configuration
name required | string A unique name label |
description | string User description of this Policy |
tags required | object User defined key/values for organization and searching |
version | integer Currente version of agent policy |
backend required | string Agent backend this policy is for. Cannot change once created. |
schema_version | string Schema version which needs to match the schema defined by the backend which will use the policy. |
required | object Agent backend specific policy data in json format |
{- "name": "my-policy",
- "description": "A policy example",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "version": 1,
- "backend": "pktvisor",
- "schema_version": "1.0",
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
id required | string <uuid> Unique Agent Policy identifier. |
Authorization required | any User's access token (bearer auth). |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
id required | string <uuid> Unique Agent Policy identifier. |
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the updated Policy configuration
name | string A unique name label |
description | string User description of this Policy |
tags | object User defined key/values for organization and searching |
object Agent backend specific policy data in json format |
{- "name": "my-policy",
- "description": "A policy example",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the new Policy configuration
name required | string A unique name label |
description | string User description of this Policy |
tags required | object User defined key/values for organization and searching |
version | integer Currente version of agent policy |
backend required | string Agent backend this policy is for. Cannot change once created. |
schema_version | string Schema version which needs to match the schema defined by the backend which will use the policy. |
required | object Agent backend specific policy data in json format |
{- "name": "my-policy",
- "description": "A policy example",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "version": 1,
- "backend": "pktvisor",
- "schema_version": "1.0",
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
id required | string <uuid> Unique Agent Policy identifier. |
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the Policy to be duplicate
name | string A unique name label |
{- "name": "my-policy"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-policy",
- "description": "An example policy",
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "backend": "pktvisor",
- "ts_created": "2019-08-24T14:15:22Z",
- "version": 0,
- "policy": {
- "handlers": {
- "modules": {
- "default_dns": {
- "type": "dns"
}, - "default_net": {
- "type": "net"
}
}
}, - "input": {
- "input_type": "pcap",
- "tap": "default_pcap"
}, - "kind": "collection"
}, - "format": "yaml",
- "policy_data": "handlers:\n modules:\n default_dns:\n type: dns\n default_net:\n type: net\ninput:\n input_type: pcap\n tap: default_pcap\nkind: collection"
}
limit | integer [ 1 .. 100 ] Default: 10 Size of the subset to retrieve. |
offset | integer >= 0 Default: 0 Number of items to skip during retrieval. |
name | string Name filter. Filtering is performed as a case-insensitive partial match. |
order | string Default: "id" Enum: "name" "id" Order type. |
dir | string Default: "desc" Enum: "asc" "desc" Order direction. |
tags | object Example: tags={"key":"value"} Tags filter. Filtering is performed as a case-insensitive partial key value match. |
Authorization required | any User's access token (bearer auth). |
{- "dataset": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "valid": true,
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "ts_created": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the new Dataset configuration
name required | string A unique name label |
agent_group_id required | string <uuid> A unique identifier of an agent_group |
agent_policy_id required | string <uuid> A unique identifier of an agent_policy |
sink_ids required | Array of strings <uuid> non-empty An array of one or more sink unique identifier |
{- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "valid": true,
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "ts_created": "2019-08-24T14:15:22Z"
}
id required | string <uuid> Unique Dataset identifier. |
Authorization required | any User's access token (bearer auth). |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "valid": true,
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "ts_created": "2019-08-24T14:15:22Z"
}
id required | string <uuid> Unique Dataset identifier. |
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the updated Dataset configuration
name | string A unique name label |
sink_ids | Array of strings <uuid> non-empty unique An array of one or more sink unique identifier |
{- "name": "my-dataset",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "valid": true,
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "ts_created": "2019-08-24T14:15:22Z"
}
Authorization required | any User's access token (bearer auth). |
JSON-formatted document describing the new Dataset configuration
name required | string A unique name label |
agent_group_id required | string <uuid> A unique identifier of an agent_group |
agent_policy_id required | string <uuid> A unique identifier of an agent_policy |
sink_ids required | Array of strings <uuid> non-empty An array of one or more sink unique identifier |
{- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-dataset",
- "agent_group_id": "4f51d64b-3a46-4641-aa07-41a47534d8ba",
- "agent_policy_id": "94cde23b-50ed-4f7a-9096-f50a6e9e7da4",
- "sink_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "valid": true,
- "tags": {
- "region": "eu",
- "node_type": "dns"
}, - "ts_created": "2019-08-24T14:15:22Z"
}