Help Center/ Virtual Private Cloud/ API Reference (Paris Regions)/ APIs/ Virtual IP Address/ Disabling Source and Destination Check (HA Load Balancing Cluster Scenario)
Updated on 2024-03-05 GMT+08:00

Disabling Source and Destination Check (HA Load Balancing Cluster Scenario)

Required Tools

Postman or JMeter

Involved APIs

The following APIs are invoked:

No.

Method

URI

Description

1

POST

/v3/auth/tokens

Obtain a token.

2

PUT

/v2.0/ports/{port_id}

Disable the source/destination check function for the ECS NIC.

Procedure

  1. Obtain a token.

    Method

    POST

    URL

    IAM address: Port number/v3/auth/tokens

    Body (Example)

    {

    "auth":{

    "identity":{

    "methods": ["password"],

    "password":{

    "user":{

    "name": "user_name",

    "domain":{

    "name":"domain_name"

    },

    "password":"user_password"

    }

    }

    },

    "scope":{

    "project":{

    "name":"project_name"

    }

    }

    }

    }

  2. Change the allowed-address-pairs of the ECS NIC to 1.1.1.1/0 to disable the source/destination check.

    Method

    PUT

    URL

    VPC address: Port number/v2.0/ports/{port_id}

    Body

    {

    "port": {

    "allowed_address_pairs": [

    {"ip_address":"1.1.1.1/0"}

    ]

    }

    }

    Description

    In the URL, {port_id} is the ID of the ECS NIC bound with the virtual IP address.