本文介绍了哪些Java API等同于Azure cli命令& az角色分配列表--assignee client-id& quot;在输出方面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些Java API等同于Azure cli命令" az role assignment list --assignee client-id"在产出方面?

Which Java APIs are equivalent to Azure cli command "az role assignment list --assignee client-id" in term of ouput?

az>> az角色 分配
列表 --assignee   client-id

输出:      

[

  {

  {

    " canDelegate":null,

    "canDelegate": null,

    " id":" xxxx",

    "id": "xxxx",

    " name":" xxxx",

    "name": "xxxx",

    " principalId": " xxxx"

    " principalName": " xxxx"

    " roleDefinitionId": " xxxx"

    " roleDefinitionName":" Reader",

    "roleDefinitionName": "Reader",

    " scope": " xxxx"

    " type" ;:\"Microsoft.Authorization / roleAssignments"

    "type": "Microsoft.Authorization/roleAssignments"

  }

  }

]

上面的cli命令给出了"roleDefinitionName""在与应用或服务原则相关的输出中。

Above cli command gives the "roleDefinitionName" in ouput that is associated to application or service principle.

我正在寻找等效的java API,它提供  " roleDefinitionName"在输出中。角色名称   已分配给应用或服务
原则。 

推荐答案

目前
RBAC List API
在其输出中不包含'roleDefintitonName'属性。您将不得不进行另一次API调用以检索列出的信息

这里

Currently RBAC List API does not include the 'roleDefintitonName' property in it's output. You will have to make another API call to retrieve that information as listedhere.

我建议直接将此作为功能请求提交给产品团队
here
。 

I recommend submitting this as a feature request to the product team directly here

Hope这有帮助。 

Hope this helps. 


这篇关于哪些Java API等同于Azure cli命令& az角色分配列表--assignee client-id& quot;在输出方面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 00:25