Domain name for API request: alb.intl.tencentcloudapi.com.
Prerequisite:
You have created an application CLB instance. For detailed operations, please see CreateLoadBalancer.
When you need to change the network type of an application CLB instance from private network to public network through this API, you need to create an Elastic IP first.
Instructions:
The ModifyLoadBalancerAddressType API is an async API. The system returns a request ID, but the network type of the application CLB instance has not been changed yet. The change task is still in progress in the system backend. You can call DescribeLoadBalancerDetail to query the change status of the network type of the application CLB instance.
When an application CLB instance is in the Configuring status, it means the network type of the instance is changing.
When an application CLB instance is in the Active status, the network type change of the instance is successful.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyLoadBalancerAddressType. |
| Version | Yes | String | Common Params. The value used for this API: 2025-10-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| AddressType | Yes | String | Target network type. Value: - Internet (public network) A load balancing instance is assigned a public network IP address, and the domain name (DNS) is parsed to the public network IP. It can be directly accessed via the public network and is suitable for business scenarios that provide external services. - Intranet (private network) Load balancing instances are assigned only private IP addresses, and the domain name (DNS) resolves to the private IP. Access is supported only within the private network environment of the VPC to which the load balancing instance belongs. This is suitable for internal business or scenarios with high security requirements. |
| LoadBalancerId | Yes | String | CLB instance ID. The format is alb- followed by 8 alphanumeric characters. |
| BandwidthPackageId | No | String | Bandwidth package ID. |
| DryRun | No | Boolean | Whether to only precheck this request. Parameter Value: - true: Send a check request without updating the network type of the instance. Check items include whether required parameters are filled in, request format, and service limits. If the check fails, return the corresponding error. If the check passes, return the error code DryRunOperation.- false (default value): Send a normal request, return HTTP 2xx status code after check, and directly perform the operation. |
| ZoneMappings.N | No | Array of ZoneMappingsItem | Availability zone and subnet mapping structure. If the current region supports 2 or more AZs, a minimum of 2 AZs is required. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: alb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyLoadBalancerAddressType
<Common request parameters>
{
"LoadBalancerId": "alb-f8q2xk9m",
"AddressType": "Intranet"
}
{
"Response": {
"RequestId": "a44ec7d9-94ce-4c45-8fb0-bab95dbb5122"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
フィードバック