search cancel

Find out the Landscape a Model belongs to via API call

book

Article ID: 216498

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How do I find out the landscape a model belongs to via API call ?

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Resolution

Spectrum knows which model belongs to which landscape based on the model_handle assigned.

So for example:

model_handle of 0x2030806 would belong to landscape 0x2000000

Or model_handle of 0x104568 would belong to landscape 0x100000

So using the API, you can get the model_handle attr for your device and know based on the value which landscape it belongs to.  That is how we do it in OneClick.

Alternatively, you can obviously use OneClick to get this information as well.