New-PveAccessOpenidLogin
Verify OpenID authorization code and create a ticket.
API: POST /access/openid/login, Proxmox VE API viewer
Syntax
Section titled “Syntax”New-PveAccessOpenidLogin [-PveTicket <PveTicket>] -Code <string> -RedirectUrl <string> -State <string> [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-Code |
string |
Yes | OpenId authorization code. |
-RedirectUrl |
string |
Yes | Redirection Url. The client should set this to the used server url (location.origin). |
-State |
string |
Yes | OpenId state. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.