在出站处理中删除元素键/值对的策略 [英] Policy to remove element key/value pair on outbound processing

查看:82
本文介绍了在出站处理中删除元素键/值对的策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在出站处理期间,我设法使用了液体模板对JSON进行了很多处理.但是,我还没有弄清楚的一件事是如何删除特定的键/值对.

例如,在下面,我将如何简单地删除"@ odata.context"使用策略从输出中获得键/值对?

先谢谢了!
史蒂夫


解决方案

如果任何策略引用了Named value属性,您将无法成功删除它 从使用该属性的所有策略中删除该属性.有关更多详细信息,您可以参考此文档: https://docs.microsoft.com/zh-CN/azure/api-management/api-management-howto-properties#to-delete-a-property .

- 此答案很有帮助,请单击标记为答案"或投票.要提供有关您论坛的其他反馈 体验,请单击 解决方案

If the Named value property is referenced by any policies, you will be unable to successfully delete it until you remove the property from all policies that use it. For more details, you may refer to this document: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties#to-delete-a-property.

------------------------------------------------------------------------------------------------------If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here


这篇关于在出站处理中删除元素键/值对的策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆