Skip to content

slashcommand#

Collection Note

This module is part of the nokia.eda_discord_v1alpha1 collection. To install the collection, use:

ansible-galaxy collection install nokia.eda_discord_v1alpha1
Added in version 1.0.0.

Synopsis#

  • SlashCommandSpec defines the desired state of SlashCommand. The command is invoked in Discord as /<metadata.name>. To register the same logical command on multiple servers, create one SlashCommand CR per server (each pointing at the corresponding Bot).

Parameters#

Parameter Defaults / Choices Comments
authToken
str
HTTP authentication (Bearer authentication) string in the format of "Bearer TOKEN".
Required unless state is cronly.
baseUrl
str
EDA API URL including the schema and port (if non standard for the provided schema). Example - https://try.eda.demo:9443.
Required unless state is cronly.
caPath
str
A path to the PEM-encoded CA certificate to use for TLS verification.
Required unless state is cronly.
detailLevel
str
The detail level to keep in the transaction log for the transaction resulting from this request.
disableBatching
bool
If true, prevents the transaction resulting from this request from being bundled with others.
hash
str
Resource content will be returned as it was at the time of this git hash
name
str
required
Name of the SlashCommand.
Required when state is query or absent.
namespace
str
required
The namespace to use when querying or removing the resource.
Required when state is query or absent.
resource
dict
required
The SlashCommand resource definition in YAML format as seen in the EDA UI or https://crd.eda.dev.
Required when state is present or cronly.
skipPipeline
bool
If true, pipelines will not be run for the resulting transaction
state
str
required
Choices: absent, query, present, cronly State of the requested resource object.
tlsSkipVerify
bool
A flag to control the TLS verification of the session.
Required unless state is cronly.

Authors#

  • Nokia