我正在尝试在我的谷歌应用程序中为辅助域添加别名以使用域 api 工作,但没有成功。
在本文中写道:必须通过 Domains API 添加辅助域的域别名
使用 APIs Explorer 我尝试了这个查询:
POST https://www.googleapis.com/admin/directory/v1/customer/my_customer/domains?key={YOUR_API_KEY}
{
"domainName": "primarydomain.com",
"domainAliases": [
{
"parentDomainName": "secondarydomain.com",
"domainAliasName": "secondarydomainalias.it",
"verified": false
}
]
}
但我收到以下错误
> 409 Conflict
>
> - Hide headers -
>
> Cache-Control: private, max-age=0
> Content-Encoding: gzip
> Content-Length: 136
> Content-Type: application/json; charset=UTF-8
> Date: Thu, 18 Feb 2016 16:35:14 GMT
> Expires: Thu, 18 Feb 2016 16:35:14 GMT
> Server: GSE
> Vary: Origin, X-Origin
>
> {
> "error": {
> "errors": [
> {
> "domain": "global",
> "reason": "duplicate",
> "message": "Domain is already set up."
> }
> ],
> "code": 409,
> "message": "Domain is already set up."
> }
> }
有同样问题的人找到解决方案了吗?
最好的
桤木