예제 #1
0
    def run(self, name, email_address, ttl=None, comment=None):
        cdns = self.pyrax.cloud_dns

        zone = cdns.create(name=name, emailAddress=email_address, ttl=ttl,
                           comment=comment)
        result = to_dns_zone_dict(zone)
        return result
    def run(self, name, email_address, ttl=None, comment=None):
        cdns = self.pyrax.cloud_dns

        zone = cdns.create(name=name,
                           emailAddress=email_address,
                           ttl=ttl,
                           comment=comment)
        result = to_dns_zone_dict(zone)
        return result
    def run(self):
        cdns = self.pyrax.cloud_dns
        zones = cdns.list()

        result = []
        for zone in zones:
            item = to_dns_zone_dict(zone=zone)
            result.append(item)

        return result
예제 #4
0
    def run(self):
        cdns = self.pyrax.cloud_dns
        zones = cdns.list()

        result = []
        for zone in zones:
            item = to_dns_zone_dict(zone=zone)
            result.append(item)

        return result