Cloudflare is a cloud platform that provides security, performance, and reliability services to protect from attacks and speed up content delivery.
Torq enables quick and easy integration with Cloudflare, so you can automate anything and everything within moments. Torq's public Cloudflare steps include:
List Firewall Rules
Create User Level Access Rule
List Zone Access Rules
Search Firewall Events
+11 more...
If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.
Use Cloudflare to Trigger Workflows in Torq
Step One: Create a Cloudflare Trigger Integration in Torq
Navigate to Integration: Go to Build > Integrations > Triggers > Cloudflare and click Add Instance.
Fill in the Details:
Give the integration a unique and meaningful name.
Under Authentication Headers, click Add.
Give the secret a name.
Click Generate random secret.
Copy the secret name and the secret to use in Cloudflare.
Finalize: Click Add.
Step Two: Add the Webhook in Cloudflare
Log In: Log in to your Cloudflare profile.
Navigate to Webhooks: Go to Notifications > Destination > Webhooks and click Create.
Fill in the Details:
Finalize: Click Save and Test.
The new webhook will appear in the Webhooks card.
Now that you've successfully created a Cloudflare trigger, you can build your first Cloudlfare-initiated workflow!
In Torq, go to Build > Workflows > Create a Workflow > New Blank Workflow, and select the trigger type: Integrations > Cloudflare. Find your new trigger, and automate away!
Use Cloudflare Steps in Torq
Step One: Create a Cloudflare API Key
Log In: Log in to your Cloudflare profile.
Navigate to Account API: Use Account-owned tokens for service tokens that are not associated with specific users. Go to Manage Account > Account API Tokens and click Create Token.
Create token: Select the appropriate token template from the list of pre-configured permissions, or create a custom token. For example, select Use template for the Read all resources template.
Configure the token: Token name and permissions are prefilled depending on your chosen template.
Name: Edit the token name by clicking the pencil.
Permissions: Edit the permissions by modifying the permissions group (Account, User, Zone) and selecting the level of access for the token. For more information, refer to the available token permissions.
Zone Resources: Select which resources the token is authorized to access.
Client IP Address Filtering: Optionally limit which client IP addresses can use the Cloudflare API token.
TTL: Optionally define the time the token will be active by giving a start and end date.
Finalize:
Select Continue to summary.
Check the token summary and click Create Token.
Save the token: After you create the token, it will appear in the Token field. Ensure you copy and save it. It will not be accessible once you leave this window.
Step Two: Create a Cloudflare Steps Integration in Torq
Navigate to the Integration: Go to Build > Integrations > Steps > Cloudflare and click Add Instance.
Fill in the Details: Give the integration a unique and meaningful name.
In the API Key field, paste the API key that you copied previously in step one.
Finalize: Click Add.
Cloudflare Zone and Account ID
Zone ID and Account ID are required step parameters. Find your zone and account IDs in Cloudflare. Your Account ID can also be extracted from your Cloudflare platform URL. For example, if your URL is https://dash.cloudflare.com/9f927fc789df25g087b4f93ec/home
, the Account ID is 9f927fc789df25g087b4f93ec
.
Templates
Now that you've added your integrations, check out these specially crafted templates by Torq's security experts. Visit Torq's template library for more.