citrix / terraform-provider-citrixadc

Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit
https://registry.terraform.io/providers/citrix/citrixadc
Apache License 2.0
119 stars 59 forks source link

[FEATURE REQUEST]: citrixadc_responderaction - headers support #1184

Open adc-nerd opened 4 months ago

adc-nerd commented 4 months ago

Description

It's possible to send custom headers in a "responder action" i.e cache-control for maintenance pages. This is currently not implemented in "citrixadc_responderaction".

Affected Resource(s) and/or Data Source(s)

citrixadc_responderaction

Equivalent NetScaler CLI Command

add responder action res_act_maintenance_page respondwithhtmlpage my-html-page responseStatusCode 503 -headers cache-control("no-cache,no-store,must-revalidate")

Potential Terraform Configuration

resource "citrixadc_responderaction" "my-html-page" {
...
headers = "cache-control(\"no-cache,no-store,must-revalidate\")"
...
}

References

API Docs: https://developer-docs.netscaler.com/en-us/adc-nitro-api/current-release/configuration/responder/responderaction