Help Center/ Domain Name Service/ API Reference/ APIs/ Endpoint Management/ Unbinding an IP Address from an Endpoint
Updated on 2025-10-30 GMT+08:00

Unbinding an IP Address from an Endpoint

Function

This API is used to unbind an IP address from an endpoint.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    dns:endpoint:deleteIpaddress

    Write

    endpoint *

    -

    -

    • vpc:ports:list
    • vpc:ports:delete

URI

DELETE /v2.1/endpoints/{endpoint_id}/ipaddresses/{ipaddress_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

endpoint_id

Yes

String

Endpoint ID

ipaddress_id

Yes

String

IP address ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

The user token.

The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

For details about how to obtain a user token, seeObtaining a User Token.

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 202

Table 3 Response body parameters

Parameter

Type

Description

endpoint

EndpointResp object

Endpoint

Table 4 EndpointResp

Parameter

Type

Description

id

String

Endpoint ID, which is a UUID used to identify the endpoint

name

String

Endpoint name

direction

String

Endpoint direction.

The value can be:

  • inbound: indicates an inbound endpoint.

  • outbound: indicates an outbound endpoint.

status

String

Resource status. The value can be PENDING_CREATE, ACTIVE, PENDING_DELETE, or ERROR.

vpc_id

String

ID of the VPC to which the endpoint belongs.

ipaddress_count

Integer

Number of IP addresses of the endpoint

resolver_rule_count

Integer

Number of endpoint rules in the endpoint

This parameter is returned only for outbound endpoints.

create_time

String

The creation time.

Format: yyyy-MM-dd'T'HH:mm:ss.SSS

update_time

String

The update time.

Format: yyyy-MM-dd'T'HH:mm:ss.SSS

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code

Range

N/A

message

String

Definition

Error description

Range

N/A

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code

Range

N/A

message

String

Definition

Error description

Range

N/A

Example Requests

None

Example Responses

Status code: 202

Request accepted

{
  "endpoint" : {
    "id" : "ff80808169be2efb0169bef85d720013",
    "name" : "NULL",
    "direction" : "inbound",
    "status" : "ACTIVE",
    "vpc_id" : "dd2a1ce7-fa36-48d1-b6ac-6623bc7c306b",
    "ipaddress_count" : 3,
    "resolver_rule_count" : 0,
    "create_time" : "2019-03-27T11:45:41.724",
    "update_time" : "2019-03-27T11:45:41.724"
  }
}

Status Codes

Status Code

Description

202

Request accepted

400

Error response

500

Error response

Error Codes

See Error Codes.