< Back

Set-OTSAuthorizationToken

Sat Jan 18, 2020 6:07 pm

NAME Set-OTSAuthorizationToken



SYNOPSIS

Create the Authorization information required to interact with the OneTimeSecret.com API





SYNTAX

Set-OTSAuthorizationToken [-Username] <String> [-APIKey] <String> [-BaseUrl] <String> [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Create the Authorization information required to interact with the OneTimeSecret.com API





PARAMETERS

-Username <String>

The Username of the account



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-APIKey <String>

The API key for the account



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BaseUrl <String>

Use a custom instance of onetimesecret



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String





OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-OTSAuthorizationToken -Username user@mail.com -APIKey 52302308erf2e799affd33cbc7c85896b4c6a6997













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-OTSAuthorizationToken -Username user@mail.com -APIKey 52302308erf2e799affd33cbc7c85896b4c6a6997

-BaseUrl https://mycustomhost.com/















RELATED LINKS