About vFabric Hyperic Web Services API
Intended Audience
Introduction to HQApi
Overview of HQApi
Version Compatibility
What HQApi is Good For
User Permissions and HQApi
How to Access HQApi
How to Install HQApi
API Package Contents
HQApi Command-Line Tools
Command-Line Tools Overview
Invoking Command-Line Tools
Common Subcommands
list
sync
delete
Required Command Qualifiers and How to Supply Them
Define a Connection Properties File
Encrypt Hyperic Password
Supply Properties File Path on Command Line
Tips and Reminders for CLI Tools
Sync with Caution
How to Find a Resource ID
HQApi agent command
agent Functionality
agent Command Options
agent list
Structure of an AgentsResponse Element
Content of an Agent Element
agent list Command Qualifiers
agent list Example
agent ping
agent ping Command Qualifiers
agent ping examples
agent transferPlugin
agent transferPlugin Command Qualifiers
agent transferPlugin Examples
agent bundle-list
Structure of an AgentBundleFilesResponse Element
Content of an AgentBundleFile Element
agent bundle-list Command Qualifiers
agent bundle-list Example
agent bundle-status
agent bundle-status Command Qualifiers
agent bundle-status example
bundle-push
agent bundle-push Command Qualifiers
agent bundle-push example
HQApi alertdefinition command
alertdefinition Functionality
Understanding Alert Definition Options
alertdefinition Command Options
alertdefinition list
alertdefinition list Command Qualifiers
Structure of an AlertDefinitionsResponse
Attributes in an AlertDefinitionsResponse
AlertCondition Attributes for Different Condition Types
AlertActionConfig Attributes for Different Action Types
alertdefinition sync
alertdefinition sync Command Qualifiers
alertdefinition delete
alertdefinition create
alertdefinition create Command Qualifiers
alertdefinition Command Examples
alertdefinition list --typeAlerts
AlertCondition Examples
alertdefinition create - based on existing alert definition
alertdefinition create - new alert definition
HQApi alert command
Functionality
alert Command Options
alert list
Structure of an AlertsResponse Element
Attributes in an AlertsResponse
List Examples
List Last n Alerts
List Last n Alerts in Escalation
List Last n Unfixed Alerts
List Alerts that Fired During an Interval
List Unfixed Alerts with Severity Level
alert ack
alert fix
alert delete
HQApi application command
Functionality
application Command Options
application list
Structure of an ApplicationResponse
Attributes in an ApplicationResponse
Example - application list
application sync
Example - Create Applications with application sync
Example - Update Applications with application sync
application delete
HQApi autodiscovery command
Functionality
autodiscovery Command Options
autodiscovery list
autodiscovery list Command Qualifiers
Structure of a QueueResponse
Attributes in a QueueResponse
autodiscovery approve
autodiscovery approve Command Qualifiers
Examples
autodiscovery approve with Regex Qualifier
HQApi control command
Functionality
control Command Options
control actions
control history
control execute
control Command Examples
control actions --resourceId
control history --resourceId
control execute --action --resourceId
control execute --action --resourceId – option
HQApi dependency command
dependency Functionality
dependency Command Options
dependency list
dependency list Command Qualifiers
Structure of ResourcesResponse
Atributes of ResourcesResponse
Structure of ResourceEdgesResponse element
dependency list Examples
dependency list --prototype
Dependency List --name
dependency list --prototype --name
dependency list --children --id
dependency list --children --prototype
dependency list --children --name
dependency list --children --prototype --name
Dependency List --children --id --relation=containment
dependency sync
dependency sync Command Qualifiers
dependency delete
dependency delete Command Qualifiers
dependency select
dependency select Command Qualifiers
HQApi escalation command
Functionality
escalation Command Options
escalation list
escalation list Command Qualifiers
Structure of an EscalationsResponse
Attributes in an EscalationsResponse
escalation sync
Examples
HQApi event command
Functionality
event Command Options
event list
Structure of an EventsResponse
Attributes in an EventResponse Element
event Command Examples
event list --resourceId
Example Event Element for Different Event Types
Event Element for an Alert Event
Event Element for an Control Action Event
Event Element for an Log Event
Event Element for an Configuration Event
HQApi groovyshell command
groovshell Functionality
groovyshell Command Qualifiers
HQApi group command
Functionality
group Command Options
group list
group list Command Qualifiers
Structure of a GroupsResponse
Attributes in a GroupsResponse
group sync
group sync Command Qualifiers
group delete
group delete Command Qualifiers
Examples
group sync via XML
group sync - Create or Update a Compatible Group from Command Line
group sync - Create or Update a Mixed Group from Command Line
HQApi maintenance command
Functionality
maintenance Command Options
maintenance schedule
maintenance unschedule
maintenance get
Examples
Sample Script for Scheduling Recurring Maintenance
Using group_maintenance_api.pl
Set Environment Variables
Schedule Maintenance for a Group
Check Maintenance Schedule
Cancel a Maintenance Schedule
Set Up a Recurring Maintenance Schedule
Use Time Only for Start and End Arguments
Tip - Wrap the Script Invocation
HQApi metric command
Functionality
metric Command Options
metric list
Metric list Command Qualifiers
Structure of a MetricsResponse
Attributes in a MetricsResponse
metric sync
metric reschedule
Examples
HQApi metricData command
Functionality
Command Options
list
list Command Output
list Command Qualifiers
Examples
List Measurements for a Metric
List Measurements for a Resource
List Measurements for a Compatible Group
HQApi metricTemplate command
Functionality
metricTemplate Command Options
metricTemplate list
metricTemplate list Command Qualifiers
Structure of a metricTemplatesResponse
Attributes in a MetricTemplatesResponse
metricTemplate sync
Examples
HQApi resource command
Functionality
resource Command Options
resource list
resource list Command Qualifiers
Structure of a ResourcesResponse
Attributes in an ResourcesResponse
resource sync
resource delete
resource createPlatform
resource createPlatform Command Qualifiers
resource createServer
resource createServer Command Qualifiers
resource createService
resource createService Command Qualifiers
resource move
resource move Command Qualifiers
Examples
List Resources of the Same Type
List Resources of the Same Type Verbosely
Write Resource Data to a File
Update Resource Properties
Delete a Resource
Create a New Platform
Create a New Server
Create a New Service
HQApi resourceprototype command
Functionality
resourceprototype Command Options
resourceprototype list
Attributes in an ResourcePrototype Element
resourceprototype Command Examples
resourceprototype list --existing
HQApi role command
Functionality
Command Options
list
list Command Output
list Command Qualifiers
sync
Samples
role list
role sync
Understanding Role Permissions
Operations List
HQApi serverConfig command
Functionality
serverConfig Command Options
serverConfig get
Structure of a ServerConfigResponse Element
Attributes in an ServerConfigResponse
Example - serverConfig get
Example - Write Results of serverConfig get to a file
serverConfig set
serverConfig getParameter
serverConfig setParameter
Server Configuration Reference
Hyperic Email Configuration Properties
Data Manager Configuration Properties
Global Alert Properties
Notification Throttling Configuration Properties
Automatic Baseline Configuration Properties
LDAP Configuration Properties
Kerberos Configuration Properties
SNMP Properties
Configure HQ Server for SNMP v1
Configure HQ Server for SNMP v2c
Configure HQ Server for SNMP v3
Server Configuration Reference
Hyperic Email Configuration Properties
Data Manager Configuration Properties
Global Alert Properties
Notification Throttling Configuration Properties
Automatic Baseline Configuration Properties
LDAP Configuration Properties
Kerberos Configuration Properties
SNMP Properties
Configure HQ Server for SNMP v1
Configure HQ Server for SNMP v2c
Configure HQ Server for SNMP v3
HQApi user command
Functionality
Command Options
list
list command output
list Command Qualifiers
sync
Examples
user list
user sync
HQApi Java API