我正在使用 Google Apps 并尝试将域别名添加到我拥有的辅助域。
根据这个Google Apps blog article “[域] API 允许您以编程方式为任何域(主域或辅助域)添加别名,但辅助域的别名只能通过 API 添加。”
我在 the APIs explorer 上尝试了 API (在页面底部)但只设法将域别名添加到我的主域而不是我的辅助域。
使用我尝试过的 POST 方法:
{
"domainName": "alias.domain.com",
"domainAliases": [
{
"parentDomainName": "secondary.domain.com",
"verified": true
}
]
}
对此事的任何了解将不胜感激。
问候,
乔
最佳答案
您需要使用 DomainAliases API:
https://developers.google.com/admin-sdk/directory/v1/reference/domainAliases/insert
从那里输入:
customer = your immutable ID
domainAliasName = the alias to add
parentDomainName = the secondary domain to which you want to add an alias
应该是这样。
关于google-api - 使用 Google Apps Domains API 将域别名添加到辅助域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34770372/