为最近过期的域名续期

本页面介绍了如何续订在过去 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:单位的年度价格。例如,如果 currencyCodeUSD,则一个单位等于一美元。如需了解价格,请参阅 Cloud Domains 价格

后续步骤