Updated on 2025-10-30 GMT+08:00

Deleting PTR Records

Function

This API is used to delete PTR records in batches. This is an atomic operation. All PTR records are either deleted completely or not deleted at all.

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:ptr:delete

    Write

    ptr *

    • g:ResourceTag/<tag-key>

    • g:EnterpriseProjectId

    • dns:ptr:set

    -

URI

DELETE /v2.1/reverse/floatingips

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

floatingip_ids

No

Array of strings

ID list of PTR records to be deleted.

You can specify a maximum of 50 IDs.

Response Parameters

Status code: 202

Request accepted

Status code: 400

Table 2 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 3 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code

Range

N/A

message

String

Definition

Error description

Range

N/A

Example Requests

Deleting PTR records

DELETE https://{endpoint}/v2.1/reverse/floatingips

{
  "floatingip_ids" : [ "region-1:2c9eb155587194ec01587224c9f90149", "region-1:2c9eb155587194ec01587224c9f90150" ]
}

Example Responses

None

Status Codes

Status Code

Description

202

Request accepted

400

Error response

500

Error response

Error Codes

See Error Codes.