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

Teradata® AppCenter Python SDK User Guide

prodname
Teradata AppCenter
vrm_release
2.0
created_date
September 2020
category
Programming Reference
User Guide
featnum
B035-1119-090K

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)