doc-exports/docs/cci/api-ref/connectCciV2GetNamespacedPodExec.html
Dong, Qiu Jian 21dca87c32 CCI API initial upload
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-10-14 11:16:04 +00:00

18 KiB

Connecting GET Requests to exec of Pod

Function

Connect GET requests to exec of Pod.

Calling Method

For details, see Calling APIs.

URI

GET /apis/cci/v2/namespaces/{namespace}/pods/{name}/exec

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

name

Yes

String

Name of the Pod.ExecOptions

namespace

Yes

String

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

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

command

No

String

  

container

No

String

  

stderr

No

Boolean

  

stdin

No

Boolean

  

stdout

No

Boolean

  

tty

No

Boolean

  

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained through the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

-

String

  

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

400

BadRequest

401

Unauthorized

403

Forbidden

404

NotFound

405

MethodNotAllowed

406

NotAcceptable

409

Conflict

415

UnsupportedMediaType

422

Invalid

429

TooManyRequests

500

InternalError

503

ServiceUnavailable

504

ServerTimeout