@@ -84,7 +84,8 @@ The following example demonstrates the use of a filter:
8484# Unfortunately, they may contain tens of thousands of records.
8585DOMAIN_FILTER=org.eu.cloud.example.com,org-hq.us.cloud.example.com
8686
87- # Using regex, we further restrict the domains to org.eu.cloud.example.comorg-hq.us.cloud.example.com
87+ # If DOMAIN_FILTER is not enough, you can use regex. Once you use REGEXP_DOMAIN_FILTER, DOMAIN_FILTER will be ignored.
88+ # In following example we restrict zones to *.eu.cloud.example.com or *.org-hq.us.cloud.example.com.
8889REGEXP_DOMAIN_FILTER=(eu.cloud| org-hq.us).cloud.example.com
8990
9091# Finally, we filter only those records that have `my-project.org-hq` or `.us.cloud` in the name
@@ -109,15 +110,15 @@ curl -X POST -H 'Accept: application/external.dns.webhook+json;version=1;' -H 'C
109110
110111Create ` test.cloud.example.com `
111112``` json
112- {"Create" :null ,"UpdateOld" :[{"dnsName" :" test.cloud.example.com" ,"targets" :[" 1.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }], "UpdateNew" : null ,"Delete" :null }
113+ {"Create" :null ,"UpdateOld" :null , "UpdateNew" : [{"dnsName" :" test.cloud.example.com" ,"targets" :[" 1.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }],"Delete" :null }
113114```
114115
115- Update ` test.cloud.example.com `
116+ Update ` test.cloud.example.com ` (DELETE one record ` test.cloud.example.com ` and CREATE two records ` new-test.cloud.example.com ` )
116117``` json
117- {"Create" :null ,"UpdateOld" :[{"dnsName" :" test.cloud.example.com" ,"targets" :[" 1.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }],"UpdateNew" :null , "Delete" : [{"dnsName" :" new-test.cloud.example.com" ,"targets" :[" 1.2.3.4" ," 4.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }]}
118+ {"Create" :null ,"UpdateOld" :[{"dnsName" :" test.cloud.example.com" ,"targets" :[" 1.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }],"UpdateNew" :[{"dnsName" :" new-test.cloud.example.com" ,"targets" :[" 1.2.3.4" ," 4.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }], "Delete" : null }
118119```
119120
120121Delete ` test-new.cloud.example.com `
121122``` json
122- {"Create" :null ,"UpdateOld" :null , "UpdateNew" : null , "Delete" : [{"dnsName" :" new-test.cloud.example." ,"targets" :[" 1.2.3.4" ," 4.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }]}
123+ {"Create" :null ,"UpdateOld" :[{"dnsName" :" new-test.cloud.example." ,"targets" :[" 1.2.3.4" ," 4.3.2.1" ],"recordType" :" A" ,"recordTTL" :300 }], "UpdateNew" : null , "Delete" : null }
123124```
0 commit comments