Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

DNS-3431: Support Secondary DNS Endpoints#64

Merged
patryk merged 1 commit into
cloudflare:mastercloudflare/python-cloudflare:masterfrom
aaranmcguire:support-secondary-dnsCopy head branch name to clipboard
Apr 12, 2019
Merged

DNS-3431: Support Secondary DNS Endpoints#64
patryk merged 1 commit into
cloudflare:mastercloudflare/python-cloudflare:masterfrom
aaranmcguire:support-secondary-dnsCopy head branch name to clipboard

Conversation

@aaranmcguire

@aaranmcguire aaranmcguire commented Apr 12, 2019

Copy link
Copy Markdown

Overview

This PR adds support for Secondary DNS Endpoints, and allows users to manage Secondary Cloudflare. e.g:

#!/usr/bin/env python

import sys
import CloudFlare

def main():
    zone_name = sys.argv[1]
    cf = CloudFlare.CloudFlare()
    zone_info = cf.zones.post(data={'jump_start':False, 'name': zone_name})
    zone_id = zone_info['id']

   
    r = cf.zones.secondary_dns.post(zone_id, data={
        "id" : "269d8f4853475ca241c4e730be286b20",
        "name" : "www.example.com.",
        "masters" :
        [
            "23ff594956f20c2a721606e94745a8aa",
            "00920f38ce07c2e2f4df50b1f61d4194"
        ],
        "auto_refresh_seconds" : 30
    })
    exit(0)

if __name__ == '__main__':
    main()

@patryk patryk merged commit 286cb0f into cloudflare:master Apr 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.