Cmdb Lookup

Note: This page has not yet been converted to the new developer portal format. Please use Swagger to test this API.

CMDB Lookup

POST /rest/cmdb/lookup/1234567890/mappings/

Description

Create mapping.

Request

{
  "data": {
    "organizationId": 1234567890,
    "targetGroups": [
      {
        "id": 444206992589693,
        "name": "0t-B"
      }
    ],
    "attributes": [
      {
        "name": "Ticket Que",
        "values": [
          "Que 1"
        ]
      },
      {
        "name": "Account ",
        "values": [
          "Account 1",
          "Account 2"
        ]
      }
    ]
  }
}

Response

{
  "data": {
    "id": "5a905d95ce316925fe40442f",
    "organizationId": 1234567890,
    "deleted": false,
    "targetGroups": [
      {
        "id": 444206992589693,
        "name": "0t-B"
      }
    ],
    "attributes": [
      {
        "name": "Ticket Que",
        "values": [
          "Que 1"
        ]
      },
      {
        "name": "Account ",
        "values": [
          "Account 2"
        ]
      },
      {
        "name": "Account ",
        "values": [
          "Account 1"
        ]
      }
    ],
    "createdBy": "null null",
    "lastUpdatedBy": "null null",
    "lastUpdatedOn": "2018-02-23T18:29:41.392Z"
  }
}

GET /rest/cmdb/lookup/1234567890/mappings/5a7ca529ce31692cdd678712

Description

Get mapping.

URI

GET
/rest/cmdb/lookup/1234567890/mappings/5a7ca529ce31692cdd678712

Response

{
  "data": {
    "id": "5a7ca529ce31692cdd678712",
    "organizationId": 1234567890,
    "deleted": false,
    "targetGroups": [
      {
        "id": 444206992589692,
        "name": "0t-A"
      },
      {
        "id": 444206992589693,
        "name": "0t-B"
      },
      {
        "id": 444206992589024,
        "name": "2sy"
      },
      {
        "id": 444206992589055,
        "name": "DayViewTstGrp"
      }
    ],
    "attributes": [
      {
        "name": "Terms",
        "values": [
          "10"
        ]
      },
      {
        "name": "Account ",
        "values": [
          "Account 1"
        ]
      }
    ],
    "createdBy": "John Doe",
    "lastUpdatedBy": "John Doe",
    "lastUpdatedOn": "2018-02-11T16:13:44.712Z"
  }
}

GET /rest/cmdb/lookup/1234567890/mappings/

Description

Get all the mappings for the organization.

Response

{
  "currentPageNo": 1,
  "totalPageCount": 1,
  "totalCount": 11,
  "pageSize": 20,
  "data": [
    {
      "id": "5a6a2c1bce316967bded101a",
      "organizationId": 1234567890,
      "deleted": false,
      "targetGroups": [
        {
          "id": 444206992589693,
          "name": "0t-B"
        }
      ],
      "attributes": [
        {
          "name": "Ticket Que",
          "values": [
            "Que 1"
          ]
        },
        {
          "name": "Account ",
          "values": [
            "Account 1",
            "Account 2"
          ]
        }
      ],
      "createdBy": "John Doe",
      "lastUpdatedBy": "John Doe",
      "lastUpdatedOn": "2018-02-09T15:48:04.997Z"
    },
    {
      "id": "5a7ca529ce31692cdd678712",
      "organizationId": 1234567890,
      "deleted": false,
      "targetGroups": [
        {
          "id": 444206992589692,
          "name": "0t-A"
        },
        {
          "id": 444206992589693,
          "name": "0t-B"
        },
        {
          "id": 444206992589024,
          "name": "2sy"
        },
        {
          "id": 444206992589055,
          "name": "DayViewTstGrp"
        }
      ],
      "attributes": [
        {
          "name": "Terms",
          "values": [
            "10"
          ]
        },
        {
          "name": "Account ",
          "values": [
            "Account 1"
          ]
        }
      ],
      "createdBy": "John Doe",
      "lastUpdatedBy": "John Doe",
      "lastUpdatedOn": "2018-02-11T16:13:44.712Z"
    }
  ]
}

DELETE /rest/cmdb/lookup/1234567890/mappings/5a7ca529ce31692cdd678712

Description

Delete Mapping.

URI

Postman-Token:
c7640373-190e-c904-fe2e-dcc71730df7c

POST /rest/cmdb/lookup/{orgId}/attributes

Description

Create property.

UPDATE /rest/cmdb/lookup/{orgId}/attributes/{ids}

Description

Update property.

GET /rest/cmdb/lookup/{orgId}/attributes/{id}

Description

Get property by ID.

GET /rest/cmdb/lookup/{orgId}/attributes

Description

Get all properties.

DELETE /rest/cmdb/lookup/{orgId}/attributes/{ids}

Description

Delete property/properties by id(s).