Listing security roles for service integration by using the wsadmin tool

When you are administering messaging security, use these commands to list the security roles that are associated with service integration bus destinations, foreign buses, topics within a topic space, users and groups.

如果要執行這些指令,請使用 wsadmin Scripting 用戶端AdminTask 物件。 每個指令都在單一作業中處理多個物件。 這些指令可供您以一致的方式來進行最常需要的更新類型,其中直接修改基礎物件很容易造成錯誤。

[IBM i][IBM i]wsadmin Scripting 用戶端是從 Qshell 執行. [IBM i]如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.

服務整合匯流排指令有指令行說明:
  • 如需 Jython 中可用的服務整合匯流排安全指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:

    print AdminTask.help('SIBAdminBusSecurityCommands')

  • 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:

    print AdminTask.help('command_name')

Commands

Listing all destinations with roles
To list all destinations that have roles defined for them, use the following command:
  • Using Jython:
    AdminTask.listAllDestinationsWithRoles("-bus busname
     -type destinationType")
  • Using Jacl:
    $AdminTask listAllDestinationsWithRoles {-bus busname
     -type destinationType}
Listing all foreign buses with roles
To list all foreign buses that have roles defined for them, use the following command:
  • Using Jython:
    AdminTask.listAllForeignBusesWithRoles("-bus busname")
  • Using Jacl:
    $AdminTask listAllForeignBusesWithRoles {-bus busname}
Listing all topics within a topic space with roles
To list all topics within a topic space that have roles defined for them, use the following command:
  • Using Jython:
    AdminTask.listAllTopicsWithRoles("-bus busname
     -topicSpace topicSpaceName")
  • Using Jacl:
    $AdminTask listAllTopicsWithRoles {-bus busname
     -topicSpace topicSpaceName}
Listing user roles
To list all the roles that a user belongs to, use the following command in wsadmin:
  • Using Jython:
    AdminTask.listAllRolesForUser("-bus busname -user userName")
  • Using Jacl:
    $AdminTask listAllRolesForUser {-bus busname -user userName}
Listing group roles
To list all the roles that a group belongs to, use the following command in wsadmin:
  • Using Jython:
    AdminTask.listAllRolesForGroup("-bus busname -group groupName")
  • Using Jacl:
    $AdminTask listAllRolesForGroup {-bus busname -group groupName}

指出主題類型的圖示 參照主題



時間戳記圖示 前次更新: July 9, 2016 11:12
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rjr_roles_list
檔名:rjr_roles_list.html