Cloudflare
Last updated
Last updated
Once you have deployed MechCloud OIDC proxy (see parent section for instructions), you will need to add an account for Cloudflare before using the REST API chatbot for managing your Cloudflare account resources. Here is the curl command to register a Cloudflare account in MechCloud OIDC proxy -
Above command requires a MechCloud jwt token which can be generated by logging into MechCloud console and then opening https://portal.mechcloud.io/oauth2/auth1 link in the same or a different tab. Instructions for getting Cloudflare API token are there in the MechCloud OIDC proxy readme file. Make sure that the generated Cloudflare API token is having permissions for the action you are going to perform using the REST API chatbot.
Follow the instructions under section to register the account created above in MechCloud.
Listing accounts
Custom Lists
Listing custom lists under an account
Listing all items under a custom list
Adding items uner a custom list
CURRENT_IP
is a special variable which will be replaced with the ip of the machine where this prompt will be executed from.