Questo contenuto non è disponibile nella lingua selezionata.
REST API (TECH PREVIEW)
JBoss Operations Network 3.1
The web path for the REST interface, unless otherwise specified, is http://localhost:7080/rest/1
Copyright © 2012 Red Hat, Inc.
June 12, 2012
Abstract
This is an API reference for the REST interface for JBoss Operations Network.
Important
This REST API is under active development. While some interfaces are probably stable (such as resources and metrics methods), some interfaces are still being designed and could change significantly as development progresses (such as the alerts methods). As with all preview technologies, expect significant changes in subsequent releases of the REST API. Compatibility is not guaranteed, so use caution when developing clients using the tech preview version of the JBoss ON REST API.
1. /alert: Deal with Alerts Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This API deals with alerts that have fired. It does not offer to create/update AlertDefinitions (yet) Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.AlertHandlerLocal
1.1. GET alert/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
page | Query | Page number | false | int | all | 0 |
status | Query | Limit to status, UNUSED AT THE MOMENT | false | java.lang.String | all |
Return type: java.util.List<org.rhq.enterprise.server.rest.domain.AlertRest>
1.2. GET alert/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the alert to retrieve | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.AlertRest
1.3. PUT alert/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the alert to acknowledge | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.AlertRest
1.4. DELETE alert/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the alert to remove | true | int | all |
Return type: void
1.5. GET alert/{id}/definition Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the alert to show the definition | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.AlertDefinitionRest
1.6. GET alert/definition Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
page | Query | Page number | false | int | all | 0 |
status | Query | Limit to status, UNUSED AT THE MOMENT | false | java.lang.String | all |
Return type: java.util.List<org.rhq.enterprise.server.rest.domain.AlertDefinitionRest>
1.7. GET alert/definition/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the alert definition to retrieve | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.AlertDefinitionRest
2. /configurationHistory Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.ConfigurationHistoryLocal
2.1. GET configurationHistory/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.StreamingOutput
3. /driftCompliance Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.DriftComplianceLocal
3.1. GET driftCompliance/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
resourceTypeId | Query | none | false | java.lang.String | all | -none- |
version | Query | none | false | java.lang.String | all | -none- |
Return type: javax.ws.rs.core.StreamingOutput
4. /group: Deal with groups Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
API that deals with resource groups Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.GroupHandlerLocal
4.1. GET group/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.Response
4.2. GET group/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the group | true | int | all |
Return type: javax.ws.rs.core.Response
4.3. POST group/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
-body- | A GroupRest object containing at least a name for the group | false | org.rhq.enterprise.server.rest.domain.GroupRest | all |
Return type: javax.ws.rs.core.Response
4.4. PUT group/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the group to update | true | int | all | |
-body- | New version of the group | false | org.rhq.enterprise.server.rest.domain.GroupRest | all |
Return type: javax.ws.rs.core.Response
4.5. DELETE group/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the group to delete | true | int | all |
Return type: javax.ws.rs.core.Response
4.6. GET group/{id}/resources Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the group to retrieve the resources for | true | int | all |
Return type: javax.ws.rs.core.Response
4.7. PUT group/{id}/resource/{resourceId} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the existing group | true | int | all | |
resourceId | Path | Id of the resource to add | true | int | all |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | If there is no resource or group with the passed id |
409 | Resource type does not match the group one |
4.8. DELETE group/{id}/resource/{resourceId} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the existing group | true | int | all | |
resourceId | Path | Id of the resource to remove | true | int | all |
Return type: javax.ws.rs.core.Response
5. /inventorySummary Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.InventorySummaryLocal
5.1. GET inventorySummary/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
resourceTypeId | Query | none | false | java.lang.String | all | -none- |
version | Query | none | false | java.lang.String | all | -none- |
Return type: javax.ws.rs.core.StreamingOutput
6. /metric: Deal with metrics Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This part of the API deals with exporting metrics Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.MetricHandlerLocal
6.1. GET metric/data/{scheduleId} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Schedule Id of the values to query | true | int | all | |
startTime | Query | Start time since epoch | false | long | all | |
endTime | Query | End time since epoch | false | long | all | |
dataPoints | Query | Number of buckets - currently fixed at 60 | false | int | all | 60 |
hideEmpty | Query | none | false | boolean | all | -none- |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.2. GET metric/data Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
sid | Query | none | false | java.lang.String | all | -none- |
startTime | Query | none | false | long | all | -none- |
endTime | Query | none | false | long | all | -none- |
dataPoints | Query | none | false | int | all | -none- |
hideEmpty | Query | none | false | boolean | all | -none- |
Return type: javax.ws.rs.core.Response
6.3. GET metric/data/resource/{resourceId} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
resourceId | Path | Resource to query | true | int | all |
Return type: java.util.List<org.rhq.enterprise.server.rest.domain.MetricAggregate>
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
6.4. GET metric/schedule/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Schedule Id | true | int | all |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.5. PUT metric/schedule/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the schedule to query | true | int | all | |
-body- | New schedule data | true | org.rhq.enterprise.server.rest.domain.MetricSchedule | all |
Return type: MetricSchedule
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.6. GET metric/data/{scheduleId}/raw Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | none | true | int | all | |
startTime | Query | Start time since epoch | false | long | all | Now - 8h |
endTime | Query | End time since epoch | false | long | all | Now |
duration | Query | Timespan in ms | false | long | all | 8h = 28800000ms |
Return type: javax.ws.rs.core.StreamingOutput
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.7. PUT metric/data/{scheduleId}/raw/{timeStamp} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Id of the schedule | true | int | all | |
timeStamp | Path | Timestamp of the metric | true | long | all | |
-body- | Data point | true | org.rhq.enterprise.server.rest.domain.NumericDataPoint | all |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.8. POST metric/data/raw Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
points | -body- | none | false | java.util.Collection<org.rhq.enterprise.server.rest.domain.NumericDataPoint> | all | -none- |
Return type: javax.ws.rs.core.Response
6.9. GET metric/data/{scheduleId}/baseline Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Id of the schedule | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.Baseline
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.10. PUT metric/data/{scheduleId}/baseline Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Id of the schedule | true | int | all | |
baseline | -body- | none | false | org.rhq.enterprise.server.rest.domain.Baseline | all | -none- |
Return type: void
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.11. PUT metric/data/{scheduleId}/trait Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Id of the schedule | true | int | all | |
value | -body- | none | false | org.rhq.enterprise.server.rest.domain.StringValue | all | -none- |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
6.12. GET metric/data/{scheduleId}/trait Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
scheduleId | Path | Id of the schedule | true | int | all |
Return type: StringValue
Code | Reason |
---|---|
404 | No schedule with the passed id exists |
7. /operation Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.OperationsHandlerLocal
7.1. GET operation/definition/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | int | all | -none- |
resourceId | Query | none | false | java.lang.Integer | all | -none- |
Return type: javax.ws.rs.core.Response
7.2. GET operation/definitions Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
resourceId | Query | none | false | java.lang.Integer | all | -none- |
Return type: javax.ws.rs.core.Response
7.3. POST operation/definition/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | int | all | -none- |
resourceId | Query | none | false | java.lang.Integer | all | -none- |
Return type: javax.ws.rs.core.Response
7.4. GET operation/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | int | all | -none- |
Return type: javax.ws.rs.core.Response
7.5. PUT operation/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | int | all | -none- |
operation | -body- | none | false | org.rhq.enterprise.server.rest.domain.OperationRest | all | -none- |
Return type: javax.ws.rs.core.Response
7.6. DELETE operation/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | int | all | -none- |
Return type: javax.ws.rs.core.Response
7.7. GET operation/history/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | none | true | java.lang.String | all | -none- |
Return type: javax.ws.rs.core.Response
8. /platformUtilization Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.PlatformUtilizationLocal
8.1. GET platformUtilization/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.StreamingOutput
9. /recentAlerts Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.RecentAlertLocal
9.1. GET recentAlerts/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
alertPriority | Query | none | false | java.lang.String | all | high,medium,low |
startTime | Query | none | false | java.lang.Long | all | -none- |
endTime | Query | none | false | java.lang.Long | all | -none- |
Return type: javax.ws.rs.core.StreamingOutput
10. /recentDrift Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.RecentDriftLocal
10.1. GET recentDrift/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
categories | Query | none | false | java.lang.String | all | -none- |
snapshot | Query | none | false | java.lang.Integer | all | -none- |
path | Query | none | false | java.lang.String | all | -none- |
definition | Query | none | false | java.lang.String | all | -none- |
startTime | Query | none | false | java.lang.Long | all | -none- |
endTime | Query | none | false | java.lang.Long | all | -none- |
Return type: javax.ws.rs.core.StreamingOutput
11. /recentOperations Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.RecentOperationsLocal
11.1. GET recentOperations/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
status | Query | none | false | java.lang.String | all | inprogress,success,failure,canceled |
startTime | Query | none | false | java.lang.Long | all | -none- |
endTime | Query | none | false | java.lang.Long | all | -none- |
Return type: javax.ws.rs.core.StreamingOutput
12. /resource: Resource related Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This endpoint deals with single resources, not groups Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.ResourceHandlerLocal
12.1. GET resource/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to retrieve | true | int | all |
Return type: ResourceWithType
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.2. GET resource/platforms Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: ResourceWithType
12.3. GET resource/{id}/hierarchy Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to start with | true | int | all |
Return type: ResourceWithType
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.4. GET resource/{id}/availability Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to query | true | int | all |
Return type: org.rhq.enterprise.server.rest.domain.AvailabilityRest
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.5. PUT resource/{id}/availability Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to update | true | int | all | |
-body- | New Availability setting | true | org.rhq.enterprise.server.rest.domain.AvailabilityRest | all |
Return type: void
12.6. GET resource/{id}/schedules Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to obtain the schedules for | true | int | all | |
type | Query | Limit by type | false | java.lang.String | <empty>, all, metric, trait, measurement | all |
enabledOnly | Query | Limit by enabled schedules | false | boolean | all | true |
name | Query | Limit by name | false | java.lang.String | all |
Return type: MetricSchedule
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.7. GET resource/{id}/children Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to get children | true | int | all |
Return type: javax.ws.rs.core.Response
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.8. GET resource/{id}/alerts Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource to query | true | int | all |
Return type: java.util.List<org.rhq.enterprise.server.rest.domain.Link>
Code | Reason |
---|---|
404 | If no resource with the passed id exists |
12.9. POST resource/platform/{name} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
name | Path | Name of the platform | true | java.lang.String | all | |
-body- | Type of the platform | false | org.rhq.enterprise.server.rest.domain.StringValue | Linux,Windows,... TODO |
Return type: javax.ws.rs.core.Response
12.10. POST resource/{name} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
name | Path | Name of the new resource | true | java.lang.String | all | |
-body- | Name of the Resource tpye | false | org.rhq.enterprise.server.rest.domain.StringValue | all | ||
plugin | Query | Name of the plugin providing the type | false | java.lang.String | all | |
parentId | Query | Id of the future parent to attach this to | false | int | all |
Return type: javax.ws.rs.core.Response
13. /status: Provide system status information Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.StatusHandlerLocal
13.1. GET status/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.Response
14. /suspectMetrics Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.SuspectMetricLocal
14.1. GET suspectMetrics/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.StreamingOutput
15. /user: API that deals with user related stuff Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.UserHandlerLocal
15.1. GET user/favorites/resource Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: java.util.List<org.rhq.enterprise.server.rest.domain.ResourceWithType>
15.2. PUT user/favorites/resource/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource | true | int | all |
Return type: void
15.3. DELETE user/favorites/resource/{id} Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Name | P.Type | Description | Required | Type | Allowed values | Default value |
---|---|---|---|---|---|---|
id | Path | Id of the resource | true | int | all |
Return type: void
16. /alertDefinitions: The Alert definitions report Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Defining class: org.rhq.enterprise.server.rest.reporting.AlertDefinitionLocal
16.1. GET alertDefinitions/ Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
This method has no parameters
Return type: javax.ws.rs.core.StreamingOutput