Skip to content

Custom properties

List custom properties...

...for a server

# Get the desired server
server = AdminConfig.getid('/Server:myServer/')

# List all properties for that specific server
custom_properties = AdminConfig.list('Property', server).splitlines()

...for a transaction service

# Get the desired server
server = AdminConfig.getid('/TransactionService:myTS/')

# List all properties for that specific transaction service
custom_properties = AdminConfig.list('Property', server).splitlines()

Operations on a custom property

Remove a property based on its value

custom_properties = AdminConfig.list('Property', server).splitlines()
for prop in custom_properties:
    if AdminConfig.showAttribute(prop, "value") == "value_not_valid":
        AdminConfig.remove(prop)

# `AdminConfig.reset()` or `AdminConfig.save()`