search
cancel
Search
How to create New User Models via REST API in Spectrum
book
Article ID: 259881
calendar_today
Updated On:
Products
CA Spectrum
DX NetOps
Show More
Show Less
Issue/Introduction
When using the REST API to create user models, what are the best practices to use?
Environment
Release : 21.2
Resolution
Loop over all landscapes
POST user if not exists, else PUT user if attributes differ (do NOT set masterModel or homeModel attributes)
On MLS ONLY - DELETE existing REL_CONTAINS_USER and POST new REL_CONTAINS_USER if necessary.
Make sure the user running the commands is a super user.
Feedback
thumb_up
Yes
thumb_down
No