Elastic Agent policies

Copy an agent policy

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agent_policies/{agentPolicyId}/copy</span></div>

Refer to Spaces for more information.

Copy an agent policy by ID.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-all.

post/api/fleet/agent_policies/{agentPolicyId}/copy

Path parameters

agentPolicyIdstring required

The ID of the agent policy

Query parameters

format'simplified' | 'legacy'

Format for the response: simplified or legacy

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

descriptionstring
namestring required

Response

Successful response

Changes

Changed in 1 of the 176 revisions of this API.2

    • ○

      added the optional property / to the response with the status

      response-optional-property-added

    • ○

      response property item/download_source_id deprecated

      response-property-deprecated

Of the 176 revisions, 20 have no diff computed.