Active IQ Unified Manager Discussions

WFA command that uses 2 schemas

rle
NetApp Alumni
3,882 Views

Greetings,

I'm creating a command that writes data into the playground database.  One of the parameters to the command is policy_name which is in the playground.policy_name. Another input parameter is the SnapShot policy, which I mapped to cm_storage.Snapshot_Policy.name.  Is this the correct way, or should this parameter be playground.snapshot_policy which is a string and resolve it in the workflow input parameters?  Any thoughts?

Thank-you,

   - Rick -

3 REPLIES 3

goodrum
3,882 Views

Not sure that I completely understand the question but I will answer this way.  Yes, you can 'blend' schemes with no issue.  You can link one of the parameters to your custom scheme and the other to the snapshot_policy.  This would end up being a reference variable.  Like I said, there is no issue going that route

Jeremy Goodrum, NetApp

The Pirate

Twitter: @virtpirate

Blog: www.virtpirate.com

yaronh
3,882 Views

Also did not understand the question.

Would be best to map parameters to objects when it doesn't require too much. And yes, Jeremy (As always) was correct 🙂

Yaron

rle
NetApp Alumni
3,882 Views

Thank-you for your replies.

When adding a reference variable to the Playground database, the code that takes a string name has to query the WFA database for the database ID and put it in the database.

For example, a service dictionary definition contains a reference variable to a policy and a service name.  When adding the service, the user input is the service name and the policy name, both strings.  There seems to be no WFA code that converts the  policy name string to the policy database ID that is needed for the reference variable.  The  code that adds a service instance needs to fetch the policy ID from the policy name in the WFA database and add it to the service instance.

Thoughts?

   - Rick -

Public