CM Assets

CM Assets Fault

GET /_cm/assets/<string: asset_id>

Description Fetch the asset health details for given asset_id

Http Method GET

ENDPOINT /_cm/assets/<string: asset_id>

Request Header Authorization Basic <token>

Request Parameters

URL Parameters

  • asset_id (string, required): The ID of the asset.

Sample Request

curl --location 'https://app.4pointx.com/_cm/assets/d3fe9877-b4f4-477e-a790-96a22a4cc665' \
--header 'Authorization: Basic <token>'

Sample Response

Success

{
    "asset_name": "Demo Asset",
    "asset_status": "warning",
    "asset_faults": [
        "misalignment"
    ],
    "event_start": 1731646560,
    "event_severity": 1,
    "event_assignee": "testsite@cbm.com",
    "event_id": "0b0485c0-0043-4dfe-b387-d829f1f8ec95",
    "event_status": "Under Investigation",
    "event_label": "0b0485c0-0043-4dfe-b387-d829f1f8ec95",
    "asset_id": "d3fe9877-b4f4-477e-a790-96a22a4cc665"
}

Error

{
  "error": {
    "status": 401,
    "message": "Unauthorized access to module by general-user"
  }
}
{
  "error": {
    "status": 400,
    "message": "Excess Inputs"
  }
}

CM Assets List

GET /_cm/assets/_list

Description Fetch all assets associated with the given function_id

Http Method GET

ENDPOINT /_cm/assets/_list

Request Header Authorization Basic <token>

Request Parameters

URL Parameters

  • function_id (string, required): The ID of the associated function.

Sample Request

curl --location 'https://app.4pointx.com/_cm/assets/_list?function_id=45c98f40-75e3-49e7-b178-d25ec878db79' \
--header 'Authorization: Basic <token>'

Sample Response

Success

[
  {
      "asset_name": "Demo Asset",
      "asset_status": "warning",
      "asset_faults": [
          "misalignment"
      ],
      "event_start": 1731646560,
      "event_severity": 1,
      "event_assignee": "testsite@cbm.com",
      "event_id": "0b0485c0-0043-4dfe-b387-d829f1f8ec95",
      "event_status": "Under Investigation",
      "event_label": "0b0485c0-0043-4dfe-b387-d829f1f8ec95",
      "asset_id": "d3fe9877-b4f4-477e-a790-96a22a4cc665"
  },
  {
      "asset_name": "test-asset-dnd",
      "asset_status": "",
      "asset_faults": [],
      "event_start": "",
      "event_severity": "",
      "event_assignee": "",
      "event_id": "",
      "event_status": "",
      "event_label": "",
      "asset_id": "b5f82547-070c-460b-a9ac-c99aa6f73e79"
  },
  {
      "asset_name": "Demo Asset",
      "asset_status": "",
      "asset_faults": [],
      "event_start": "",
      "event_severity": "",
      "event_assignee": "",
      "event_id": "",
      "event_status": "",
      "event_label": "",
      "asset_id": "547618d4-c481-48e5-b2a0-ae810a94883a"
  },
  {
      "asset_name": "RM2 Motor",
      "asset_status": "",
      "asset_faults": [],
      "event_start": "",
      "event_severity": "",
      "event_assignee": "",
      "event_id": "",
      "event_status": "",
      "event_label": "",
      "asset_id": "b29bee18-e42f-436b-9464-77bab60388d6"
  },
]

Error

{
  "error": {
    "status": 401,
    "message": "Unauthorized access to module by general-user"
  }
}
{
  "error": {
    "status": 400,
    "message": "Excess Inputs"
  }
}
{
  "error": {
    "status": 400,
    "message": "Invalid Function Id"
  }
}