/agents/{id}/properties [ POST ]

Modifies an existing agent properties.
 

URL Parameters


Name Optional Valid values
id No Identifier/name of an existing agent (e.g. my_agent)


Body Parameters


Name Optional Valid values
No list of key-value property maps


Request Examples      

## set termination protection flag

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '[
     { "key": "opereto.termination_protection", "value": true}
]' https://localhost/agents/my_agent/properties

     

## set agent owners and users

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '[
     { "key": "opereto.owners", "value": "john,test,admin"},
     { "key": "opereto.users", "value": "john,test,admin"}
]' https://localhost/agents/my_agent/properties

 

## add some classification properties

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '[
     { "key": "is_tomcat", "value": true},
     { "key": "tomcat_version", "value": "9.1"},
]' https://localhost/agents/my_agent/properties

        

Response Example     

{
    "status": "success"
}