我想知道dlp-api在身份验证方面是否有任何更改,或者服务是否已关闭。看起来医生没有提到任何变化。
请求被格式化为这样的
POST https://dlp.googleapis.com/v2/projects/<project_id>/content:deidentify?key=<key> HTTP/1.1
{
"item": {
"value": "["Humphrey","Roy","Hodge","Juarez","Watkins","Calderon","Mayer","Drake","Valdez","Landry"]"
},
"deidentifyConfig": {
"infoTypeTransformations": {
"transformations": [
{
"primitiveTransformation": {
"replaceWithInfoTypeConfig": {}
}
}
]
}
},
"inspectConfig": {
"infoTypes": [
{
"name": "US_SOCIAL_SECURITY_NUMBER"
},
{
"name": "CREDIT_CARD_NUMBER"
},
{
"name": "US_DRIVERS_LICENSE_NUMBER"
},
{
"name": "EMAIL_ADDRESS"
},
{
"name": "PERSON_NAME"
},
{
"name": "PHONE_NUMBER"
},
{
"name": "LOCATION"
}
]
}
}
返回的错误非常神秘,因此我很难弄清楚到底发生了什么,特别是考虑到完全相同的请求早些时候也在工作。
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
}
确实存在一个错误,工程团队已经为其提供了补丁,并且正在推出修复程序。(它只影响未经身份验证的调用,因此使用身份验证调用是解决方案(