How do I read this syntax from the documentation of the API ?

Hi, I want to be able to find a DNS record that contains a particular substring, in Python. I created an A record with the name test. The documentation for the REST API provided a way to find a DNS record with a substring : https://developers.cloudflare.com/api/python/resources/dns/subresources/records/methods/list/
name: Optional[Name]
contains: Optional[str]
Substring of the DNS record name. Name filters are case-insensitive.

endswith: Optional[str]
Suffix of the DNS record name. Name filters are case-insensitive.

exact: Optional[str]
Exact value of the DNS record name. Name filters are case-insensitive.

startswith: Optional[str]
Prefix of the DNS record name. Name filters are case-insensitive.
name: Optional[Name]
contains: Optional[str]
Substring of the DNS record name. Name filters are case-insensitive.

endswith: Optional[str]
Suffix of the DNS record name. Name filters are case-insensitive.

exact: Optional[str]
Exact value of the DNS record name. Name filters are case-insensitive.

startswith: Optional[str]
Prefix of the DNS record name. Name filters are case-insensitive.
I don't know how to read this, I don't understand. Is name an array ? How can I use the contains 'feature' ?
Cloudflare API | DNS › Records › list
Interact with Cloudflare's products and services via the Cloudflare API
1 Reply
ellis
ellis13h ago
Just a random guess but I assume those to be properties of a Name class

Did you find this page helpful?