Invoke-TssSecretGeneratePassword
SYNOPSIS
Create a new Secret password
SYNTAX
Invoke-TssSecretGeneratePassword [-TssSession] <Session> -Id <Int32> -Slug <String> [<CommonParameters>]
DESCRIPTION
Create a new Secret password, based on password rules of the field
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha/SecretServer -Credential $ssCred
$newPassword = Invoke-TssSecretGeneratePassword -TssSession $session -Id 25 -Slug 'private-key-passphrase'
Set-TssSecretField -TssSession $session -Id 25 -Slug 'private-key-passphrase' -Value $newPassword
Generating password for Secret ID 25 based on password rules configured for the template, updating password field
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Id
Secret Id
Type: Int32
Parameter Sets: (All)
Aliases: SecretId
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Slug
Field slug name
Type: String
Parameter Sets: (All)
Aliases: FieldSlug
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Requires TssSession object returned by New-TssSession