This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is syntax for "Usages" dictionary?


Table Orion.NodesCustomProperties has a verb "CreateCustomProperty". This verb has an argument "Usages" that specified to be dictionary. What is format of this dictionary? For example if I want to specify custom property usage "IsForAlerting"  to be false, how would i specify that in that hash table?



  • Albert, assuming you are using the Orion SDK for Python to create the custom property, you could use a syntax like this to specify the Usages:

    import requests
    from orionsdk import SwisClient

    def main():
        server = 'localhost'
        username = 'admin'
        password = ''

        swis = SwisClient(server, username, password)

        usages = {
            "IsForAlerting": False

            'MyCustomProperty', 'this is my description', 'string', 4000, None, None, None, None, None, None, usages)


    if __name__ == '__main__':

    If you're using a different language to leverage the Orion SDK, let me know, and I'll try to get you a sample for your language of choice.