Static NAT Configuration   /rest/apv/nat/nat/StaticNATSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/nat/nat/StaticNATSettings/static_nat_entry
    Query the Static NAT Entry info of the corresponding Static NAT Configuration.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "StaticNATSettings": {
            "instance_id":<instance_id>,
            "static_nat_entry":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/nat/nat/StaticNATSettings/static_nat_entry
    Create a Static NAT Entry for corresponding Static NAT Configuration
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    vip ipaddr Sets the virtual IP address to which the source IP of the matched packet will be translated.
    network_ip ipaddr Sets the IP address to be translated.
    timeout int Sets a period of time during which the static NAT entry is valid.
    gateway ipaddr
    description string
    Response format
            {
                "StaticNATEntry": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/nat/nat/StaticNATSettings/static_nat_entry/<staticnatentry_id>
    Delete a specific Static NAT Entry of corresponding staticnatsettings
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples