Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.99 KB

fl-delete.md

File metadata and controls

75 lines (56 loc) · 1.99 KB
copyright lastupdated keywords subcollection
years
2020
2020-07-23
flow logs, delete
vpc

{:shortdesc: .shortdesc} {:new_window: target="_blank"} {:codeblock: .codeblock} {:pre: .pre} {:screen: .screen} {:term: .term} {:tip: .tip} {:note: .note} {:important: .important} {:deprecated: .deprecated} {:external: target="blank" .external} {:generic: data-hd-programlang="generic"} {:download: .download} {:DomainName: data-hd-keyref="DomainName"}

Deleting a flow log collector

{: #deleting-a-flow-log-collector}

You can delete a flow log collector by using the UI, the CLI, or the API.

Notes:

  • Any logs that were collected, but weren't sent to Cloud Object Storage (COS) yet, are dropped immediately on deletion. If this is a problem, you can suspend the collector instead.
  • Flow logs that were already shipped to your COS buckets are not deleted.

Using the UI

{: #fl-deleting-ui}

To delete a flow log collector, click the overflow overflow menu menu next to the collector that you want to delete, then click Delete. Click Delete again to confirm the deletion.

Using the CLI

{: #fl-deleting-cli}

To delete a flow log collector by using the CLI, run the following command:

ibmcloud is flow-log-delete FLOW_LOG [-f, --force]

Where:

  • FLOW_LOG is the ID of the flow log instance.
  • --force, -f forces the operation without confirmation.

Using the API

{: #fl-deleting-api}

To delete a flow log collector by using the API, follow these steps:

  1. Set up your API environment with the right variables.

  2. Store your FlowLogID01 in a variable to be used in the command. For example:

    export FlowLogID01="<your_flow_log_id>"

    {:pre}

  3. To delete a flow log collector:

    curl -sS -X DELETE \
      -H "Authorization: $iam_token" \
      "$vpc_api_endpoint/v1/flow_log_collectors/$FlowLogID01?version=$api_version&generation=2" | jq

    {:pre}