|
api_key
string
|
|
env:VYOS_API_KEY
var: ansible_httpapi_api_key
var: ansible_vyos_api_key
|
The API key configured on the VyOS device.
Set ansible_httpapi_api_key in inventory or the VYOS_API_KEY environment variable.
|
|
auth_method
string
|
Choices:
key ←
- header
- bearer
- mtls
- oidc
|
var: ansible_httpapi_vyos_auth_method
var: ansible_vyos_auth_method
|
Authentication method to use.
key sends the API key as a form field (default, backward-compatible).
header sends the API key as an X-API-Key header.
bearer exchanges the API key for a short-lived JWT via POST /token and sends it as an Authorization Bearer header for subsequent requests.
mtls uses mutual TLS client certificate authentication. No API key is sent. Requires ansible_httpapi_client_cert and ansible_httpapi_client_key to be set at the connection level.
oidc fetches a Bearer token from an external identity provider using the OAuth2 client credentials grant and sends it as an Authorization Bearer header. Requires ansible_vyos_oidc_token_url, ansible_vyos_oidc_client_id, and ansible_vyos_oidc_client_secret.
|
|
oidc_client_secret
string
|
|
var: ansible_vyos_oidc_client_secret
|
OAuth2 client secret for the client credentials grant.
Required when auth_method=oidc.
|