Opsview 6.9.x End of Support

Opsview versions 6.9.x reached their End of Support (EOS) status at the end of January 2026, in accordance with our Support policy. As of this date, these versions no longer receive code fixes, security updates, maintenance releases, or backported changes.

The documentation for version 6.9.7 and earlier releases will remain accessible for reference, but it will no longer be updated or maintained. We strongly recommend upgrading to the latest supported version of Opsview to ensure continued support and access to the latest features and security enhancements.

Config - BSM - Component

Object type: BSM Component

Request URL: /rest/config/bsmcomponent

List Copied

Parameters: N/A

Example GET request and response Copied

To list all available BSM components:

$ opsview_rest --token-file /path/to/opsview_restapi_token --pretty --data-format=json GET 'config/bsmcomponent'
{
   "list" : [
      {
         "has_icon" : "0",
         "host_template" : {
            "name" : "Application - Opsview",
            "ref" : "/rest/config/hosttemplate/225"
         },
         "host_template_id" : "225",
         "hosts" : [
            {
               "name" : "opsview",
               "ref" : "/rest/config/host/1"
            }
         ],
         "id" : "3",
         "name" : "Opsview",
         "quorum_pct" : "0",
         "ref" : "/rest/config/bsmcomponent/3",
         "uncommitted" : "0"
      }
   ],
   "summary" : {
      "allrows" : "1",
      "page" : "1",
      "rows" : "1",
      "totalpages" : "1",
      "totalrows" : "1"
   }
}

Create Copied

Example POST Copied

To create a new BSM Component called New Component, specifying the Host Template, Hosts and the required quorum.

Parameters:

$ opsview_rest --token-file /path/to/opsview_restapi_token --pretty --data-format=json POST 'config/bsmcomponent' --data '{"name":"New Component","host_template":{ "name":"Application - HTTP"},"hosts":[ {"name":"Web1"},{"name":"Web2"},{"name":"Web3"} ], "quorum_pct":"33.33" }'
{
   "object" : {
      "has_icon" : "0",
      "host_template" : {
         "name" : "Application - HTTP",
         "ref" : "/rest/config/hosttemplate/176"
      },
      "host_template_id" : "176",
      "hosts" : [
         {
            "name" : "Web1",
            "ref" : "/rest/config/host/46"
         },
         {
            "name" : "Web2",
            "ref" : "/rest/config/host/47"
         },
         {
            "name" : "Web3",
            "ref" : "/rest/config/host/48"
         }
      ],
      "id" : "5",
      "name" : "New Component",
      "quorum_pct" : "33.33",
      "uncommitted" : "1"
   }
}

Delete Copied

Deletes must be done using the ID in the URL, as follows:

$ opsview_rest --token-file /path/to/opsview_restapi_token --pretty --data-format=json DELETE 'config/bsmcomponent/5'
{
   "success" : "1"
}

Note

For more information on how to generate and use the token file, see opsview_rest documentation.
["Opsview On-Premises"] ["API", "Technical Reference"]

Was this topic helpful?