我使用API:https://softlayer.github.io/reference/services/SoftLayer_Virtual_Guest/setTags/标记了我的虚拟访客。 API返回错误:SoftLayer_Exception_InvalidValue:为“标签”提供了无效的值。无效的标签名称:created_at:2018-10-08t13:31:57 + 02:00。
我注意到https://softlayer.github.io/reference/services/SoftLayer_Tag/setTags/中的The characters permitted are A-Z, 0-9, whitespace, _ (underscore), - (hypen), . (period), and : (colon). All other characters will be stripped away.
我认为这两个API具有相同的行为。但是这些无效字符并未被删除。
它们的API结果不同吗?还是应该使用SoftLayer_Tag/setTags/
去除无效字符?
答案 0 :(得分:0)
我使用您提供的字符串使用这两种方法进行了API测试,并验证了这两种方法的行为是否相同。
当前,这两种方法都显示与门户网站UI一样的确切异常错误,而不是SoftLayer_Tag::setTags文档中提到的剥离无效字符,尽管没有预计的时间,但已经报告了此错误何时正确更新SLDN文档。