Puppet Function: abi::get_accounts

Defined in:
functions/get_accounts.pp
Function type:
Puppet Language

Overview

abi::get_accounts(Optional[Hash] $params = {})Any

Parameters:

  • params (Optional[Hash]) (defaults to: {})

Returns:

  • (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'functions/get_accounts.pp', line 1

function abi::get_accounts(
  Optional[Hash] $params = {}
) {
  $account_ids = $params['account_ids'] ? { undef => undef, default => $params['account_ids'] }
  $accounts = $params['accounts'] ? { undef => undef, default => $params['accounts'] }

  $server_url  = $abi::conf::server_url
  $authtoken   = $abi::conf::authtoken
  $org         = $abi::conf::org
  $certificate = $abi::conf::certificate

  $accounts_data = get_accounts(
    $server_url,
    $authtoken,
    $org,
    $certificate,
    $account_ids,
    $accounts,
  )
  return $accounts_data
}