PortForward
PortForward opens a port-forward session to a pod and streams data back. Due to browser limitations, bidirectional streaming cannot be used; data to the pod is sent via the separate WritePortForward RPC.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Define the version of the Connect protocol
Define the timeout, in ms
Request Body required
Section titled “Request Body required ”PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
PortForwardRequest defines the parameters for starting a port-forward session.
object
The target Kubernetes cluster identifier.
The namespace of the pod.
The name of the pod.
The container port to forward to.
Responses
Section titled “ Responses ”Success
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
PortForwardResponse streams data received from the forwarded port.
object
The session identifier, set only in the first response message. Subsequent WritePortForward calls must reference this ID.
Data received from the forwarded port on the pod.
default
Section titled “default ”Error
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.
object
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Detailed error information.