seteach

<< Click to Display Table of Contents >>

Navigation:  API > servergroups >

seteach

Description

Sets a PowerTags value for each server within the server cluster.

Syntax

https://api.cameyo.com/servers/[server-id]/set?clientId=...&clientSecret=...&powertags=!TAG=value

Required parameters

powertags: KEY=value, where KEY is the PowerTag's name and value is its value. Several PowerTags can be specified, separated by double colon "::".

oSpecial PowerTag values:

[CLEAR] (no key, no value): clears all pre-existing PowerTags.

oSpecial values (KEY=[...]):

[REMOVE]: removes the corresponding PowerTag.

[EXISTING]: represents the existing PowerTag value.

oExamples:

!CLIPBOARD=0

!CLIPBOARD=[REMOVE]

!CLIPBOARD=0::!CHROME=1::ENVVAR1=[EXISTING];Some data::ENVVAR2=[REMOVE]

[CLEAR]::!CLIPBOARD=0

Return codes

200: success.

400: invalid parameters.

403: authentication failed or insufficient permissions.

404: an item with this id does not exist.