本页面介绍了如何续订在过去 30 天内已过期的域名。
如要为您的域名续期,请完成以下步骤。
gcloud
使用 gcloud domains registrations renew-domain
命令:
gcloud domains registrations renew-domain DOMAIN_NAME \ [--yearly-price=YEARLY_PRICE]
请替换以下内容:
DOMAIN_NAME
:您要续订的已注册网域的名称,例如example.app
。YEARLY_PRICE
:年度价格,后跟货币代码(例如 12.00 USD)。--yearly-price
是可选标志。如果省略此标志,gcloud CLI 会提示您确认年费。如需了解价格,请参阅 Cloud Domains 价格。
API
使用 registrations.renewDomain
方法:
POST https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/registrations/DOMAIN_NAME:renewDomain { "yearlyPrice": { "currencyCode": "CURRENCY_CODE", "units": NUMBER_OF_UNITS } }
请替换以下内容:
PROJECT_ID
:您的项目的名称DOMAIN_NAME
:您要续期的域名的名称CURRENCY_CODE
:ISO 4217 中定义的由三个字母组成的货币代码,例如USD
。NUMBER_OF_UNITS
:单位的年度价格。例如,如果currencyCode
为USD
,则一个单位等于一美元。如需了解价格,请参阅 Cloud Domains 价格。
后续步骤
- 如需查看已注册网域的列表,请参阅列出已注册的网域。
- 如需访问 API 信息,请参阅 Cloud Domains API。
- 如需查找您在使用 Cloud Domains 时可能会遇到的常见问题的解决方案,请参阅排查 Cloud Domains 问题。