Govern Custom Pages¶
Custom pages are pages that you can create and configure, and that will appear as new entries in the Govern top navigation bar.
Retrieve the custom pages¶
import dataikuapi
host = "http(s)://DSS_HOST:DSS_PORT"
apiKey = "Your API key secret"
client = dataikuapi.GovernClient(host, apiKey)
# list custom pages
custom_pages = client.list_custom_pages()
Reference API doc¶
-
class
dataikuapi.govern.custom_page.
GovernCustomPageListItem
(client, data)¶ An item in a list of custom pages. Do not create this directly, use
list_custom_pages()
-
get_raw
()¶ Get the raw content of the custom page list item
- Returns
the raw content of the custom page list item as a dict
- Return type
dict
-
to_custom_page
()¶ Gets the
GovernCustomPage
corresponding to this custom page object- Returns
the custom page object
- Return type
-
-
class
dataikuapi.govern.custom_page.
GovernCustomPage
(client, custom_page_id)¶ A handle to interact with a custom page. Do not create this directly, use
get_custom_page()
-
get_definition
()¶ Get the definition of the custom page.
- Returns
the corresponding custom page definition object
- Return type
-
-
class
dataikuapi.govern.custom_page.
GovernCustomPageDefinition
(client, custom_page_id, definition)¶ The definition of a custom page. Do not create this directly, use
get_definition()
-
get_raw
()¶ - Returns
the raw content of the custom page as a dict
- Return type
dict
-