added
Tenable.io: Rename Agent
over 2 years ago by Lance Duvall
A new endpoint has been added to the Tenable.io API to allow users to rename agents. The endpoint accepts a string body parameter called name
to rename the agent.
The new endpoint is described in the following table:
New Endpoint | Name | Description |
---|---|---|
PATCH /scanners/null/agents/{agent_id} | Rename agent | Renames an agent |
Example
For example, to rename an agent with ID 4248431
to MYAGENT
, you could use the following cURL request:
curl --request PATCH \
--url https://cloud.tenable.com/scanners/null/agents/4248431 \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-ApiKeys: accessKey=<YOURKEY>;secretKey=<YOURKEY>' \
--data '{"name":"MYAGENT"}'