katana_public_api_client.api.serial_number.get_all_serial_numbers¶
katana_public_api_client.api.serial_number.get_all_serial_numbers
¶
Classes¶
Functions¶
asyncio(*, client, resource_type=UNSET, resource_id=UNSET, limit=UNSET, page=UNSET)
async
¶
List serial numbers
Returns a list of serial numbers, optionally filtered by
resource_type and/or resource_id.
Filter behavior (verified live 2026-05-19):
- Both filters set → results scoped to that exact
(type, id). resource_typealone → ALL serial numbers of that type across all resources (paginated, never 422).resource_idalone → narrows to that resource regardless of type.- Neither filter → all serial numbers in the tenant (paginated).
- Page beyond data → 200 with an empty
dataarray, not 404.
Parameters:
-
resource_type(GetAllSerialNumbersResourceType | Unset, default:UNSET) – -
resource_id(int | Unset, default:UNSET) – -
limit(int | Unset, default:UNSET) –Default: 50.
-
page(int | Unset, default:UNSET) –Default: 1.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | SerialNumberListResponse | None–ErrorResponse | SerialNumberListResponse
Source code in katana_public_api_client/api/serial_number/get_all_serial_numbers.py
asyncio_detailed(*, client, resource_type=UNSET, resource_id=UNSET, limit=UNSET, page=UNSET)
async
¶
List serial numbers
Returns a list of serial numbers, optionally filtered by
resource_type and/or resource_id.
Filter behavior (verified live 2026-05-19):
- Both filters set → results scoped to that exact
(type, id). resource_typealone → ALL serial numbers of that type across all resources (paginated, never 422).resource_idalone → narrows to that resource regardless of type.- Neither filter → all serial numbers in the tenant (paginated).
- Page beyond data → 200 with an empty
dataarray, not 404.
Parameters:
-
resource_type(GetAllSerialNumbersResourceType | Unset, default:UNSET) – -
resource_id(int | Unset, default:UNSET) – -
limit(int | Unset, default:UNSET) –Default: 50.
-
page(int | Unset, default:UNSET) –Default: 1.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | SerialNumberListResponse]–Response[ErrorResponse | SerialNumberListResponse]
Source code in katana_public_api_client/api/serial_number/get_all_serial_numbers.py
sync(*, client, resource_type=UNSET, resource_id=UNSET, limit=UNSET, page=UNSET)
¶
List serial numbers
Returns a list of serial numbers, optionally filtered by
resource_type and/or resource_id.
Filter behavior (verified live 2026-05-19):
- Both filters set → results scoped to that exact
(type, id). resource_typealone → ALL serial numbers of that type across all resources (paginated, never 422).resource_idalone → narrows to that resource regardless of type.- Neither filter → all serial numbers in the tenant (paginated).
- Page beyond data → 200 with an empty
dataarray, not 404.
Parameters:
-
resource_type(GetAllSerialNumbersResourceType | Unset, default:UNSET) – -
resource_id(int | Unset, default:UNSET) – -
limit(int | Unset, default:UNSET) –Default: 50.
-
page(int | Unset, default:UNSET) –Default: 1.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | SerialNumberListResponse | None–ErrorResponse | SerialNumberListResponse
Source code in katana_public_api_client/api/serial_number/get_all_serial_numbers.py
sync_detailed(*, client, resource_type=UNSET, resource_id=UNSET, limit=UNSET, page=UNSET)
¶
List serial numbers
Returns a list of serial numbers, optionally filtered by
resource_type and/or resource_id.
Filter behavior (verified live 2026-05-19):
- Both filters set → results scoped to that exact
(type, id). resource_typealone → ALL serial numbers of that type across all resources (paginated, never 422).resource_idalone → narrows to that resource regardless of type.- Neither filter → all serial numbers in the tenant (paginated).
- Page beyond data → 200 with an empty
dataarray, not 404.
Parameters:
-
resource_type(GetAllSerialNumbersResourceType | Unset, default:UNSET) – -
resource_id(int | Unset, default:UNSET) – -
limit(int | Unset, default:UNSET) –Default: 50.
-
page(int | Unset, default:UNSET) –Default: 1.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | SerialNumberListResponse]–Response[ErrorResponse | SerialNumberListResponse]