Skip to main content

Device Manager Functions

Get Device Manager Configuration: get_dm_config()

Retrieve the baseURL and rpAppId for an RP application.

Parameters:

  • client (HYPRHttpClient): The HYPR client object.

Returns:

  • DMConfig: The DMConfig object containing the base_url and rp_app_id elements.

Example:

result: DMConfig = get_dm_config(client)
print(result.base_url)
print(result.rp_app_id)

Create Device Manager Configuration: create_dm_config()

Creates a new Device Manager (DM) configuration if none exists for the given rpAppId; or updates the DM configuration if already extant.

The Bearer Token determines the affected RP application; this may be the controlCenterAdmin token..

Parameters:

  • client (HYPRHttpClient): The HYPR client object.

Returns:

  • DMConfig: The DMConfig object containing the base_url and rp_app_id elements.

Example:

result: DMConfig = create_dm_config(client)
print(result.base_url)
print(result.rp_app_id)

Delete Device Manager Configuration: delete_dm_config

Remove a Device Manager configuration from an RP application on a given tenant.

The Bearer Token determines the affected RP application; this may be the controlCenterAdmin token.

Parameters:

  • client (HYPRHttpClient): The HYPR client object.
  • rp_app_id (str): The camel case unique RP application identifier to be deleted.

Returns:

  • None

Example:

rp_app_id = "myApp"
result = delete_dm_config(client, rp_app_id)

Get the rpAppId: get_rp_app_id()

Parameters:

  • client (HYPRHttpClient): The HYPR client object.

Returns:

  • rp_app_id: the rpAppId for the given HYPR client object.

Example:

rp_app_id: str = get_rp_app_id(client)
print(rp_app_id)