Caution
box-python-sdk-gen is deprecated and no longer maintained. As of September 17, 2025, it receives no new features, bug fixes, or security patches. Do not use it for new projects.
Use box-python-sdk v10+ instead: pip install "boxsdk>=10".
The equivalent of this page is box-python-sdk/docs/shield_lists.md. To migrate existing code, see the migration guide.
- Get all shield lists in enterprise
- Create shield list
- Get single shield list by shield list id
- Delete single shield list by shield list id
- Update shield list
Retrieves all shield lists in the enterprise.
This operation is performed by calling function get_shield_lists_v2025_r0.
See the endpoint docs at API Reference.
client.shield_lists.get_shield_lists_v2025_r0()- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ShieldListsV2025R0.
Returns the list of shield list objects.
Creates a shield list.
This operation is performed by calling function create_shield_list_v2025_r0.
See the endpoint docs at API Reference.
client.shield_lists.create_shield_list_v2025_r0(
shield_list_country_name,
ShieldListContentCountryV2025R0(
type=ShieldListContentCountryV2025R0TypeField.COUNTRY,
country_codes=["US", "PL"],
),
description="A list of things that are shielded",
)- name
str- The name of the shield list.
- description
Optional[str]- Optional description of Shield List.
- content
ShieldListContentRequestV2025R0 - box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ShieldListV2025R0.
Returns the shield list object.
Retrieves a single shield list by its ID.
This operation is performed by calling function get_shield_list_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.shield_lists.get_shield_list_by_id_v2025_r0(shield_list_country.id)- shield_list_id
str- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ShieldListV2025R0.
Returns the shield list object.
Delete a single shield list by its ID.
This operation is performed by calling function delete_shield_list_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.shield_lists.delete_shield_list_by_id_v2025_r0(shield_list_country.id)- shield_list_id
str- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type None.
Shield List correctly removed. No content in response.
Updates a shield list.
This operation is performed by calling function update_shield_list_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.shield_lists.update_shield_list_by_id_v2025_r0(
shield_list_country.id,
shield_list_country_name,
ShieldListContentCountryV2025R0(
type=ShieldListContentCountryV2025R0TypeField.COUNTRY, country_codes=["US"]
),
description="Updated description",
)- shield_list_id
str- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
- name
str- The name of the shield list.
- description
Optional[str]- Optional description of Shield List.
- content
ShieldListContentRequestV2025R0 - box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ShieldListV2025R0.
Returns the shield list object.