问题描述
我正在尝试使用 API 将一组分类或标签插入到 Apache Atlas 中。 我遇到了错误。
import requests
import json
from requests.auth import HTTPBasicAuth
#specify url
url = 'http://aaaaa/api/atlas/v2/entity/classification'
print(url)
bulk = { "classification":{ "typeName":"Confidential","attributes":{ "retention_required":"true","max_retention_time_months":"12"}},"entityGuids":[ "be532571-1663-4550-af6d-28cfe39769f6"]}
#Call REST API
response = requests.put(url,data=bulk,auth=HTTPBasicAuth('xxx','yyy'))
print(response)
print(response.text)
此 GUID 有效。
我面临的错误是:
<Response [500]>
There was an error processing your request. It has been logged (ID 7e31c72f5e0f5e3b).
简而言之,我想通过 python 实现给定的屏幕功能。
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)