Mengkueri detail tentang instans Network Load Balancer (NLB).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:GetLoadBalancerAttribute |
get |
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
ID instans NLB. |
nlb-83ckzc8d4xlp8o**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run, tanpa mengirim permintaan aktual. Nilai valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token. Pastikan token unik di antara permintaan yang berbeda. Token klien hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan ID permintaan sebagai token klien. ID permintaan berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
ID Wilayah instans NLB. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar Wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
response |
||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| RegionId |
string |
The region ID of the NLB instance. |
cn-hangzhou |
| LoadBalancerId |
string |
The NLB instance ID. |
nlb-83ckzc8d4xlp8o**** |
| LoadBalancerName |
string |
The NLB instance name. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. |
NLB1 |
| LoadBalancerType |
string |
The type of the Server Load Balancer (SLB) instance. Set the value to network, which specifies NLB. |
network |
| AddressType |
string |
The IPv4 network type of the NLB instance. Valid values:
|
Internet |
| AddressIpVersion |
string |
The protocol version. Valid values:
|
ipv4 |
| Ipv6AddressType |
string |
The IPv6 network type of the NLB instance. Valid values:
|
Internet |
| LoadBalancerStatus |
string |
The NLB instance status. Valid values:
|
Active |
| LoadBalancerBusinessStatus |
string |
The status of workloads on the NLB instance. Valid values:
|
Normal |
| OperationLocks |
array<object> |
The information about the locked NLB instance. This parameter is returned only when |
|
|
object |
|||
| LockType |
string |
The type of the lock. Valid values:
|
SecurityLocked |
| LockReason |
string |
The reason why the NLB instance is locked. |
security |
| VpcId |
string |
The VPC ID of the NLB instance. |
vpc-bp1b49rqrybk45nio**** |
| CreateTime |
string |
The time when the NLB instance was created. This value is a UNIX timestamp. Unit: milliseconds. |
2022-07-02T02:49:05Z |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-atstuj3rtop**** |
| DNSName |
string |
The domain name of the NLB instance. |
nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com |
| ZoneMappings |
array<object> |
The list of zones and vSwitches in the zones. You must specify 2 to 10 zones. |
|
|
array<object> |
The mappings between zones and vSwitches. You must add at least two zones. You can add a maximum of 10 zones. |
||
| VSwitchId |
string |
The ID of the vSwitch in the zone. By default, each zone contains one vSwitch and one subnet. |
vsw-bp1rmcrwg3erh1fh8**** |
| ZoneId |
string |
The ID of the zone. You can call the DescribeZones operation to query the most recent zone list. |
cn-hangzhou-a |
| LoadBalancerAddresses |
array<object> |
The information about the IP addresses used by the NLB instance. |
|
|
object |
|||
| EniId |
string |
The ID of the elastic network interface (ENI). |
eni-bp12f1xhs5yal61a**** |
| PrivateIPv4Address |
string |
The private IPv4 address of the NLB instance. |
192.168.3.32 |
| AllocationId |
string |
The ID of the elastic IP address (EIP). |
eip-bp1aedxso6u80u0qf**** |
| PublicIPv4Address |
string |
The public IPv4 address of the NLB instance. |
120.XX.XX.69 |
| Ipv6Address |
string |
The IPv6 address of the NLB instance. |
2001:db8:1:1:1:1:1:1 |
| PrivateIPv4HcStatus |
string |
The health status of the private IPv4 address of the NLB instance. Valid values:
Catatan
This parameter is returned only when the Status of the zone is Active. |
Healthy |
| PrivateIPv6HcStatus |
string |
The health status of the IPv6 address of the NLB instance. Valid values:
Catatan
This parameter is returned only when the Status of the zone is Active. |
Healthy |
| Ipv4LocalAddresses |
array |
The IPv4 link-local addresses. The IP addresses that the NLB instance uses to communicate with the backend servers. |
|
|
string |
The IPv4 link-local address. |
192.168.36.16 |
|
| Ipv6LocalAddresses |
array |
The IPv6 link-local addresses. The IP addresses that the NLB instance uses to communicate with the backend servers. |
|
|
string |
The IPv6 link-local address. |
2408:4005:357:ba00:64a2:221f:5685:8854 |
|
| Status |
string |
The zone status. Valid values:
|
Active |
| BandwidthPackageId |
string |
The ID of the EIP bandwidth plan. |
cbwp-bp1vevu8h3ieh**** |
| SecurityGroupIds |
array |
The ID of the security group associated with the NLB instance. |
|
|
string |
The ID of the security group associated with the NLB instance. |
sg-bp10uag3q0jkxu72**** |
|
| CrossZoneEnabled |
boolean |
Indicates whether the NLB instance is accessible across zones. Valid values:
|
true |
| LoadBalancerBillingConfig |
object |
The billing information of the NLB instance. |
|
| PayType |
string |
The billing method of the NLB instance. Set the value to PostPay, which specifies the pay-as-you-go billing method. |
PostPay |
| Cps |
integer |
The maximum number of new connections per second supported by the NLB instance in each zone (virtual IP address). Valid values: 0 to 1000000. 0 indicates that the number of connections is unlimited. |
100 |
| DeletionProtectionConfig |
object |
The configuration of the deletion protection feature. |
|
| Enabled |
boolean |
Specifies whether to enable deletion protection. Valid values:
|
true |
| Reason |
string |
The reason why the deletion protection feature is enabled or disabled. The value must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter. |
create-by-mse-can-not-delete |
| EnabledTime |
string |
The time when the deletion protection feature was enabled. The time follows the ISO 8601 standard in the |
2022-11-02T02:49:05Z |
| ModificationProtectionConfig |
object |
The configuration of the configuration read-only mode. |
|
| Status |
string |
Specifies whether to enable the configuration read-only mode. Valid values:
Catatan
If you set this parameter to ConsoleProtection, you cannot use the NLB console to modify instance configurations. However, you can call API operations to modify instance configurations. |
ConsoleProtection |
| Reason |
string |
The reason why the configuration read-only mode is enabled. The value must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter. Catatan
This parameter takes effect only if the Status parameter is set to ConsoleProtection. |
create-by-mse-cannot-modify |
| EnabledTime |
string |
The time when the modification protection feature was enabled. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2022-12-02T02:49:05Z |
| Tags |
array<object> |
The tags. |
|
|
object |
|||
| TagKey |
string |
The tag key. |
KeyTest |
| TagValue |
string |
The tag value. |
ValueTest |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"RegionId": "cn-hangzhou",
"LoadBalancerId": "nlb-83ckzc8d4xlp8o****",
"LoadBalancerName": "NLB1",
"LoadBalancerType": "network",
"AddressType": "Internet",
"AddressIpVersion": "ipv4",
"Ipv6AddressType": "Internet",
"LoadBalancerStatus": "Active",
"LoadBalancerBusinessStatus": "Normal",
"OperationLocks": [
{
"LockType": "SecurityLocked",
"LockReason": "security"
}
],
"VpcId": "vpc-bp1b49rqrybk45nio****",
"CreateTime": "2022-07-02T02:49:05Z",
"ResourceGroupId": "rg-atstuj3rtop****",
"DNSName": "nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com",
"ZoneMappings": [
{
"VSwitchId": "vsw-bp1rmcrwg3erh1fh8****",
"ZoneId": "cn-hangzhou-a",
"LoadBalancerAddresses": [
{
"EniId": "eni-bp12f1xhs5yal61a****",
"PrivateIPv4Address": "192.168.3.32",
"AllocationId": "eip-bp1aedxso6u80u0qf****",
"PublicIPv4Address": "120.XX.XX.69",
"Ipv6Address": "2001:db8:1:1:1:1:1:1",
"PrivateIPv4HcStatus": "Healthy",
"PrivateIPv6HcStatus": "Healthy",
"Ipv4LocalAddresses": [
"192.168.36.16"
],
"Ipv6LocalAddresses": [
"2408:4005:357:ba00:64a2:221f:5685:8854"
]
}
],
"Status": "Active"
}
],
"BandwidthPackageId": "cbwp-bp1vevu8h3ieh****",
"SecurityGroupIds": [
"sg-bp10uag3q0jkxu72****"
],
"CrossZoneEnabled": true,
"LoadBalancerBillingConfig": {
"PayType": "PostPay"
},
"Cps": 100,
"DeletionProtectionConfig": {
"Enabled": true,
"Reason": "create-by-mse-can-not-delete",
"EnabledTime": "2022-11-02T02:49:05Z"
},
"ModificationProtectionConfig": {
"Status": "ConsoleProtection",
"Reason": "create-by-mse-cannot-modify",
"EnabledTime": "2022-12-02T02:49:05Z"
},
"Tags": [
{
"TagKey": "KeyTest",
"TagValue": "ValueTest"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DuplicatedParam.%s | The param of %s is duplicated. | |
| 400 | OperationFailed.GetXipFailed | Operation failed because GetXipFailed. | The operation failed because the instance is still being created. |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | The specified load balancer resource was not found. Please check the input parameters. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.