def do_rdns_list(cs, args): """List all PTR records configured for the specified Cloud Server.""" record_list = cs.records.rdns_list(args.href) columns = ['ID', 'Name', 'Type', "Data", "TTL", "Comment"] utils.print_list(record_list, columns)
def do_record_list(cs, args): """Print a list of records for the given domain.""" domainId = utils.find_resource(cs.domains, args.domain) record_list = cs.records.list(domainId) columns = ['ID', 'Name', 'Type', "Data", "TTL", "Priority", "Comment"] utils.print_list(record_list, columns)
def do_domain_list(cs, args): """Print a list of available domains.""" domain_list = cs.domains.list() columns = ['ID', 'Name', 'emailAddress'] utils.print_list(domain_list, columns)
def do_subdomain_list(cs, args): """Print a list of available sub-domains for the given domain.""" domainId = utils.find_resource(cs.domains, args.domain) domain_list = cs.domains.subdomains_list(domainId) columns = ['ID', 'Name', 'emailAddress'] utils.print_list(domain_list, columns)