百度智能云

All Product Document

          Virtual Private Cloud

          Release NAT Gateway

          Description

          Release the NAT gateway.

          • The prepaid and unexpired NAT gateway cannot be released.

          Request Structure

          Delete /v{version}/nat/{natId}? clientToken={clientToken} HTTP/1.1 
          Host: bcc.bj.baidubce.com
          Authorization: authorization string

          Request Parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 1)
          natId String Yes URL parameter Released NAT gateway ID
          clientToken String No Query parameter Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see ClientToken Idempotence

          Return Header

          There are no other special headers except the public headers.

          Return Parameter

          There is no special return parameter.

          Request Example

          Delete /v1/nat/nat-bbrnz82wk0dr?clientToken=fc31ef8c-5e41-4k38-9ds0-9def00ds5b60 HTTP/1.1
          host: bcc.bj.baidubce.com
          authorization: bce-auth-v1/2830b179831d11e8be57233b1de1e808/2018-07-09T02:38:52Z/3600/host;x-bce-account;x-bce-client-ip;x    -bce-date;x-bce-request-id;x-bce-security-token/9c4e21651b58c9d37c5c475f82eeea0ee5c209cfbd25d3638b94ce33ed98125b    

          Return Example

          HTTP/1.1 200 OK
          x-bce-request-id: f7302165-756d-4c83-bb7a-1d4548fbba8c
          Cache-Control: no-cache
          Server: BWS
          Previous
          Unbind EIP
          Next
          NAT Gateway Renewal