[英]Update Azure API management ip-filter policy details
I have created an API Management resource in Azure.我在 Azure 中创建了一个 API 管理资源。 Within the API management, under APIs section > All APIs, I have added an inbound policy 'ip-filter'.
在 API 管理中,在 API 部分 > 所有 API 下,我添加了入站策略“ip-filter”。
I wish to programatically change the contents of the policy's xml.我希望以编程方式更改策略 xml 的内容。
Is there a way to achieve this?有没有办法做到这一点?
Thanks!谢谢!
You could use the Set-AzApiManagementPolicy
from the Az Powershell to set the Policy XML.您可以使用 Az Powershell 中的
Set-AzApiManagementPolicy
来设置策略 XML。
Set-AzApiManagementPolicy -Context $apimContext -PolicyFilePath "C:\contoso\policies\tenantpolicy.xml"
There are various scopes.有各种范围。 You could set it at the tenant level,product level,api level and at the operation level.
您可以在租户级别、产品级别、api 级别和运营级别进行设置。 You could refer this for more information.
您可以参考此以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.