이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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


These endpoints deal with scheduling of operations and retrieval of operation results.

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

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat