a.settings_v2: AccountSettings.v2

class databricks.sdk.service.settingsv2.AccountSettingsV2API

APIs to manage account level settings

get_public_account_setting(name: str) Setting

Get a setting value at account level. See :method:settingsv2/listaccountsettingsmetadata for list of setting available via public APIs at account level.

Parameters:

name – str

Returns:

Setting

get_public_account_user_preference(user_id: str, name: str) UserPreference

Get a user preference for a specific user. User preferences are personal settings that allow individual customization without affecting other users. See :method:settingsv2/listaccountuserpreferencesmetadata for list of user preferences available via public APIs.

Parameters:
  • user_id – str User ID of the user whose setting is being retrieved.

  • name – str User Setting name.

Returns:

UserPreference

list_account_settings_metadata([, page_size: Optional[int], page_token: Optional[str]]) Iterator[SettingsMetadata]

List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH :method:settingsv2/patchpublicaccountsetting APIs

Parameters:
  • page_size – int (optional) The maximum number of settings to return. The service may return fewer than this value. If unspecified, at most 200 settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

  • page_token

    str (optional) A page token, received from a previous ListAccountSettingsMetadataRequest call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to ListAccountSettingsMetadataRequest must match the call that provided the page token.

Returns:

Iterator over SettingsMetadata

list_account_user_preferences_metadata(user_id: str [, page_size: Optional[int], page_token: Optional[str]]) Iterator[SettingsMetadata]

List valid user preferences and their metadata for a specific user. User preferences are personal settings that allow individual customization without affecting other users. These settings are available to be referenced via GET :method:settingsv2/getpublicaccountuserpreference and PATCH :method:settingsv2/patchpublicaccountuserpreference APIs

Parameters:
  • user_id – str User ID of the user whose settings metadata is being retrieved.

  • page_size – int (optional) The maximum number of settings to return. The service may return fewer than this value. If unspecified, at most 200 settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

  • page_token

    str (optional) A page token, received from a previous ListAccountUserPreferencesMetadataRequest call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to ListAccountUserPreferencesMetadataRequest must match the call that provided the page token.

Returns:

Iterator over SettingsMetadata

patch_public_account_setting(name: str, setting: Setting) Setting

Patch a setting value at account level. See :method:settingsv2/listaccountsettingsmetadata for list of setting available via public APIs at account level. To determine the correct field to include in a patch request, refer to the type field of the setting returned in the :method:settingsv2/listaccountsettingsmetadata response.

Note: Page refresh is required for changes to take effect in UI.

Parameters:
Returns:

Setting

patch_public_account_user_preference(user_id: str, name: str, setting: UserPreference) UserPreference

Update a user preference for a specific user. User preferences are personal settings that allow individual customization without affecting other users. See :method:settingsv2/listaccountuserpreferencesmetadata for list of user preferences available via public APIs.

Note: Page refresh is required for changes to take effect in UI.

Parameters:
  • user_id – str User ID of the user whose setting is being updated.

  • name – str

  • settingUserPreference

Returns:

UserPreference