Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcpdns-1.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

gcpdns-1.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file gcpdns-1.1.0.tar.gz.

File metadata

  • Download URL: gcpdns-1.1.0.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

Hashes for gcpdns-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6aa9d142891ea492142640a22a5b4ff8f3e7c338edee8353cf48e9dd76f44881
MD5 5700a103bd31a2ac0847c2b443a37d48
BLAKE2b-256 1b28deffcc4524f57721f2c3f394177e7eb5e68bb43dd54c45a0f256926329b6

See more details on using hashes here.

File details

Details for the file gcpdns-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcpdns-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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

Hashes for gcpdns-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aafa4f9aebd055e6028382a01f435f07cb0483e836951190fb7b9700daa14b3c
MD5 67e88f082da3fff8dfd8427272dfdce1
BLAKE2b-256 e95f4a9c9a7a401332182cce0c476a86e9c4f9eb51f8a0dba724bb3501f9c51c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page