You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code snippet for jobs (same works for task and job definitions):
fromansys.hps.clientimportClient, ProjectApi, AuthApicl=Client(username="repuser", password="repuser")
project_api=ProjectApi(cl, "02vm5JzrGmkhOX87It1Cnd")
auth_api=AuthApi(cl)
# jobjob=project_api.get_jobs()[0]
created_by=auth_api.get_user(id=job.created_by)
modified_by=auth_api.get_user(id=job.modified_by)
print(
f"Job '{job.name}' was created by '{created_by.username}' "f"and last modified by '{modified_by.username}'"
)
The text was updated successfully, but these errors were encountered:
Example code snippet for jobs (same works for task and job definitions):
The text was updated successfully, but these errors were encountered: