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.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

gcpdns-1.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gcpdns-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5b6b4df7ccd2f874547a2235ad094c5ee10b3e001e2252857eeb4c7dee3a8a72
MD5 8b7b3f88639aff24f0297c918569264c
BLAKE2b-256 1eb5a5189ecd626ab9f4661559ccae7c862c7f9475d4d75a4a902b5cd2d6adba

See more details on using hashes here.

File details

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

File metadata

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

Hashes for gcpdns-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28c870e5417da9a8d2ca2d5d8844cb35be5dff9b26d16ececd88dcae2cee0d42
MD5 a0d71af852e1bbf65e07b8d2eca2bc84
BLAKE2b-256 d7205748a9258e5515ebd790a64ebaa381ce497e1000f69f8f2aef842caa7d3b

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