Use /api/v1/pods.

FYI you can run trace the requests that kubectl sends by adding `--v=8` so
to see requests & responses.

Thanks,
Jimmi

On Wed, 15 Jun 2016 at 08:58 Guangya Liu <[email protected]> wrote:

> Sorry, I mean that I was referring here
> http://kubernetes.io/docs/api-reference/v1/operations/ for API reference.
>
> 在 2016年6月15日星期三 UTC+8下午3:57:23,Guangya Liu写道:
>
>> Hi,
>>
>> I'm now doing some test to get all pods from a kubernetes cluster, I can
>> use command "kubectl get pods --all-namespaces" to get all pods in all
>> namespaces of the cluster.
>>
>> The problem is if I was using "curl" to request pods, how can I also get
>> all pods in different namespaces? I did not see the endpoint API have some
>> parameters which can enable me add the option of "--all-namespaces" from
>> https://github.com/kubernetes/kubernetes/releases/tag/v1.2.4.
>>
>> Currently, I can use "curl <IP>:8080/api/v1/namespaces/default/pods" to
>> get pods under default namespace, how can I use "curl" to get all pods in
>> different namepaces?
>>
>> Thanks,
>>
>> Guangya
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Containers at Google" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-containers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to