Retrieves the root/admin permissions on the target API. See ``nvmlRestrictedAPI_t`` for the list of supported APIs. If an API is restricted only root users can call that API. See ``nvmlDeviceSetAPIRestriction`` to change current permissions.
:param device: The identifier of the target device.
:type device: intptr_t
:param api_type: Target API type for this operation.
:type api_type: RestrictedAPI
:returns: Reference in which to return the current restriction NVML_FEATURE_ENABLED indicates that the API is root-only NVML_FEATURE_DISABLED indicates that the API is accessible to all users.
:rtype: int
.. seealso:: `nvmlDeviceGetAPIRestriction`