set_context API | Python SDK | Teradata AppCenter - set_context API - Teradata AppCenter

Teradata® AppCenter Python SDK User Guide

Product
Teradata AppCenter
Release Number
1.10
Published
July 2020
Language
English (United States)
Last Update
2020-07-13
dita:mapPath
jfn1593439363205.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-1119
lifecycle
previous
Product Category
Analytical Ecosystem

Purpose

The set_context API changes the context of an existing AppCenterclient instance. It is primarily used with the get_systems API to set a new system in the client context. However, you can use it to set any other variable.

Python Code Example

context = AppContext(system=new_system_name,
                     user=****,
                     password=****)

client.set_context(context)