Update an existing Agent Policy
Headers
User's access token (bearer auth).
Request body
Example request
{
"name": "my-policy",
"description": "A policy example",
"tags": {
"region": "eu",
"node_type": "dns"
},
"policy": {
"handlers": {
"modules": {
"default_dns": {
"type": "dns"
},
"default_net": {
"type": "net"
}
}
}
}
}Response
Policy object
Example response
{
"name": "my-policy",
"description": "An example policy",
"tags": {
"region": "eu",
"node_type": "dns"
},
"backend": "pktvisor",
"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"
}Changes
Changed in 12 of the 25 revisions of this API.11813
- ▲
added the new required
headerrequest parameterAuthorizationto all path's operationsnew-required-request-default-parameter-to-existing-path
- ▲
added the new required
headerrequest parameterAuthorizationnew-required-request-parameter
- ●
deleted the
headerrequest parameterBearer authorizationrequest-parameter-removed
- ▲
- ▲
added the new required
headerrequest parameterBearer authorizationto all path's operationsnew-required-request-default-parameter-to-existing-path
- ▲
added the new required
headerrequest parameterBearer authorizationnew-required-request-parameter
- ●
deleted the
headerrequest parameterAuthorizationrequest-parameter-removed
- ▲
- ○
added the new optional request property
oneOf[PolicyUpdateReqSchemaJson]/policy/handlersnew-optional-request-property
- ○
added the new optional request property
oneOf[PolicyUpdateReqSchemaJson]/policy/inputnew-optional-request-property
- ○
added the new optional request property
oneOf[PolicyUpdateReqSchemaJson]/policy/kindnew-optional-request-property
- ○
added the optional property
formatto the response with the201statusresponse-optional-property-added
- ○
added the optional property
policy_datato the response with the201statusresponse-optional-property-added
- ○
- ▲
the
policyresponse's property type/format changed fromstring/toobject/for status201response-property-type-changed
- ▲
- ▲
the request's body type/format changed from
object/to/request-body-type-changed
- ●
removed the request property
descriptionrequest-property-removed
- ●
removed the request property
formatrequest-property-removed
- ●
removed the request property
namerequest-property-removed
- ●
removed the request property
policyrequest-property-removed
- ●
removed the request property
policy_datarequest-property-removed
- ●
removed the request property
tagsrequest-property-removed
- ○
added
PolicyUpdateReqSchemaJsonPolicyUpdateReqSchemaYamlto the request bodyoneOflistrequest-body-one-of-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
policyrequest property type/format changed fromstring/toobject/request-property-type-changed
- ○
added the new optional request property
formatnew-optional-request-property
- ○
added the new optional request property
policy_datanew-optional-request-property
- ▲
- ▲
the
policyrequest property type/format changed fromobject/tostring/request-property-type-changed
- ▲
the
policyresponse's property type/format changed fromobject/tostring/for status201response-property-type-changed
- ▲
- ○
added the new optional request property
policynew-optional-request-property
- ○
the response optional property
ts_createdbecame read-only for the status201response-optional-property-became-read-only
- ○
the response required property
idbecame read-only for the status201response-required-property-became-read-only
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲