37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"name": "Expire Single IP Assignment",
|
|
"trigger": {
|
|
"type": "MANUAL",
|
|
"inputJsonSchema": {
|
|
"type": "object",
|
|
"required": ["macAddress", "ipAddress"],
|
|
"properties": {
|
|
"macAddress": { "type": "string" },
|
|
"ipAddress": { "type": "string" }
|
|
}
|
|
},
|
|
"nextSteps": [{ "slug": "expire" }]
|
|
},
|
|
"steps": [
|
|
{
|
|
"name": "Expire assignment",
|
|
"slug": "expire",
|
|
"type": "GAIIA_API_GATEWAY_V0_GRAPHQL_REQUEST",
|
|
"nodeSlug": "gaiia-internal-api-gateway-graphql-request",
|
|
"allowSkipExecution": false,
|
|
"inputs": [
|
|
{
|
|
"key": "query",
|
|
"type": "LITERAL",
|
|
"value": "string:mutation Expire($input: UpsertMacAddressIpAddressAssignationsInput!) {\n upsertMacAddressIpAddressAssignations(input: $input) {\n assignations { macAddress ipAddress }\n }\n}"
|
|
},
|
|
{
|
|
"key": "variables",
|
|
"type": "FUNCTION",
|
|
"value": "({ state }) => ({\n input: {\n assignations: {\n macAddress: state.input.macAddress,\n ipAddress: state.input.ipAddress,\n expired: true\n }\n }\n})"
|
|
}
|
|
],
|
|
"nextSteps": [{ "slug": "end" }]
|
|
}
|
|
]
|
|
}
|