Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ Basic Settings/ Setting Guaranteed IP Addresses of the Management Plane Domain Name
Updated on 2025-04-18 GMT+08:00

Setting Guaranteed IP Addresses of the Management Plane Domain Name

setGlobalGuaranteedIpAddresses

API Description

This API is used to set the guaranteed IP addresses of the management plane domain name.

Precautions

This API is optional. If it is not called, the default IP address is used.

Method Definition

1
- (HWMSDKERR)setGlobalGuaranteedIpAddresses:(NSArray<HWMSDKGuaranteedIpAddressModel *> *)param;

Parameter Description

Table 1 Description

Parameter

Mandatory

Type

Description

param

Yes

NSArray<HWMSDKGuaranteedIpAddressModel *> *

Guaranteed IP addresses.

Table 2 HWMSDKGuaranteedIpAddressModel description

Parameter

Mandatory

Type

Description

domain

Yes

NSString *

Domain name.

guaranteedIps

Yes

NSString *

Guaranteed IP addresses. Enter up to four IP addresses and separate them by semicolons (;).

Return Values

Whether the API is successfully called.

Sample Code

1
2
3
4
5
6
7
8
// Set guaranteed IP addresses of the management plane domain name.
HWMSDKERR result = [[HWMBizSdk getBizOpenApi] setGlobalGuaranteedIpAddresses:param];
NSString *tip = @"Set";
if (result != HWMSDKSdkerrSuccess) {
   // Display a message if the setting fails.
   tip = [NSString stringWithFormat:@"Set failed[%ld]",result];
}
[HWMConsoleManager shareInstance].console = tip;