在运行Deep Security/11.3.184的系统上创建租户时,我收到以下响应:
{
"message":"Unable to connect to SMTP server. Please verify the SMTP configuration in System Settings."
}我调用的API资源是'/tenants‘,HTTP方法是POST。请求的主体(一些细节是匿名的)是:
{
"administrator": {
"active": true,
"emailAddress": "******@********.***",
"fullName": "****** ****",
"locale": "en-US",
"password": "*******",
"primaryContact": true,
"receiveNotifications": false,
"roleID": 1,
"timeFormat": "24",
"timeZone": "UTC",
"username": "admin"
},
"databaseServerID": 1,
"description": "1190000206_11174_njkhnjklh",
"locale": "en-US",
"modulesVisible": [
"all"
],
"name": "1190000206_11174_njkhnjklh",
"timeZone": "UTC"
}这种响应可能发生的原因是什么?请注意,我不管理DeepSecurity应用程序,我是作为第三方询问的,因此需要将详细信息转发给管理DeepSecurity应用程序的团队。
发布于 2019-04-09 20:23:42
当Deep Security Manager上没有配置SMTP服务,并且创建租户的请求需要电子邮件确认时,会出现此响应。您的请求正文看起来没问题,但您需要添加设置为false的confirmationRequired查询参数:
https://dsm.example.com:4119/api/tenants?confirmationRequired=false如果你使用SDK,这是在TenantApi.createTenant方法(或函数)的参数中设置的,例如在Python中:
tenants_api.create_tenant(tenant, api_version, confirmation_required=False)可以在这里找到一个示例:https://automation.deepsecurity.trendmicro.com/article/11_3/create-and-manage-tenants#createtenant
希望这能有所帮助。顺便说一句,我是一个深度安全内容开发人员-谢谢你的问题!
https://stackoverflow.com/questions/55586905
复制相似问题