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

Teradata® AppCenter Python SDK User Guide

Product
Teradata AppCenter
Release Number
2.0
Published
September 2020
Language
English (United States)
Last Update
2020-09-28
dita:mapPath
hqg1594325323212.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-1119
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)