Skip to content

f5xc_alert_receiver Resource - terraform-provider-f5xc

Manages new Alert Receiver object. in F5 Distributed Cloud.

~> Note For more information about this resource, please refer to the F5 XC API Documentation.

# Alert Receiver Resource Example
# Manages new Alert Receiver object. in F5 Distributed Cloud.
terraform {
required_version = ">= 1.0"
required_providers {
f5xc = {
source = "f5xc-salesdemos/f5xc"
version = ">= 0.1.0"
}
}
}
# Basic Alert Receiver configuration
resource "f5xc_alert_receiver" "example" {
name = "example-alert-receiver"
namespace = "staging"
labels = {
environment = "production"
managed_by = "terraform"
}
annotations = {
"owner" = "platform-team"
}
# Alert Receiver configuration
# Slack configuration
slack {
url = "`https://your-slack-webhook-url"`
}
}

🔶 High Risk Operations — Some operations on this resource have high danger level. Destructive operations may require confirmation.

Required fields:

  • name
  • namespace
  • receiver_choice

Example (API format):

metadata:
name: my-alert-receiver
namespace: system
spec:
email:
email_address: `alerts@example.com`

name - Required String
Name of the Alert Receiver. Must be unique within the namespace

namespace - Required String
Namespace where the Alert Receiver will be created

annotations - Optional Map
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata

description - Optional String
Human readable description for the object

disable - Optional Bool
A value of true will administratively disable the object

labels - Optional Map
Labels is a user defined key value map that can be attached to resources for organization and filtering

-> One of the following:email - Optional Block
Email Configuration
See Email below for details.

opsgenie - Optional Block
OpsGenie configuration to send alert notifications
See Opsgenie below for details.

pagerduty - Optional Block
PagerDuty configuration to send alert notifications
See Pagerduty below for details.

slack - Optional Block
Slack configuration to send alert notifications
See Slack below for details.

sms - Optional Block
SMS Configuration
See Sms below for details.

webhook - Optional Block
Webhook configuration to send alert notifications
See Webhook below for details.

timeouts - Optional Block
See Timeouts below for details.

In addition to all arguments above, the following attributes are exported:

id - Optional String
Unique identifier for the resource


An email block supports the following:

email - Optional String
Email. Email ID of the user

An opsgenie block supports the following:

api_key - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See API Key below.

url - Optional String
URL to send API requests to

An api_key block (within opsgenie) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

A blindfold_secret_info block (within opsgenie.api_key) supports the following:

decryption_provider - Optional String
Name of the Secret Management Access object that contains information about the backend Secret Management service

location - Optional String
Location is the uri_ref. It could be in URL format for string:/// Or it could be a path if the store provider is an HTTP/HTTPS location

store_provider - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

A clear_secret_info block (within opsgenie.api_key) supports the following:

provider_ref - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

url - Optional String
URL of the secret. Currently supported URL schemes is string:///. For string:/// scheme, Secret needs to be encoded base64 format. When asked for this secret, caller will GET Secret bytes after base64 decoding

A pagerduty block supports the following:

routing_key - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See Routing Key below.

url - Optional String
URL to send API requests to

A routing_key block (within pagerduty) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

Pagerduty Routing Key Blindfold Secret Info

Section titled “Pagerduty Routing Key Blindfold Secret Info”

A blindfold_secret_info block (within pagerduty.routing_key) supports the following:

decryption_provider - Optional String
Name of the Secret Management Access object that contains information about the backend Secret Management service

location - Optional String
Location is the uri_ref. It could be in URL format for string:/// Or it could be a path if the store provider is an HTTP/HTTPS location

store_provider - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

A clear_secret_info block (within pagerduty.routing_key) supports the following:

provider_ref - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

url - Optional String
URL of the secret. Currently supported URL schemes is string:///. For string:/// scheme, Secret needs to be encoded base64 format. When asked for this secret, caller will GET Secret bytes after base64 decoding

A slack block supports the following:

channel - Optional String
Channel or user to send notifications to

url - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See URL below.

An url block (within slack) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

A blindfold_secret_info block (within slack.url) supports the following:

decryption_provider - Optional String
Name of the Secret Management Access object that contains information about the backend Secret Management service

location - Optional String
Location is the uri_ref. It could be in URL format for string:/// Or it could be a path if the store provider is an HTTP/HTTPS location

store_provider - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

A clear_secret_info block (within slack.url) supports the following:

provider_ref - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

url - Optional String
URL of the secret. Currently supported URL schemes is string:///. For string:/// scheme, Secret needs to be encoded base64 format. When asked for this secret, caller will GET Secret bytes after base64 decoding

A sms block supports the following:

contact_number - Optional String
Contact number of the user in ITU E.164 format [+][country code][subscriber number including area code]

A timeouts block supports the following:

create - Optional String (Defaults to 10 minutes)
Used when creating the resource

delete - Optional String (Defaults to 10 minutes)
Used when deleting the resource

read - Optional String (Defaults to 5 minutes)
Used when retrieving the resource

update - Optional String (Defaults to 10 minutes)
Used when updating the resource

A webhook block supports the following:

http_config - Optional Block
HTTP Configuration. Configuration for HTTP endpoint
See HTTP Config below.

url - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See URL below.

A http_config block (within webhook) supports the following:

auth_token - Optional Block
Access Token. Authentication Token for access
See Auth Token below.

basic_auth - Optional Block
Authorization parameters to access HTPP alert Receiver Endpoint
See Basic Auth below.

client_cert_obj - Optional Block
Client Certificate Object. Configuration for client certificate
See Client Cert Obj below.

enable_http2 - Optional Bool
Enable HTTP2. Configure to use HTTP2 protocol

follow_redirects - Optional Bool
Configure whether HTTP requests follow HTTP 3xx redirects

no_authorization - Optional Block
Configuration parameter for no authorization

no_tls - Optional Block
Enable this option

use_tls - Optional Block
Configures the token request’s TLS settings
See Use TLS below.

An auth_token block (within webhook.http_config) supports the following:

token - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See Token below.

A token block (within webhook.http_config.auth_token) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

Webhook HTTP Config Auth Token Token Blindfold Secret Info

Section titled “Webhook HTTP Config Auth Token Token Blindfold Secret Info”

Deeply nested Info block collapsed for readability.

Webhook HTTP Config Auth Token Token Clear Secret Info

Section titled “Webhook HTTP Config Auth Token Token Clear Secret Info”

Deeply nested Info block collapsed for readability.

A basic_auth block (within webhook.http_config) supports the following:

password - Optional Block
SecretType is used in an object to indicate a sensitive/confidential field
See Password below.

user_name - Optional String
HTTP Basic Auth username

A password block (within webhook.http_config.basic_auth) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

Webhook HTTP Config Basic Auth Password Blindfold Secret Info

Section titled “Webhook HTTP Config Basic Auth Password Blindfold Secret Info”

Deeply nested Info block collapsed for readability.

Webhook HTTP Config Basic Auth Password Clear Secret Info

Section titled “Webhook HTTP Config Basic Auth Password Clear Secret Info”

Deeply nested Info block collapsed for readability.

A client_cert_obj block (within webhook.http_config) supports the following:

use_tls_obj - Optional Block
Certificate Object. Reference to client certificate object
See Use TLS Obj below.

Webhook HTTP Config Client Cert Obj Use TLS Obj

Section titled “Webhook HTTP Config Client Cert Obj Use TLS Obj”

Deeply nested Obj block collapsed for readability.

An use_tls block (within webhook.http_config) supports the following:

disable_sni - Optional Block
Configuration parameter for disable sni

max_version - Optional String Defaults to TLS_AUTO
Possible values are TLS_AUTO, TLSv1_0, TLSv1_1, TLSv1_2, TLSv1_3
[Enum: TLS_AUTO|TLSv1_0|TLSv1_1|TLSv1_2|TLSv1_3] TlsProtocol is enumeration of supported TLS versions F5 Distributed Cloud will choose the optimal TLS version

min_version - Optional String Defaults to TLS_AUTO
Possible values are TLS_AUTO, TLSv1_0, TLSv1_1, TLSv1_2, TLSv1_3
[Enum: TLS_AUTO|TLSv1_0|TLSv1_1|TLSv1_2|TLSv1_3] TlsProtocol is enumeration of supported TLS versions F5 Distributed Cloud will choose the optimal TLS version

sni - Optional String
SNI value to be used

use_server_verification - Optional Block
Configuration parameter for use server verification
See Use Server Verification below.

volterra_trusted_ca - Optional Block
Configuration parameter for volterra trusted CA

Webhook HTTP Config Use TLS Use Server Verification

Section titled “Webhook HTTP Config Use TLS Use Server Verification”

Deeply nested Verification block collapsed for readability.

Webhook HTTP Config Use TLS Use Server Verification CA Cert Obj

Section titled “Webhook HTTP Config Use TLS Use Server Verification CA Cert Obj”

Deeply nested Obj block collapsed for readability.

Webhook HTTP Config Use TLS Use Server Verification CA Cert Obj Trusted CA

Section titled “Webhook HTTP Config Use TLS Use Server Verification CA Cert Obj Trusted CA”

Deeply nested CA block collapsed for readability.

An url block (within webhook) supports the following:

blindfold_secret_info - Optional Block
BlindfoldSecretInfoType specifies information about the Secret managed by F5XC Secret Management
See Blindfold Secret Info below.

clear_secret_info - Optional Block
ClearSecretInfoType specifies information about the Secret that is not encrypted
See Clear Secret Info below.

A blindfold_secret_info block (within webhook.url) supports the following:

decryption_provider - Optional String
Name of the Secret Management Access object that contains information about the backend Secret Management service

location - Optional String
Location is the uri_ref. It could be in URL format for string:/// Or it could be a path if the store provider is an HTTP/HTTPS location

store_provider - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

A clear_secret_info block (within webhook.url) supports the following:

provider_ref - Optional String
Name of the Secret Management Access object that contains information about the store to GET encrypted bytes This field needs to be provided only if the URL scheme is not string:///

url - Optional String
URL of the secret. Currently supported URL schemes is string:///. For string:/// scheme, Secret needs to be encoded base64 format. When asked for this secret, caller will GET Secret bytes after base64 decoding


The following type definitions are used throughout this resource. See the full definition here rather than repeated inline.

Object Reference {#common-object-reference}

Section titled “Object Reference {#common-object-reference}”

Object references establish a direct reference from one configuration object to another in F5 Distributed Cloud. References use the format tenant/namespace/name.

FieldTypeDescription
nameStringName of the referenced object
namespaceStringNamespace containing the referenced object
tenantStringTenant of the referenced object (system-managed)

Transformers apply transformations to input values before matching. Multiple transformers can be applied in order.

ValueDescription
LOWER_CASEConvert to lowercase
UPPER_CASEConvert to uppercase
BASE64_DECODEDecodebase64 content
NORMALIZE_PATHNormalize URL path
REMOVE_WHITESPACERemove whitespace characters
URL_DECODEDecode URL-encoded characters
TRIM_LEFTTrim leading whitespace
TRIM_RIGHTTrim trailing whitespace
TRIMTrim both leading and trailing whitespace

HTTP methods used for request matching.

ValueDescription
ANYMatch any HTTP method
GETHTTP GET request
HEADHTTP HEAD request
POSTHTTP POST request
PUTHTTP PUT request
DELETEHTTP DELETE request
CONNECTHTTP CONNECT request
OPTIONSHTTP OPTIONS request
TRACEHTTP TRACE request
PATCHHTTP PATCH request
COPYHTTP COPY request (WebDAV)

TLS Fingerprints {#common-tls-fingerprints}

Section titled “TLS Fingerprints {#common-tls-fingerprints}”

TLS fingerprint categories for malicious client detection.

ValueDescription
TLS_FINGERPRINT_NONENo fingerprint matching
ANY_MALICIOUS_FINGERPRINTMatch any known malicious fingerprint
ADWAREAdware-associated fingerprints
DRIDEXDridex malware fingerprints
GOOTKITGootkit malware fingerprints
RANSOMWARERansomware-associated fingerprints
TRICKBOTTrickbot malware fingerprints

IP Threat Categories {#common-ip-threat-categories}

Section titled “IP Threat Categories {#common-ip-threat-categories}”

IP address threat categories for security filtering.

ValueDescription
SPAM_SOURCESKnown spam sources
WINDOWS_EXPLOITSWindows exploit sources
WEB_ATTACKSWeb attack sources
BOTNETSKnown botnet IPs
SCANNERSNetwork scanner IPs
REPUTATIONPoor reputation IPs
PHISHINGPhishing-related IPs
PROXYAnonymous proxy IPs
MOBILE_THREATSMobile threat sources
TOR_PROXYTor exit nodes
DENIAL_OF_SERVICEDoS attack sources
NETWORKKnown bad network ranges

Import is supported using the following syntax:

Terminal window
# Import using namespace/name format
terraform import f5xc_alert_receiver.example system/example