Method | Description | |
---|---|---|
CloudflareApiController ( ) : System | ||
GetSSLStatus ( string zoneId ) : |
Gets the user details for the current users credentials in the config. This is useful to test if the credentials are valid.
|
|
GetUserDetails ( ) : |
Gets the user details for the current users credentials in the config. This is useful to test if the credentials are valid.
|
|
ListZones ( string name = null, bool throwExceptionOnFail = false ) : List |
Call the cloudflare api to get a list of zones associated with this api key / account email combo. If you pass in a name (domain name), it will return that zone.
|
|
PurgeCache ( string zoneIdentifier, IEnumerable |
This will call the Cloudflare api and will purge the individual pages or files given in the urls parameter.
|
Method | Description | |
---|---|---|
AddRequestHeaders ( |
public GetSSLStatus ( string zoneId ) : |
||
zoneId | string | |
return |
public GetUserDetails ( ) : |
||
return |
public ListZones ( string name = null, bool throwExceptionOnFail = false ) : List |
||
name | string | The domain name of the zone that you wish to get the info about. If you want all of them, leave it blank. |
throwExceptionOnFail | bool | |
return | List |
public PurgeCache ( string zoneIdentifier, IEnumerable |
||
zoneIdentifier | string | This is the id of the zone you want to purge the urls from. Can be obtained through ListZones |
urls | IEnumerable |
The urls of the pages/files that you want to purge the cache for on cloudflare. If it is empty or null, the function will just return /// and no api call will be made. |
purgeEverything | bool | If set to true, the urls will be ignored and we will purge everything. |
throwExceptionOnError | bool | |
return | bool |