Akamai WAF - Activate Network Lists

Activates network lists in Staging or Production on Akamai WAF. The playbook finishes running when the network list is active on the requested enviorment.

Akamai WAF · 6 tasks · 4 inputs · 0 outputs

Details

IDAkamai WAF - Activate Network Lists
From Version5.0.0
Tasks6

README

Activates network lists in Staging or Production on Akamai WAF. The playbook finishes running when the network list is active on the requested enviorment.

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

  • Generic Polling

Integrations

This playbook does not use any integrations.

Scripts

  • Print

Commands

  • akamai-activate-network-list

Playbook Inputs


Name Description Required
network_list_ids The comma-separated list of network list IDs to activate. For example, “id_list1,id_list2”. Required
env The enviorment type to activate the network list. Can be “STAGING” or “PRODUCTION”. Required
comment The comment to log when activating the network lists. Optional
notify The comma-separated list of email addresses to notify when the network lists are activated. Optional

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


Akamai_WAF_Activate_Network_Lists

Inputs

  • network_list_ids — A comma-separated list of network list IDs to activate. For example: id_list1,id_list2.
  • env — Enviorment type to activate the network list. Can be "STAGING" or "PRODUCTION".
  • comment — A comment to log when activating the network lists.
  • notify — A comma-separated list of email addresses to notify when the network lists are activated.

Commands used

akamai-activate-network-list

Flowchart

yes Start Start Activate network list in selected enviorment - akamai-activate-network-list Activate network list in ... akamai-activate-network-list Generic Polling - GenericPolling Generic Polling GenericPolling Environment Type - Staging or Production Environment Type - Stagin... Generic Polling - GenericPolling Generic Polling GenericPolling Print - Print Print Print
id: Akamai WAF - Activate Network Lists
version: -1
contentitemfields:
  propagationLabels:
  - all
name: Akamai WAF - Activate Network Lists
description: Activates network lists in Staging or Production on Akamai WAF. The playbook finishes running when the network list is active on the requested enviorment.
starttaskid: '0'
tasks:
  '0':
    id: '0'
    taskid: 6db69c54-1ff3-4b46-8b6c-60506443f3ef
    type: start
    task:
      id: 6db69c54-1ff3-4b46-8b6c-60506443f3ef
      version: -1
      name: ''
      iscommand: false
      brand: ''
      description: ''
    nexttasks:
      '#none#':
      - '1'
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 50
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
  '1':
    id: '1'
    taskid: fb437f2c-767d-46d7-8000-482a1b4a77c4
    type: regular
    task:
      id: fb437f2c-767d-46d7-8000-482a1b4a77c4
      version: -1
      name: Activate network list in selected enviorment
      description: ''
      script: '|||akamai-activate-network-list'
      type: regular
      iscommand: true
      brand: ''
    nexttasks:
      '#none#':
      - '4'
    scriptarguments:
      comment:
        simple: ${inputs.comment}
      env:
        simple: ${inputs.env}
      network_list_ids:
        simple: ${inputs.network_list_ids}
      notify:
        simple: ${inputs.notify}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 195
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
  '3':
    id: '3'
    taskid: e74b46f9-4d31-4520-84cf-8b05d070ab29
    type: playbook
    task:
      id: e74b46f9-4d31-4520-84cf-8b05d070ab29
      version: -1
      name: Generic Polling
      description: ''
      playbookName: GenericPolling
      type: playbook
      iscommand: false
      brand: ''
    nexttasks:
      '#none#':
      - '7'
    scriptarguments:
      AdditionalPollingCommandArgNames:
        simple: env
      AdditionalPollingCommandArgValues:
        simple: ${inputs.env}
      Ids:
        simple: ${inputs.network_list_ids}
      Interval:
        simple: '1'
      PollingCommandArgName:
        simple: network_list_ids
      PollingCommandName:
        simple: akamai-get-network-list-activation-status
      Timeout:
        simple: '30'
      dt:
        simple: Akamai.NetworkLists.ActivationStatus(val.StagingStatus != 'ACTIVE').UniqueID
    separatecontext: true
    loop:
      iscommand: false
      exitCondition: ''
      wait: 1
    view: |-
      {
        "position": {
          "x": 480,
          "y": 545
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
  '4':
    id: '4'
    taskid: 0f81a60a-8b9b-4e5d-8e81-a87fa0a83372
    type: condition
    task:
      id: 0f81a60a-8b9b-4e5d-8e81-a87fa0a83372
      version: -1
      name: Environment Type - Staging or Production
      type: condition
      iscommand: false
      brand: ''
      description: ''
    nexttasks:
      '#default#':
      - '3'
      'yes':
      - '5'
    separatecontext: false
    conditions:
    - label: 'yes'
      condition:
      - - operator: isEqualString
          left:
            value:
              simple: inputs.env
            iscontext: true
          right:
            value:
              simple: PRODUCTION
    view: |-
      {
        "position": {
          "x": 265,
          "y": 370
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
  '5':
    id: '5'
    taskid: e406cad5-9503-498d-8595-4e64281daf62
    type: playbook
    task:
      id: e406cad5-9503-498d-8595-4e64281daf62
      version: -1
      name: Generic Polling
      description: ''
      playbookName: GenericPolling
      type: playbook
      iscommand: false
      brand: ''
    nexttasks:
      '#none#':
      - '7'
    scriptarguments:
      AdditionalPollingCommandArgNames:
        simple: env
      AdditionalPollingCommandArgValues:
        simple: ${inputs.env}
      Ids:
        simple: ${inputs.network_list_ids}
      Interval:
        simple: '1'
      PollingCommandArgName:
        simple: network_list_ids
      PollingCommandName:
        simple: akamai-get-network-list-activation-status
      Timeout:
        simple: '30'
      dt:
        simple: Akamai.NetworkLists.ActivationStatus(val.StagingStatus != 'ACTIVE' ).UniqueID
    separatecontext: true
    loop:
      iscommand: false
      exitCondition: ''
      wait: 1
    view: |-
      {
        "position": {
          "x": 50,
          "y": 545
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
  '7':
    id: '7'
    taskid: 85bfe24f-9929-4200-88d8-12da83e72e87
    type: regular
    task:
      id: 85bfe24f-9929-4200-88d8-12da83e72e87
      version: -1
      name: Print
      description: ''
      scriptName: Print
      type: regular
      iscommand: false
      brand: ''
    scriptarguments:
      value:
        simple: Akamai networklists - activation **${inputs.network_list_ids}** in **${inputs.env}** finished **succefully**
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 720
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 765,
        "width": 810,
        "x": 50,
        "y": 50
      }
    }
  }
inputs:
- key: network_list_ids
  value: {}
  required: true
  description: ' A comma-separated list of network list IDs to activate. For example: id_list1,id_list2. '
- key: env
  value: {}
  required: true
  description: Enviorment type to activate the network list. Can be "STAGING" or "PRODUCTION".
- key: comment
  value: {}
  required: false
  description: A comment to log when activating the network lists.
- key: notify
  value: {}
  required: false
  description: A comma-separated list of email addresses to notify when the network lists are activated.
tests:
- No test
fromversion: 5.0.0