class Chef::Knife::BmcsVcnList

List BMCS VCNs. Note that this lists all VCNs in a compartment, not just those that are set up as Chef nodes.

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/bmcs_vcn_list.rb, line 24
def run
  options = {}
  options[:limit] = config[:limit] if config[:limit]

  response = network_client.list_vcns(compartment_id, options)

  display_list(response, ['Display Name', 'ID', 'CIDR Block', 'State']) do |item|
    [item.display_name, item.id, item.cidr_block, item.lifecycle_state]
  end
end