Syntax
New-VcsOAuthSecurityContext [[-VcsServer] <String>] -ApiToken <SecureString> [-IgnoreSslValidationErrors] [<CommonParameters>]Related Commands
Online VersionDetailed Description
Creates an OAuth2 security context object that you can use to authenticate a user with any VMware Cloud Service.Parameters
Return Type
VMware.VimAutomation.Vmc.Types.V1.VcsOAuthSecurityContextNotes
Examples
-------------------------- Example 1 --------------------------
$oauthCtx = New-VcsOAuthSecurityContext -ApiToken "a3f35067-80b5-44f0-a0bc-e19f2bc17fb7"
Creates an OAuth2 security context object by authenticating the user with an API token from the VMware Cloud Services web portal.
-------------------------- Example 2 --------------------------
$oauthCtx = New-VcsOAuthSecurityContext -VcsServer "console.cloud.vmware.com" -ApiToken "a3f35067-80b5-44f0-a0bc-e19f2bc17fb7"
Creates an OAuth2 security context object by authenticating the user with an API token from the VMware Cloud Services web portal for a particular instance of the service. In this example, that is the public commercial instance at https://console.cloud.vmware.com.