Skip to content
Brandon Olin edited this page Jan 4, 2016 · 7 revisions

Resolves a credential object using ClickStudio's PasswordState vault.

Parameters

Name Type Required Description
Endpoint string True API endpoint for PasswordState vault
CredApiKey string True The API key that has at least READ access to the given PasswordId
PasswordId int True The ID of the PasswordState entry to resolve

Example

resource 'POSHOrigin_vSphere:VM' 'VM01' @{
    ensure = 'present'
    description = 'Test VM'
    ###
    # Other options omitted for brevity
    ###
    vCenterCredentials = Get-POSHOriginSecret 'passwordstate' @{
        endpoint = 'https://passwordstate.local/api'
        credApiKey = '<your API key>'
        passwordId = 1234
    }
}

Clone this wiki locally