Restoring the PTR Record of an EIP to the Default Value
Function
This API is used to restore the PTR record of an EIP to the default value.
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/ptrs/{ptr_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
ptr_id |
Yes |
String |
PTR record ID |
Request 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
Request accepted
None
Example Requests
Restoring the PTR record of an EIP to the default value
DELETE https://{endpoint}/v2.1/ptrs/9a175b97889f2f3501889fa3a8a66ed0
Example Responses
Status code: 202
Request accepted
null
Status Codes
|
Status Code |
Description |
|---|---|
|
202 |
Request accepted |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.