使用 Google 应用程序域 API 将域别名添加到辅助域
Add a domain alias to a secondary domain using the Google Apps Domains API
我正在使用 Google 应用程序,我正在尝试将域别名添加到我拥有的辅助域。
据此Google Apps blog article"the [domains] API lets you programmatically add aliases for any domain, primary or secondary, but aliases for secondary domain can only be added via the 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 应用程序,我正在尝试将域别名添加到我拥有的辅助域。
据此Google Apps blog article"the [domains] API lets you programmatically add aliases for any domain, primary or secondary, but aliases for secondary domain can only be added via the 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
应该是这样。