libsolace.items.SolaceACLProfile module¶
-
class
libsolace.items.SolaceACLProfile.
SolaceACLProfile
[source]¶ Plugin to manage AclProfiles
This plugin manages ACL Profiles within Solace. Typically you should invoke this plugin via
libsolace.SolaceAPI.SolaceAPI
Please see
libsolace.plugin.Plugin
for how plugins are instantiated and used.-
allow_connect
(**kwargs)[source]¶ Allow Connect
Parameters: - name – name of the profile
- vpn_name – vpn name
Return type: Returns: single SEMP request
Example:
>>> api = SolaceAPI("dev") >>> request = api.manage("SolaceACLProfile").allow_subscribe(name="myprofile", vpn_name="dev_testvpn") >>> # response = api.rpc(request)
-
allow_publish
(**kwargs)[source]¶ Allow publish
Example:
>>> api = SolaceAPI("dev") >>> request = api.manage("SolaceACLProfile").allow_publish(name="myprofile", vpn_name="dev_testvpn") >>> # response = api.rpc(request)
Parameters: - name – name of the profile
- vpn_name – vpn name
Return type: Returns: single SEMP request
-
allow_subscribe
(**kwargs)[source]¶ Allow subscribe
Parameters: - name – name of the profile
- vpn_name – vpn name
Return type: Returns: single SEMP request
Example:
>>> api = SolaceAPI("dev") >>> request = api.manage("SolaceACLProfile").allow_subscribe(name="myprofile", vpn_name="dev_testvpn") >>> # api.rpc(request)
-
api
= None¶ SolaceAPI instance
-
get
(**kwargs)[source]¶ Returns the ACL immediately as a dictionary
Parameters: - name – name of the profile
- vpn_name – vpn name
Returns: tuple SEMP request and kwargs
Return type: dict
Returns: the acl profile
-
new_acl
(**kwargs)[source]¶ Returns a SEMP request for new ACL profile.
Example:
>>> api = SolaceAPI("dev") >>> request = api.manage("SolaceACLProfile").new_acl(name="myprofile", vpn_name="dev_testvpn") >>> # response = api.rpc(request)
Parameters: - name – name of the profile
- vpn_name – vpn name
Return type: Returns: single SEMP request
-
plugin_name
= 'SolaceACLProfile'¶
-