Puppet Function: abi::delete_accounts
- Defined in:
-
functions/delete_accounts.pp
- Function type:
- Puppet Language
Overview
abi::delete_accounts(Optional[Hash] $params = {}) ⇒ Any
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'functions/delete_accounts.pp', line 1
function abi::delete_accounts(
Optional[Hash] $params = {}
) {
$account_ids = $params['account_ids'] ? { undef => undef, default => $params['account_ids'] }
$reason = $params['reason'] ? { undef => undef, default => $params['reason'] }
$delete_permanently = $params['delete_permanently'] ? { undef => undef, default => $params['delete_permanently'] }
$server_url = $abi::conf::server_url
$authtoken = $abi::conf::authtoken
$org = $abi::conf::org
$certificate = $abi::conf::certificate
$account_data = delete_accounts(
$server_url,
$authtoken,
$org,
$certificate,
$account_ids,
$reason,
$delete_permanently
)
return $account_data
}
|