-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from lexicon.config import ConfigResolver | ||
from lexicon.client import Client | ||
|
||
lexicon_config = { | ||
"provider_name" : "cloudflare", # lexicon shortname for provider, see providers directory for available proviers | ||
"action": "list", # create, list, update, delete | ||
"domain": "capsulecd.com", # domain name | ||
"type": "CNAME", # specify a type for record filtering, case sensitive in some cases. | ||
"cloudflare": { | ||
# cloudflare(provider) specific configuration goes here. | ||
# if .with_env() is not used, all credentials required for authention must be specified here. | ||
} | ||
} | ||
|
||
config = ConfigResolver() | ||
config.with_env().with_dict(dict_object=lexicon_config) | ||
client = Client(config) | ||
results = client.execute() | ||
print results |