Security
Note |
---|
All operations on this page require valid Access Tokens see Access Token Operations for more information on creating tokens. |
...
Tip |
---|
This is useful inside a loop to wait for existing builds to finish before taking action on the host server. |
GET /rest/agent/1.0/{agentId}/text?uuid={tokenId}
Expand |
---|
Code Block |
---|
language | bash |
---|
title | Response |
---|
| ENABLED=true
BUSY=false |
|
...
Disable Agent
Status |
---|
| |
---|
subtle | true |
---|
colour | Yellow |
---|
title | change |
---|
|
Removes the agent from the active build pool. Existing builds will complete.
POST /rest/agent/1.0/{agentId}/disable?uuid={tokenId}
Expand |
---|
title | Click here to expand response... |
---|
|
Code Block |
---|
| {
"id": 131073,
"name": "Default Agent",
"enabled": false,
"busy": false
} |
|
Enable Agent
Status |
---|
| |
---|
subtle | true |
---|
colour | Yellow |
---|
title | change |
---|
|
...
Expand |
---|
title | Click here to expand response... |
---|
|
Code Block |
---|
| {
"id": 131073,
"name": "Default Agent",
"enabled": true,
"busy": false
} |
|