setEdgeWorkerActive
Enable or disable an existing WASM edge worker.
setEdgeWorkerActive(
input: SetEdgeWorkerActiveInput!
): EdgeWorker
Example
- Query
- Variables
- Response
mutation ($input: SetEdgeWorkerActiveInput!) {
setEdgeWorkerActive(input: $input) {
active
createdAt
id
location {
operator
value
}
name
onFailure
phases
source
updatedAt
wasmBinary
}
}
{
"input": {
"active": true,
"edgeWorkerId": 42,
"environmentId": 42
}
}
{
"data": {
"setEdgeWorkerActive": {
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"id": 42,
"location": {
"operator": "contains",
"value": "value"
},
"name": "A name",
"onFailure": "continue",
"phases": [
"client_request"
],
"source": "source",
"updatedAt": "2024-01-15T00:00:00.000Z",
"wasmBinary": "wasmBinary"
}
}
}
Arguments
setEdgeWorkerActive.input ● SetEdgeWorkerActiveInput! non-null input common
The edge worker and desired active state.
Type
EdgeWorker object common
A WASM edge worker deployed to an environment.