有没有办法按域名检索托管区域?
我认为使用 listHostedZonesByName( 'pagefoo.io' ) 可以解决问题,但它会返回不相关的结果:pagefoo.net、pagefoo.org 而不仅仅是 pagefoo.io。
Array
(
[0] => Array
(
[Id] => /hostedzone/XXXXXXXXXXXX
[Name] => pagefoo.io.
[CallerReference] => XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[Config] => Array
(
[PrivateZone] =>
)
[ResourceRecordSetCount] => 5
)
[1] => Array
(
[Id] => /hostedzone/XXXXXXXXXXXX
[Name] => pagefoo.net.
[CallerReference] => XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[Config] => Array
(
[PrivateZone] =>
)
[ResourceRecordSetCount] => 6
)
[2] => Array
(
[Id] => /hostedzone/XXXXXXXXXXXX
[Name] => pagefoo.org.
[CallerReference] => XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[Config] => Array
(
[PrivateZone] =>
)
[ResourceRecordSetCount] => 4
)
)