Complete-VIOAuth2ClientSecretRotation Command | Vmware PowerCLI Reference

Complete-VIOAuth2ClientSecretRotation

Forces an immediate secret rotation for a specific OAuth 2 client. The new secret becomes the current secret of the OAuth 2 client.

Syntax

Complete-VIOAuth2ClientSecretRotation
-OAuth2Client < OAuth2Client[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
OAuth2Client OAuth2Client[] named
  • pipeline
  • wildcards
Specifies the OAuth 2 client whose secrete rotation you want to force immediately.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

Output

VMware.VimAutomation.ViCore.Types.V1.IdentityBroker.OAuth2Client

Examples

Example 1

PS C:\> Get-VIOAuth2Client -Id "my-client-id" | Complete-VIOAuth2ClientSecretRotation

Forces an immediate secret rotation for an OAuth 2 client with client ID "my-client-id".

Related Commands

VIOAuth2Client

Creates a new OAuth2 client registration with the VMware Identity Broker.

Deletes a registration for a specified OAuth2 client from the VMware Identity Broker.

Updates the configuration of the OAuth2 client registered with the VMware Identity Broker.

VIOAuth2ClientSecretRotation

Forces an immediate secret rotation for a specific OAuth 2 client.

Initiates a rotation of the secret of an OAuth 2 client.

VIOauth2Client

This cmdlet retrieves the OAuth2 clients available on a vCenter Server system.

VIObjectByVIView

This cmdlet converts a vSphere View object to a VIObject.