Update the SLB instance of the container service Kubernetes application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

PUT /pop/v5/k8s/acs/k8s_slb_binding HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 5 a166 fbd-****-****-a286-781659d9f54c

The ID of the application you queried.

ClusterId String Yes 712082 c3-****-9217-a947b5cde6ee

The ID of the cluster that you want to add nodes to.

Port String Yes 800

Front-end port range: 1 to 65535

SlbProtocol String Yes TCP

The SLB protocol. Currently, only TCP is supported. Set this parameter to TCP.

TargetPort String Yes 8082

The backend port is the service port of an application, valid values: 1 to 65535.

Type String Yes Internet

The SLB type. Valid values: Internet and Intranet.

Response parameters

Prameter Type Example Description
ChangeOrderId String dcdee-****-****-ad37-cbf9dc91fba9

Change process ID

Code Integer 200

The returned code.

Message String Success

The returned message.

RequestId String 4823-bhjf-23u4-eiufh

Examples

Sample requests

PUT /pop/v5/k8s/acs/k8s_slb_binding HTTP/1.1
Common request header
{
  "AppId": "5a166fbd-****-****-a286-781659d9f54c"
  "ClusterId": "712082c3-****-****-9217-a947b5cde6ee"
  "Port": "80"
  "SlbProtocol": "TCP"
  "TargetPort": "8082"
  "Type": "Internete"
}

Sample success responses

XML format

<Message>success</Message>
<RequestId/>
<ChangeOrderId>9a1dcdee-****-****-ad37-cbf9dc91fba9</ChangeOrderId>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "RequestId": "",
    "ChangeOrderId": "9a1dcdee-****-****-ad37-cbf9dc91fba9",
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.