跳至内容

Route53 reporting with command line

0

Is it possible to use an API/CLI to query/change my Route53 records? For example can I produce a list of domains and when they are due? or change the auto renew flag?

1 回答
2
已接受的回答

You can use the Route53 Domains API (and CLI command). See the CLI docs, or you can run aws route53domains help at your prompt.

To list your domains and when they're due for renewal, you could use something like:

aws route53domains list-domains --query "Domains[].[DomainName,Expiry]" --output text

and to change the autorenew flag, use

aws route53domains enable-domain-auto-renew --domain-name example.com

(or disable-domain-auto-renew). You can use the route53domains client in the SDKs similarly (for example, in boto3).

AWS
专家

已回答 4 年前

AWS
专家

已审核 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。