• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. API Reference
  4. Service (Native Kubernetes APIs)
  5. Proxying GET Requests to a Service with Path

Proxying GET Requests to a Service with Path

Function

This API is used to proxy GET requests to a specified Service under a specific Namespace.

URI

GET /api/v1/proxy/namespaces/{namespace}/services/{name}/{path:*}

Table 1 describes the parameters of this API.

Table 1 Parameter description

Parameter

Mandatory

Description

namespace

Yes

Object name and auth scope, such as for teams and projects.

name

Yes

Name of the Service.

NOTE:

If the spec.ports.name field (a port alias) in the request of Creating a Service is specified, the service name must be in the format of http:service name:ports name.

path

Yes

Path to the resource.

Request

N/A

Response

N/A

Status Code

Table 2 describes the status code of this API.

Table 2 Status code

Status Code

Description

200

This operation succeeds, and the response from the application in the Pod is returned.

For the description about status codes, see section Status Codes.