A Python module and CLI for managing resource records on Google Cloud DNS
Project description
A Python module and CLI for managing resource records on Google Cloud DNS
gcpdns: A CLI for managing resource records on Google Cloud DNS Usage: gcpdns <credential_file> zones [-f csv|json] [-o <output_file>]... gcpdns <credential_file> records <zone> [-f csv|json] [-o <output_file>]... gcpdns <credential_file> apply [--verbose] [--ignore-errors] <csv_file> gcpdns -h | --help gcpdns --version Options: -h --help Show this screen. --version Show version. -f Set the screen output format [default: json]. -o Output to these files and suppress screen output. --verbose Enable verbose logging output. --ignore-errors Do not stop processing when an error occurs.
Features
Dump all project zones or zone resource records in CSV or JSON format
Update DNS resource records for multiple zones in one project using one CSV file
Setup
To use gcpdns, you’ll need a separate service account credentials JSON file for each project that you want to work with.
Ensure that the Service Account has the proper permissions to edit DNS (e.g. the DNS Administrator role) in the project.
Records CSV fields
action
add - Adds a resource record set
replace - The same as add, but will replace an existing resource record set with the same name and record_type (if it exists)
delete - Deletes a resource record set
name - The record set name (i.e. the Fully-Qualified Domain Name)
record_type - The DNS record type
ttl - DNS time to live (in seconds)
data - DNS record data separated by |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gcpdns-1.1.2.tar.gz
.
File metadata
- Download URL: gcpdns-1.1.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2d4aa934d3c0bdb1377ea663ac3d4f1541e60250c5b3a13ed88b118600f5d75 |
|
MD5 | 89ce17c5b4e8abe30aab93426cd27d27 |
|
BLAKE2b-256 | 7c9e5f57c798cec3a5311a56a1002144bcd6689c1dcb4913c5238b32301a8c51 |
File details
Details for the file gcpdns-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: gcpdns-1.1.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922acd068622b3cf63c3915f4380f125247b2e6151d8d9a8cb40a8d7b48b800b |
|
MD5 | 86b350784cca80eb0ebe59a46fedc837 |
|
BLAKE2b-256 | 72317452a41a279b1a0cc7635006f0295b84e3bb381eaca8bb50451a495c71ca |