Skip to content

Python SDK - Project Variables

askanna.variable.list

Parameters

Name Type Required Description
project_suuid String No Get only the variables for the specified project

If you don't specify the project_suuid, you will get a list with all variables you have access too.

Output

List with elements with Dataclass: Variable

askanna.variable.detail

Parameters

Name Type Required Description
suuid String Yes Variable SUUID you want to retrieve the information from

Output

Dataclass: Variable

askanna.variable.create

Parameters

Name Type Required Description
name String Yes Name for the new variable
value String No Value you want to save for the variable
is_masked True/False No Specify if the value should be handled as masked (default: False)
project_suuid String Yes Project SUUID in which project you want to create the variable

Output

By success it will return:

In case of failure it will return:

  • None
  • Boolean False

askanna.variable.change

Parameters

Name Type Required Description
suuid String Yes The SUUID of the variable you want to change
name String No The new name
value String No The new value
is_masked True/False No You can set a unmasked value to masked, but you cannot change a masked value into unmasked

Output

Dataclass: Variable

askanna.variable.delete

Parameters

Name Type Required Description
suuid String Yes The SUUID of the variable you want to delete

When you run this command the variable will be deleted permanently

Output

True: in case the variable was deleted successfully

False: in case something went wrong with deleting the variable