此内容没有您所选择的语言版本。

1.8. http://localhost:7080/rest/operation : Endpoints for operations.


Defining class: org.rhq.enterprise.server.rest.OperationsHandlerBean

Produces: application/json, application/xml

Methods

  • GET /operation/definition/{id}

    Description

    Retrieve a single operation definition by its id
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the definition to retrieve true int all
    resourceId Query Id of a resource that supports this operation false Integer all

    Return type: javax.ws.rs.core.Response

  • GET /operation/definitions

    Description

    List all operation definitions for a resource

    Supports returning a gzip'ed Content-Encoding

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    resourceId Query Id of the resource true Integer all

    Return type: javax.ws.rs.core.Response

  • POST /operation/definition/{id}

    Description

    Create a new (draft) operation from the passed definition id for the passed resource
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the definition true int all
    resourceId Query Id of the resource true Integer all

    Return type: javax.ws.rs.core.Response

  • GET /operation/{id}

    Description

    Return a (draft) operation
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the operation to retrieve true int all

    Return type: javax.ws.rs.core.Response

  • PUT /operation/{id}

    Description

    Update a (draft) operation. If the state is set to 'ready', the operation will be scheduled
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the operation to update true int all
    -body- The operation definition to use for the update. true OperationRest -all- -none-

    Return type: javax.ws.rs.core.Response

    ExpandError codes:
    CodeReason
    404 No draft operation with the passed id exists
    406 Draft was set for scheduling, but parameters failed validation
    200 Update was successful, operation was scheduled if requested
  • DELETE /operation/{id}

    Description

    Delete a (draft) operation
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the operation to remove true int all

    Return type: javax.ws.rs.core.Response

  • GET /operation/history/{id}

    Description

    Return the outcome of the scheduled operation

    Supports returning a gzip'ed Content-Encoding

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Name of the submitted job. true String all

    Return type: javax.ws.rs.core.Response

  • GET /operation/history

    Description

    Return the outcome of the executed operations for a resource

    Supports returning a gzip'ed Content-Encoding

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    resourceId Query Id of a resource to limit to false int all
    ps Query Page size for paging false int all 20
    page Query Page for paging, 0-based false Integer all

    Return type: javax.ws.rs.core.Response

  • DELETE /operation/history/{id}

    Description

    Delete the operation history item with the passed id

    Notes

    This operation is by default idempotent, returning 204.If you want to check if the job existed at all, you need to pass the 'validate' query parameter.

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Name for the submitted job true String all
    validate Query Validate if the job exists false boolean all false

    Return type: javax.ws.rs.core.Response

    ExpandError codes:
    CodeReason
    204 Item was deleted or did not exist with validation not set
    404 Item did not exist and validate was set
    406 Passed Job ID did not pass name validation
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat