Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get calls assume single DNS View #5

Open
coreywan opened this issue Oct 24, 2018 · 0 comments
Open

Get calls assume single DNS View #5

coreywan opened this issue Oct 24, 2018 · 0 comments

Comments

@coreywan
Copy link

If I make a get call. The flask app is ignoring the view field, and only matching to the name for a return of the get call. As an example if I have testcname.ansible.com in an 'external' view, the below request will return that external record:

/wapi/v2.1/record%3Acname?name=testcname.ansible.com&view=Internal&canonical=host1.ansible.com&_return_fields=name%2Cview%2Ccanonical%2Cttl%2Cextattrs%2Ccomment&_max_results=1000

From Postman:

[
    {
        "_ref": "record:cname/ZG5zLnJlY29yZDpjbmFtZSROb25l:testcname.ansible.com/false",
        "canonical": "host1.ansible.com",
        "comment": null,
        "configure_for_dns": true,
        "extattrs": {},
        "fqdn": null,
        "grid_primary": null,
        "grid_secondaries": null,
        "ipv4": null,
        "ipv4addr": null,
        "ipv4addrs": [],
        "ipv6": null,
        "ipv6addr": null,
        "ipv6addrs": [],
        "is_default": false,
        "mail_exchanger": null,
        "name": "testcname.ansible.com",
        "network": null,
        "network_view": "default",
        "ns_group": null,
        "options": [],
        "order": null,
        "port": null,
        "preference": null,
        "priority": null,
        "ptrdname": null,
        "replacement": null,
        "target": null,
        "text": null,
        "uid": "ZG5zLnJlY29yZDpjbmFtZSROb25l",
        "view": "External",
        "viewtype": "record:cname",
        "weight": null,
        "zone_format": null
    }
]

Notice the GET call above is querying where the view=Internal. However, the result shows a record from the External view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant