Web Services API Reference

Contents
csp10
Contents
About the
CA Spectrum
Web Services API
The
CA Spectrum
Web Services API provides a RESTful HTTP Web Service interface in
CA Spectrum
. This distributed API provides an HTTP-based integration point to the
CA Spectrum
data model, allowing web-centric read/write access to devices, models, relationships, attributes, actions and alarms. The
CA Spectrum
Web Services API is a core
CA Spectrum
component and is installed along with the core
CA Spectrum
product.
Using the
CA Spectrum
Web Services API,
CA Spectrum
data can be accessed directly from a browser or integrated into your own application. Because of the inherent standards in the REST architecture, the
CA Spectrum
Web Services API makes the
CA Spectrum
data model accessible to many different external development environments and methods. The
CA Spectrum
Web Services API can be used with any language that knows how to manage HTTP integration and provides a lightweight alternative to SOAP services.
By using the
CA Spectrum
Web Services API, you can take advantage of functionality provided by the OneClick server, such as using its search infrastructure to more easily find groups of models. You can also perform many standard
CA Spectrum
functions for a single
SpectroSERVER
or in a distributed
SpectroSERVER
(DSS) environment, such as the following:
  • Access devices, models, relationships, attributes, actions and alarms
  • Manage devices, ports, containers, services, and links
  • Read, update, and clear alarms
  • Manage subscriptions and notifications
You can use the
CA Spectrum
Web Services API to perform these functions and more, similar to those provided by other
CA Spectrum
API tools such as the Command Line Interface (CLI), Modeling Gateway, AlarmNotifier, Southbound Gateway, or the SpectroSERVER Object Request Broker (SSORB) interface.
REST Architecture
Representational State Transfer (REST) is a software architectural style that promotes standardized behaviors between interacting elements, or clients and servers. Conforming to the REST constraints is referred to as being RESTful.
The REST architecture is a lightweight HTTP/HTTPS-based approach for SOAPless Web Services using create (POST), read (GET), update (PUT), and delete (DELETE) operations, or verbs.
RESTful architecture and applications are stateless, which means that no client context information is stored between requests. Each request contains all the information necessary to service the request.
The
CA Spectrum
Web Services API supports the REST architecture.
Supported Technologies
The
CA Spectrum
Web Services API provides a flexible, lightweight RESTful approach for integration of
CA Spectrum
data into your application. As an alternative to CORBA integration, the
CA Spectrum
Web Services API is language-independent and can be integrated into any development platform that supports HTTP integration, such as:
  • Java
  • Perl
  • Ruby on Rails
  • .net
The
CA Spectrum
Web Services API provides an HTTP/HTTPS interface, is both HTTP and XML/JSON-based, and provides Java Beans for client development.
Performance Considerations
The
CA Spectrum
Web Services API is a client, very similar to OneClick. Because the
CA Spectrum
Web Services API reuses much of the OneClick server code, performance of a single API client should generally mimic the performance of the comparable OneClick operation. The
CA Spectrum
Web Services API should not alter
SpectroSERVER
performance except through normal request load.
The following can cause performance issues:
- Because data is cached in the OneClick server, large data requests across
multiple clients can cause performance degradation.
- Users can create new, poorly performing searches and execute them through
the
CA Spectrum
Web Services API, resulting in performance degradation.
Limitations
The following should be considered when using the
CA Spectrum
Web Services API:
  • The
    CA Spectrum
    Web Services API does not provide interfaces for the modeling catalog where data is generally static.
  • While an HTML or browser application can be built on top of the
    CA Spectrum
    Web Services API, the
    CA Spectrum
    Web Services API itself does not provide HTML.
  • The
    CA Spectrum
    Web Services API accepts XML only for input and produces XML or JSON for output. If you choose JSON as output, you may need to parse it out and produce XML for the next request.
The
CA Spectrum
Web Services API can be used for simple CLI ad hoc commands and as an alternative to complex CLI scripting.
The
CA Spectrum
Web Services API is a powerful tool. It does not provide the safeguards that OneClick does, especially related to modeling. It should be used only by
CA Spectrum
administrators who understand the potentially harmful effects on a network modeling scheme of haphazardly creating and destroying models and modifying model attributes.
This section contains information about the following topics: