Operations
resource cloudflare_api_shield_operation
required
The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/.
cloudflare_api_shield_operation
resource "cloudflare_api_shield_operation" "example_api_shield_operation" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
endpoint = "/api/v1/users/{var1}"
host = "www.example.com"
method = "GET"
}
data cloudflare_api_shield_operation
optional
computed
The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/.
cloudflare_api_shield_operation
data "cloudflare_api_shield_operation" "example_api_shield_operation" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
operation_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
feature = ["thresholds"]
}
data cloudflare_api_shield_operations
optional
Field to order by. When requesting a feature, the feature keys are available for ordering as well, e.g., thresholds.suggested_threshold.
cloudflare_api_shield_operations
data "cloudflare_api_shield_operations" "example_api_shield_operations" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
direction = "desc"
endpoint = "/api/v1"
feature = ["thresholds"]
host = ["api.cloudflare.com"]
method = ["GET"]
order = "method"
}
OperationsSchema Validation
resource cloudflare_api_shield_operation_schema_validation_settings
optional
When set, this applies a mitigation action to this operation
loglog request when request does not conform to schema for this operationblockdeny access to the site when request does not conform to schema for this operationnonewill skip mitigation for this operationnullindicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
cloudflare_api_shield_operation_schema_validation_settings
resource "cloudflare_api_shield_operation_schema_validation_settings" "example_api_shield_operation_schema_validation_settings" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
operation_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
mitigation_action = "block"
}
data cloudflare_api_shield_operation_schema_validation_settings
computed
When set, this applies a mitigation action to this operation
loglog request when request does not conform to schema for this operationblockdeny access to the site when request does not conform to schema for this operationnonewill skip mitigation for this operationnullindicates that no operation level mitigation is in place, see Zone Level Schema Validation Settings for mitigation action that will be applied
cloudflare_api_shield_operation_schema_validation_settings
data "cloudflare_api_shield_operation_schema_validation_settings" "example_api_shield_operation_schema_validation_settings" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
operation_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
}