get_access_control_effect
async
¶
get_access_control_effect(
organization_id: OrganizationId,
ip_address: IpAddress,
action: AccessControlRuleAction,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = 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/async_work_mail.py
2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 | |