get_access_control_effect
¶
get_access_control_effect(
organization_id: OrganizationId,
ip_address: IpAddress,
action: AccessControlRuleAction,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
user_id: Optional[WorkMailIdentifier] = None,
impersonation_role_id: Optional[ImpersonationRoleId] = None,
) -> GetAccessControlEffectResponse
Gets the effects of an organization's access control rules as they apply to a specified IPv4 address, access protocol action, and user ID or impersonation role ID. You must provide either the user ID or impersonation role ID. Impersonation role ID can only be used with Action EWS.
Parameters:
-
organization_id(OrganizationId) –The identifier for the organization.
-
ip_address(IpAddress) –The IPv4 address.
-
action(AccessControlRuleAction) –The access protocol action. Valid values include
ActiveSync,AutoDiscover,EWS,IMAP,SMTP,WindowsOutlook, andWebMail. -
user_id(Optional[WorkMailIdentifier], default:None) –The user ID.
-
impersonation_role_id(Optional[ImpersonationRoleId], default:None) –The impersonation role ID.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
ResourceNotFoundException–The resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 | |