Create pod terminal session
Create pod terminal session
Path Parameters
namespace string required
The specified namespace.
pod string required
pod name
Responses
- 200
OK
GET /kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec
Authorization
name: Authorizationtype: apiKeydescription: Bearer Token Authenticationin: header
Request
Request
curl / cURL
curl -L -X GET 'https://docs.kubesphere.com.cn/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET 'https://docs.kubesphere.com.cn/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET 'https://docs.kubesphere.com.cn/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / axios
curl -L -X GET 'https://docs.kubesphere.com.cn/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec' \
-H 'Authorization: <API_KEY_VALUE>'
java / unirest
curl -L -X GET 'https://docs.kubesphere.com.cn/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec' \
-H 'Authorization: <API_KEY_VALUE>'