Setting Guaranteed IP Addresses of the Management Plane
API Description
This API is used to set the guaranteed IP addresses of the management plane.
Precautions
- This API is optional. If it is not called, the default IP address is used.
- Up to four IP addresses are supported for each domain. They are separated by semicolons (;).
Method Definition
/** * Set the guaranteed IP address of the management plane. * @param guaranteedIpAddressList Domain name-IP address mapping */ SDKERR setGlobalGuaranteedIpAddresses(List<GuaranteedIpAddress> guaranteedIpAddressList);
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domain |
Yes |
String |
Domain name. |
guaranteedIps |
Yes |
String |
Guaranteed IP addresses. Enter up to four IP addresses and separate them by semicolons (;). |
Sample Code
List<GuaranteedIpAddress> ipAddressList = new ArrayList<>(); GuaranteedIpAddress address1 = new GuaranteedIpAddress(); GuaranteedIpAddress address2 = new GuaranteedIpAddress(); GuaranteedIpAddress address3 = new GuaranteedIpAddress(); address1.setDomain(domain1.getText().toString()); address1.setGuaranteedIps(ip1.getText().toString()); address2.setDomain(domain2.getText().toString()); address2.setGuaranteedIps(ip2.getText().toString()); address3.setDomain(domain3.getText().toString()); address3.setGuaranteedIps(ip3.getText().toString()); ipAddressList.add(address1); ipAddressList.add(address2); ipAddressList.add(address3); SDKERR sdkerr = HWMBizSdk.getBizOpenApi().setGlobalGuaranteedIpAddresses(ipAddressList); DemoUtil.showToastDialog("Set guaranteed IP addresses of the management plane.", sdkerr.getValue(), sdkerr.getDescription());
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot