Help Center> Domain Name Service> API Reference> APIs> PTR Record Management> Restoring the PTR Record of the EIP to the Default Value
Updated on 2024-03-25 GMT+08:00

Restoring the PTR Record of the EIP to the Default Value

Function

This API is used to restore the PTR record of the EIP to the default value.

Calling Method

For details, see Calling APIs.

URI

PATCH /v2/reverse/floatingips/{region}:{floatingip_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

region

Yes

String

Region of the zone

floatingip_id

Yes

String

ID of the PTR record to be deleted

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

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

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

ptrdname

Yes

Object

Domain name of the PTR record. Set it to null in the request.

Response Parameters

None

Example Requests

Restoring the PTR record of the EIP to the default value

PATCH https://{endpoint}/v2/reverse/floatingips/{region}:{floatingip_id}

{
  "ptrdname" : null
}

Example Responses

None

Status Codes

Status Code

Description

200

Response to the request for restoring the PTR record of an EIP to the default value

Error Codes

See Error Codes.