NAME
-
::tclCloudFlare -- class implementing the CloudFlare API V4 protocol.
SYNOPSIS
package require tclcfset myCloudFlare [::tclCloudFlare Email ApiKey]
DEPENDANCIES
-
The following packages are required:
- Tcl 8.6
- http
- tls
- json
- json::write
CLASS HIERARCHY
-
oo::object
→ oo::class
→ ::tclCloudFlare
DESCRIPTION
-
Create an object that implements an instance of the CloudFlare API V4 protocol for a given CloudFlare account.
CONSTRUCTOR
-
The constructor of the ::tclCloudFlare class takes the following required arguments:
- Email -- Email address associated with the CloudFlare account
- ApiKey -- API key generated on the CloudFlare "My Account" page
EXPORTED METHODS
zones
- A list of dictionaries containing information about the managed zones.
$obj info item
-
Returns results depend on the time. Valid items are:
$obj zone zoneId
-
Factory constructor that will return a CloudFlare Zone object for the given zone ID.
EXAMPLES
set cf [::tclCloudFlare new user@example.com c2547eb745079dac9320b638f5e225cf483cc5cfdda41]set cfZone [$cf zone 023e105f4ecef8ad9ca31a8372d0c353]