All Products
Search
Document Center

ENS:DeleteDeviceInternetPort

Last Updated:Mar 12, 2024

Deletes Network Address Translation (NAT) rules for a server or container based on the ID.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance. You can specify the ID of the server or container.

i-5scdmgpdegymqyugf85q66l1a
RuleIdstringYes

The ID of the rule.

snat-5rfzxah5gzfo869fl6epvon3y
NatTypestringYes

The type of the NAT gateway. The value must be of the enumerated data type. Valid values:

  • SNAT
  • DNAT
DNAT

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

51F57D60-7946-5EE1-A973-A3CCCCF2EF5B
RuleIdsarray

The list of rules.

string

The ID of the rule.

['snat-5savq9ffy1z0ved6prd7fkzy6']

Examples

Sample success responses

JSONformat

{
  "RequestId": "51F57D60-7946-5EE1-A973-A3CCCCF2EF5B",
  "RuleIds": [
    "['snat-5savq9ffy1z0ved6prd7fkzy6']"
  ]
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history