获取指定的Endpoints
功能介绍
该API用于获取某个Namespace下指定的Endpoints对象。
URI
GET /api/v1/namespaces/{namespace}/endpoints/{name}
表1 描述该API的参数。
参数 |
是否必选 |
描述 |
---|---|---|
pretty |
No |
If 'true', then the output is pretty printed. |
namespace |
Yes |
Object name and auth scope, such as for teams and projects. |
name |
Yes |
Name of the Endpoint. |
exact |
No |
Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. |
export |
No |
Should this value be exported. Export strips fields that a user can not specify. |
请求消息
N/A
响应消息
响应参数:
响应参数的详细描述请参见表2。
响应示例:
{ "kind": "Endpoints", "apiVersion": "v1", "metadata": { "name": "cluster-test", "namespace": "default", "selfLink": "/api/v1/namespaces/default/endpoints/cluster-test", "uid": "81b1503d-5960-11e6-b444-286ed488fafe", "resourceVersion": "18186", "creationTimestamp": "2016-08-03T09:56:10Z" }, "subsets": [ { "addresses": [ { "ip": "172.16.106.152" }, { "ip": "172.16.79.157" } ], "ports": [ { "port": 1, "protocol": "TCP" } ] } ] }
