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

1.4. http://localhost:7080/rest/content : Content related


This endpoint deals with content (upload)

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

Produces: application/json, application/xml

Methods

  • POST /content/fresh

    Description

    Upload content to the server. This will return a handle that can be used later to retrieve and further process the content
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    -body- An application/octet-stream to be stored. true java.io.InputStream -all- -none-

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

  • GET /content/{handle}/info

    Description

    Retrieve the length of the content with the passed handle
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    handle Path none String -all- -none-

    Return type: IntegerValue

  • PUT /content/{handle}/plugins

    Description

    Put the uploaded content into the plugin drop box.

    Notes

    This endpoint allows to deploy previously uploaded content as a plugin. You need to provide a valid plugin (file) name in order for the plugin processing to succeed. Optionally you can request that a plugin scan will be started and the plugin be registered in the system. You can also specify a delay in milliseconds after which the plugin will be automatically pushed out to the agents.Note that a non-negative "pushOutDelay" only makes sense when the "scan" is set to true, otherwise no update on the agents can occur because there will be no updated plugins on the server. If a non-negative "pushOutDelay" is given together with "scan" set to false a 406 error is returned.The content identified by the handle is not removed. Note that this method is deprecated - use a PUT to /plugins.

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    handle Path Name of the handle retrieved from upload true String all
    name Query Name of the plugin file false String all
    scan Query Should a discovery scan be started? false boolean all false
    pushOutDelay Query The delay in milliseconds before the agents update their plugins. Any negative value disables the automatic update of agents false long all -1

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

    ExpandError codes:
    CodeReason
    406 No name provided or invalid combination of parameters supplied
    404 No content for handle found
    403 Caller has not rights to upload plugins
  • DELETE /content/{handle}

    Description

    Remove the content with the passed handle

    Notes

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

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    handle Path none String -all- -none-
    validate Query Validate if the content exists false boolean all false

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

    ExpandError codes:
    CodeReason
    204 Content was deleted or did not exist with validation not set
    404 Content did not exist and validate was set
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat