ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myroslav Papirkovskyy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-6380) Provide API support for sending POST request with special header that will be treated as GET
Date Thu, 03 Jul 2014 15:18:31 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-6380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051571#comment-14051571
] 

Myroslav Papirkovskyy commented on AMBARI-6380:
-----------------------------------------------

To make method threated as GET you should include header "X-Http-Method-Override:GET" to request.
Other details described in AMBARI-1406.

> Provide API support for sending POST request with special header that will be treated
as GET
> --------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-6380
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6380
>             Project: Ambari
>          Issue Type: Task
>          Components: controller
>    Affects Versions: 1.6.1
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Critical
>             Fix For: 1.6.1
>
>
> We have GET request, that can exceed url limit of chars.
> Example:
> {code}
> http://c6401.ambari.apache.org:8080/api/v1/clusters/mycluster/hosts?page_size=25&from=0&Hosts/host_name.in(
*HERE CAN BE 2000 HOST NAMES* )&fields=Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,metrics/disk,metrics/load/load_one,metrics/cpu/cpu_system,metrics/cpu/cpu_user,metrics/memory/mem_total,metrics/memory/mem_free,alerts/summary&minimal_response=true
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message