beautypg.com

HP Intelligent Management Center Licenses User Manual

Page 3

background image

Contents

1 Quick Start..............................................................................................22

Welcome to iMC RESTful Web Services ....................................................................................22
The First iMC-RS Client............................................................................................................22

Preparations......................................................................................................................22
Verify iMC-RS availability....................................................................................................22
Create project...................................................................................................................23
Compile iMC-RS client codes...............................................................................................23
Run codes and view result...................................................................................................23

iMC-RS Security Mechanism.....................................................................................................24

Identification authentication.................................................................................................24
Verify iMC-RS availability....................................................................................................25

2 Client Access...........................................................................................26

Access iMC-RS Resources with Apache Commons HTTP Client 3.x................................................26
Access iMC-RS Resources with Apache HTTP Client 4.x...............................................................26
Access iMC-RS Resources with RestTemplate of SpringFramework 3.0............................................26
Access iMC-RS Resources with Jersey Client................................................................................26
Access iMC-RS Resources with Android SDK..............................................................................26

3 R&D References........................................................................................27

Interface Categories................................................................................................................27

Interfaces for accessing resources.........................................................................................27
Interfaces for registering and receiving real-time events...........................................................27

Real-Time Event Registration and Receipt....................................................................................27

Event registration...............................................................................................................27
Event receipt.....................................................................................................................28
Java client.........................................................................................................................29
Security control..................................................................................................................29

Conventions and Constraints....................................................................................................29

HTTP methods...................................................................................................................30
Content types and character encoding..................................................................................30
Status codes......................................................................................................................30
Wildcard characters supported in queries.............................................................................31
Data types and ranges.......................................................................................................31
Result set of multi-criteria batch queries..................................................................................31

Error Codes...........................................................................................................................31
FAQ......................................................................................................................................32

4 System Management.................................................................................33

Query All Operators...............................................................................................................34

Interface URI.....................................................................................................................34
Access Method..................................................................................................................34
Returned Result..................................................................................................................34
Example...........................................................................................................................35

Query Individual Operators.....................................................................................................36

Interface URI.....................................................................................................................36
Access Method..................................................................................................................36
Returned Result..................................................................................................................36
Example...........................................................................................................................38

Add Operator........................................................................................................................39

Interface URI.....................................................................................................................39
Access Method..................................................................................................................39
Returned Result..................................................................................................................39

Contents

3