Flowlog

nic_flowlog

This is a simple module that supports creating or removing NIC Flowlogs. This module has a dependency on ionoscloud >= 6.0.2

Example Syntax


name: Create a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  name: 'AnsibleAutoTestCompute'
  action: ACCEPTED
  direction: INGRESS
  bucket: sdktest
  datacenter: ''
  server: ''
  nic: ''
register: flowlog_response


name: Update a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  name: 'AnsibleAutoTestCompute'
  action: ALL
  direction: INGRESS
  bucket: sdktest
  datacenter: ''
  server: ''
  nic: ''
  flowlog: ''
  state: update
register: flowlog_update_response


name: Delete a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  datacenter: ''
  server: ''
  nic: ''
  flowlog: ''
  name: 'AnsibleAutoTestCompute'
  state: absent
  wait: true
register: flowlog_delete_response

Returned object

{
    "changed": true,
    "failed": false,
    "action": "create",
    "flowlog": {
        "href": "https://api.ionos.com/cloudapi/v6/datacenters/47724f5f-625d-46e3-8187-0fce19c74e5c/servers/4e55f7f3-78f2-46c0-9c61-8de00d7cd484/nics/c386eede-b756-441e-97a7-5de4da8518ed/flowlogs/37a775b2-4dad-418a-8cbd-0499ad34d713",
        "id": "37a775b2-4dad-418a-8cbd-0499ad34d713",
        "metadata": {
            "created_by": "<USER_EMAIL>",
            "created_by_user_id": "<USER_ID>",
            "created_date": "2023-06-06T14:06:00+00:00",
            "etag": "043560db87ade8f005d69efbec1eedea",
            "last_modified_by": "<USER_EMAIL>",
            "last_modified_by_user_id": "<USER_ID>",
            "last_modified_date": "2023-06-06T14:06:00+00:00",
            "state": "BUSY"
        },
        "properties": {
            "action": "ACCEPTED",
            "bucket": "sdktest",
            "direction": "INGRESS",
            "name": "AnsibleAutoTestCompute"
        },
        "type": "flow-log"
    }
}

For more examples please check out the tests here.

state: present

  
name: Create a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  name: 'AnsibleAutoTestCompute'
  action: ACCEPTED
  direction: INGRESS
  bucket: sdktest
  datacenter: ''
  server: ''
  nic: ''
register: flowlog_response

Available parameters for state present:

state: absent

  
name: Delete a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  datacenter: ''
  server: ''
  nic: ''
  flowlog: ''
  name: 'AnsibleAutoTestCompute'
  state: absent
  wait: true
register: flowlog_delete_response

Available parameters for state absent:

state: update

  
name: Update a nic flowlog
ionoscloudsdk.ionoscloud.nic_flowlog:
  name: 'AnsibleAutoTestCompute'
  action: ALL
  direction: INGRESS
  bucket: sdktest
  datacenter: ''
  server: ''
  nic: ''
  flowlog: ''
  state: update
register: flowlog_update_response

Available parameters for state update:

Last updated