仅限于未终止的作业。

基本信息

Action:/qai/aicp/trains/namespaces/{namespace}/endpoints/{endpoint}/trains/{uuid}/pods_name/{pod_name}/ports/{port}

Method: POST

Content-Type:application/json

请求参数

参数 类型 描述 是否必须

endpoint

string

任务类型。

yes

uuid

string

任务的 UUID,唯一标识。

yes

pod_name

string

Pod 名称。

yes

port

integer

新增的端口号。

yes

namespace

string

命名空间名称。

yes

响应参数

此接口仅包含的公共响应参数,可参见前文内容

请求示例

curl -X 'POST' \
  'https://ai.coreshub.cn/qai/aicp/trains/namespaces/usr-5HY8cxxx/endpoints/tfjobs/trains/tn-ehkoc749snpc/pods_name/tn-ehkoc749snpc-master-0/ports/3000' \
  -H 'accept: application/json' \
  -d ''

响应示例

{
    "message": "success",
    "meta": {
        "X_REQUEST_ID": "38df02a4",
        "X_REQUEST_USER": "usr-5HY8xxxx"
    },
    "ret_code": 0
}