# designateclient.v2.cli.blacklists module

class designateclient.v2.cli.blacklists.CreateBlacklistCommand(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `ShowOne`

  Create new blacklist

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger designateclient.v2.cli.blacklists.CreateBlacklistCommand (WARNING)>
  take_action(parsed_args)

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.blacklists.DeleteBlacklistCommand(app: _app.App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `Command`

  Delete blacklist

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger designateclient.v2.cli.blacklists.DeleteBlacklistCommand (WARNING)>
  take_action(parsed_args)

    Override to do something useful.

    The returned value will be returned by the program.

class designateclient.v2.cli.blacklists.ListBlacklistsCommand(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `Lister`

  List blacklists

  columns = ['id', 'pattern', 'description']
  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger designateclient.v2.cli.blacklists.ListBlacklistsCommand (WARNING)>
  take_action(parsed_args)

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.blacklists.SetBlacklistCommand(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `ShowOne`

  Set blacklist properties

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger designateclient.v2.cli.blacklists.SetBlacklistCommand (WARNING)>
  take_action(parsed_args)

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.blacklists.ShowBlacklistCommand(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `ShowOne`

  Show blacklist details

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger designateclient.v2.cli.blacklists.ShowBlacklistCommand (WARNING)>
  take_action(parsed_args)

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

this page last updated: 2026-02-27 12:37:25

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug