Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Action "lxc.network.list"

List the networks managed by LXD.

Example

const { list } = await nikita.lxc.network.list();
console.info(`LXD networks: ${list}`);

Schema definitions

definitions = {}

Handler

handler = ({config}) ->
  {data} = await @lxc.query
    $shy: false
    path: "/1.0/networks"
  list: (i.split('/').pop() for i in data)

Exports

module.exports =
  handler: handler
  metadata:
    definitions: definitions
    shy: true
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.