Dashboard > Pulse v2.1 > ... > Remote API Functions > RemoteApi.disableAgent
  Pulse v2.1 Log In | Sign Up   View a printable version of the current page.  
  RemoteApi.disableAgent
Added by Jason Sankey, last edited by Jason Sankey on Mar 19, 2009
Labels: 
(None)

Pulse Manual Index

Synopsis

boolean disableAgent(string token, string name)

Parameters

Parameter Type Description
token string Authentication token (see RemoteApi.login).
name string The name of the agent to disable.

Returns

boolean: True.

Faults

Fault Type Fault Reason
IllegalArgumentException If the given agent does not exist.

Description

Disables the given agent, preventing it from processing builds until it is reenabled. If the agent is currently running a build, it will be marked to disable on idle. If the agent is already marked to disable on idle, it will be forcably disabled (terminating the build with an error).

Access

Available to users with disable permission for the given agent.

See Also

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators