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.
Para executar esses comandos, utilize o objeto AdminTask do cliente de script wsadmin. Cada comando age em vários objetos em uma operação. Os comandos são fornecidos para permitir que você faça os tipos de atualização mais comumente requeridos de forma consistente, pois a modificação dos objetos subjacentes diretamente seria propensa a erros.
O cliente de script wsadmin é executado do Qshell.
Para obter informações adicionais, consulte Configurando o Qshell para Executar Scripts do WebSphere Usando o Script wsadmin.
- Para obter uma lista dos comandos de segurança do barramento de integração de
serviços disponíveis no Jython e uma breve descrição de cada comando, digite o seguinte
comando no prompt wsadmin:
print AdminTask.help('SIBAdminBusSecurityCommands')
- Para obter ajuda de visão geral sobre um determinado comando, digite o seguinte comando no prompt 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}
- Using Jython:
- 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}
- Using Jython:
- 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}
- Using Jython:
- 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}
- Using Jython:
- 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}
- Using Jython: