You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Hong Jeon <hj...@cornell.edu> on 2015/07/28 15:57:35 UTC

STORM REST API - Topology ID

Hi,

I'm trying to use the Storm REST API, specifically
/api/v1/topology/:id (GET)

My question is, how would I find the topology ID? the only way I could find
was to establish a connection to the topology using thrift to get
ClusterSummary, which would let me access to TopologySummary, which would
eventally give me the ID.

Is there a better way?

Thanks. Much appreciated.

-Hong

Re: STORM REST API - Topology ID

Posted by FRANCISCO JESUS GOMEZ RODRIGUEZ <fr...@telefonica.com>.
If you are using Python this little class could be useful for you:

https://github.com/sinfonier-project/StormUIAPI

Includes a method that implements Jungtaek suggestion


getTopologySummaryByName(self, topologyname)

@ffranz

El 28/7/2015, a las 16:48, 임정택 <ka...@gmail.com>> escribió:

Hi,

You can get topology ID by sending /api/v1/topology/summary (GET) API and find your target topology by name.
https://github.com/apache/storm/blob/0.9.x-branch/STORM-UI-REST-API.md

Hope this helps.

Best,
Jungtaek Lim (HeartSaVioR)

2015-07-28 22:57 GMT+09:00 Hong Jeon <hj...@cornell.edu>>:
Hi,

I'm trying to use the Storm REST API, specifically
/api/v1/topology/:id (GET)

My question is, how would I find the topology ID? the only way I could find was to establish a connection to the topology using thrift to get ClusterSummary, which would let me access to TopologySummary, which would eventally give me the ID.

Is there a better way?

Thanks. Much appreciated.

-Hong



--
Name : 임 정택
Blog : http://www.heartsavior.net<http://www.heartsavior.net/> / http://dev.heartsavior.net<http://dev.heartsavior.net/>
Twitter : http://twitter.com/heartsavior
LinkedIn : http://www.linkedin.com/in/heartsavior


________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

Re: STORM REST API - Topology ID

Posted by Hong Jeon <hj...@cornell.edu>.
Thank you!

On Tue, Jul 28, 2015 at 10:48 AM, 임정택 <ka...@gmail.com> wrote:

> Hi,
>
> You can get topology ID by sending */api/v1/topology/summary (GET)* API
> and find your target topology by name.
> https://github.com/apache/storm/blob/0.9.x-branch/STORM-UI-REST-API.md
>
> Hope this helps.
>
> Best,
> Jungtaek Lim (HeartSaVioR)
>
> 2015-07-28 22:57 GMT+09:00 Hong Jeon <hj...@cornell.edu>:
>
>> Hi,
>>
>> I'm trying to use the Storm REST API, specifically
>> /api/v1/topology/:id (GET)
>>
>> My question is, how would I find the topology ID? the only way I could
>> find was to establish a connection to the topology using thrift to get
>> ClusterSummary, which would let me access to TopologySummary, which would
>> eventally give me the ID.
>>
>> Is there a better way?
>>
>> Thanks. Much appreciated.
>>
>> -Hong
>>
>
>
>
> --
> Name : 임 정택
> Blog : http://www.heartsavior.net / http://dev.heartsavior.net
> Twitter : http://twitter.com/heartsavior
> LinkedIn : http://www.linkedin.com/in/heartsavior
>

Re: STORM REST API - Topology ID

Posted by 임정택 <ka...@gmail.com>.
Hi,

You can get topology ID by sending */api/v1/topology/summary (GET)* API and
find your target topology by name.
https://github.com/apache/storm/blob/0.9.x-branch/STORM-UI-REST-API.md

Hope this helps.

Best,
Jungtaek Lim (HeartSaVioR)

2015-07-28 22:57 GMT+09:00 Hong Jeon <hj...@cornell.edu>:

> Hi,
>
> I'm trying to use the Storm REST API, specifically
> /api/v1/topology/:id (GET)
>
> My question is, how would I find the topology ID? the only way I could
> find was to establish a connection to the topology using thrift to get
> ClusterSummary, which would let me access to TopologySummary, which would
> eventally give me the ID.
>
> Is there a better way?
>
> Thanks. Much appreciated.
>
> -Hong
>



-- 
Name : 임 정택
Blog : http://www.heartsavior.net / http://dev.heartsavior.net
Twitter : http://twitter.com/heartsavior
LinkedIn : http://www.linkedin.com/in/heartsavior