Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
864 B
Bash
Raw Permalink Normal View History

# Copyright IBM Corp. 2020, 2026
2023-02-02 17:15:17 -08:00
# SPDX-License-Identifier: BUSL-1.1
load _authorized_actions
function create_static_credential_store() {
local name=$1
local sid=$2
boundary credential-stores create static \
-name $name \
-description 'test static credential store' \
-scope-id $sid
}
function create_vault_credential_store() {
boundary credential-stores create vault $@
}
function read_credential_store() {
boundary credential-stores read -id $1 -format json
}
function delete_credential_store() {
2023-02-01 20:54:08 +00:00
boundary credential-stores delete -id $1 -format json
}
function list_credential_stores() {
boundary credential-stores list -scope-id $1 -format json
}
function credential_store_id() {
local name=$1
local sid=$2
strip $(list_credential_stores $sid | jq -c ".items[] | select(.name | contains(\"$name\")) | .[\"id\"]")
}