public class DnsExample extends Object
This example creates, deletes, gets, and lists zones. It also creates and deletes record sets of type A, and lists record sets.
See the README for compilation instructions. Run this code with
target/appassembler/bin/DnsExample [<project_id>]
create <zone_name> <dns_name> <description> |
get <zone_name> |
delete <zone_name> |
list [<zone_name> [changes [descending | ascending] | records]] |
add-record <zone_name> <record_name> <ip> <ttl> |
delete-record <zone_name> <record_name> <ip> [<ttl>] |
quota
The first parameter is an optional project_id. The project specified in the Google
Cloud SDK configuration (see gcloud config list) will be used if the project ID is not
supplied. The second parameter is a DNS operation (list, delete, create, ...). The remaining
arguments are specific to the operation. See each action's run method for the specific
arguments.
| Constructor and Description |
|---|
DnsExample() |
Copyright © 2016 Google. All rights reserved.