简体   繁体   English

Azure 资源管理器 (ARM) 模板使用 POST 调用资源提供程序操作

[英]Azure Resource Manager (ARM) template calling resource provider actions using POST

Is it possible to call POST actions from an Azure Resource Manager (ARM) template?是否可以从 Azure 资源管理器 (ARM) 模板调用 POST 操作? I have custom resource provider where I can create resources and call actions using POST as follows:我有自定义资源提供程序,我可以在其中创建资源并使用 POST 调用操作,如下所示:

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomResourceProvider/resource/{resourceName}/actionName POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomResourceProvider/resource/{resourceName}/actionName

Is there a way to call this action from a template?有没有办法从模板中调用这个动作?

No, there is none.不,没有。 ARM Templates can only do PUT calls, not POST. ARM 模板只能执行 PUT 调用,不能执行 POST。

I'm not sure whether I understand the question.我不确定我是否理解这个问题。 I try to answer.我试着回答。

The operations available for each Azure Resource Manager resource provider.可用于每个 Azure 资源管理器资源提供程序的操作。 These operations can be used in custom roles to provide granular role-based access control (RBAC) to resources in Azure.这些操作可用于自定义角色,为 Azure 中的资源提供基于角色的精细访问控制 (RBAC)。
Refer to: Azure Resource Manager resource provider operations请参阅: Azure Resource Manager 资源提供程序操作


It is desgined for RBAC to grant access. RBAC 旨在授予访问权限。 It seems can not be used for calling in ARM template.好像不能用于ARM模板中的调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM