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]
  [--error-on-existing] <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
  --error-on-existing  When an existing record set is found, raise an
  error instead of replacing it.

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 or remove

  • 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.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

gcpdns-1.0.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gcpdns-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 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.0.0.tar.gz
Algorithm Hash digest
SHA256 494379cb8c488aded589d7ebb1f99f2e91f12d7e332de838848761a9e675c8f7
MD5 4fe173432e72367b3700efaa908e86cd
BLAKE2b-256 b32ddf8eca4aa6ad479bd88c2dfef5a66cca03832b8baedc28e405f6e791970d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcpdns-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765fa4a27a267c0ce46f27c983d1e2381b97ac424ce6c27c79325458cda0ff13
MD5 07516bdb90c565845a88e35e8b7eec70
BLAKE2b-256 385f4bdc59bbb83d989b2f9f79b3cf6676a53a06c15d699bf39caceead0a7eac

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