ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest
Bases: OCIRequest
Request the number of access device of a particular device type and service provider. If countOnlyResetSupportedDevice is true, count only access devices if the device type supports reset. By default unmanaged device types are not allowed and devices are counted only if their device type supports Device Management. An error is returned if deviceType is specified but does not support device management. When allowUnmanagedDeviceType is true, unmanaged device type will be counted and a successful response is returned. The response is either ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderResponse or ErrorResponse.
Attributes:
service_provider_id (str):
device_type (str):
count_only_reset_supported_device (Optional[bool]):
allow_unmanaged_device_type (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
Responses
Bases: OCIDataResponse
Response to ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest.
Attributes:
access_device_count (int):
Source code in src/mercury_ocip_fast/commands/commands.py
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest
client = Client()
command = ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest(
service_provider_id=...,
device_type=...,
count_only_reset_supported_device=...,
allow_unmanaged_device_type=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("ServiceProviderDeviceManagementGetAccessDeviceCountForDeviceTypeServiceProviderRequest",
service_provider_id=...,
device_type=...,
count_only_reset_supported_device=...,
allow_unmanaged_device_type=...,
)
print(response)