Terraform
Get started with API Shield using Terraform from the examples below. For more information on how to use Terraform with Cloudflare, refer to the Terraform documentation.
The following resources are available to configure through Terraform:
Session identifiers
api_shield
↗ for configuring session identifiers in API Shield.
Endpoint Management
api_shield_operation
↗ for configuring endpoints in Endpoint Management.
Schema Validation 2.0
api_shield_schema
↗ for configuring a schema in Schema Validation 2.0.api_shield_schema_validation_settings
↗ for configuring zone-level Schema Validation 2.0 settings.api_shield_operation_schema_validation_settings
↗ for configuring operation-level Schema Validation 2.0 settings.
Refer to the example configuration below to set up session identifiers on your zone.
Refer to the example configuration below to manage endpoints on your zone.
Refer to the example configuration below to manage Schema Validation 2.0 on your zone.