EN
Español
English
Português
    Getting CMDB and Lansweeper Insights with Postman

    Below you will find a step-by-step to get the necessary Lansweeper and CMDB information from Postman.

    Prerequisites to complete the step-by-step:

    • Postman installed.
    • CMDB token.
    • Valid OAuth Lansweeper credentials.
    • Lansweeper collection and environment downloaded.

    Downloads:

    • Lansweeper Collection: Here
    • Environment Lansweeper: Here


    1. Import the previously downloaded collection and environment into Postman.
    Importar coleccion y environment en Postman


    1. At the top right, select the Lansweeper environment (avoid working with No Environment).
    Seleccionar environment en Postman


    1. On the Icono de variables de environment, edit the environment variables, and configure at least:
    • BASE_URL = https://api.lansweeper.com/api/v2/graphql
    • LANSWEEPER_TOKEN = Lansweeper OAuth access token
    Editar variables del environment


    1. Execute the request Get Sites and take the ID of the site to be registered in project.siteId of the configuration JSON.
    2. Execute the requests Get Assets pagination, Get Assets Full Info and additionalfields info To obtain:
    • Asset keys for category
    • base data for CI mapping
    • Metadata of additional fields (name, type, key and props)
    1. To complete projectId, category.id, state.id and additionalFields.id, use the CMDB/ASMS collection defined by your team, and record those values in the integration JSON file.


    ↩ Back to Settings