cloud_dns.pl
Provides an OAUTH'd client interface to https://cloud.google.com/storage/docs/json_api/v1/
perl cloud_dns.pl <your-managed-domain>
NB:
??????? ??????? <a href="https://code.google.com/apis/language/translate/v2/getting_started.html"><img src="https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"></a>
PRE-REQUISITES
Setup a Google Project in the Google Console and add the Cloud API Library.
The project resource is a top level container for resources including Cloud DNS ManagedZones. Projects can be created only in the APIs console. https://console.cloud.google.com/apis
dns.googleapis.com
Setup an OAUTH Credential set and feed this into the CLI goauth included in WebService::GoogleAPI::Client and use the tool to authorise your user to access the project which will also create the local gapi.json config.
assumes gapi.json configuration in working directory with scoped project and user authorization
RELEVANT SCOPES
- https://www.googleapis.com/auth/ndev.clouddns.readonly
- https://www.googleapis.com/auth/ndev.clouddns.readwrite
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/cloud-platform.read-only
GOOGLE API LINKS
- https://cloud.google.com/dns/
- https://cloud.google.com/dns/docs/reference/v1/
- https://developers.google.com/apis-explorer/
OTHER INTERFACES TO GOOGLE DNS SERVICES
gcloud Google SDK https://cloud.google.com/sdk/install
The Cloud SDK is a set of tools for Cloud Platform. It contains gcloud, gsutil, and bq, which you can use to access Google Compute Engine, Google Cloud Storage, Google BigQuery, and other products and services from the command-line.
You can run these tools interactively or in your automated scripts. https://cloud.google.com/sdk/gcloud/reference/dns/
gcloud dns managed-zones --help
gcloud dns managed-zones create wwww-zone --description="wwww.com.au Zone" \
--dns-name="wwww.com.au."