Add kibana network white Ips.

This commit is contained in:
sdk-team
2020-04-20 14:25:18 +08:00
parent 112b1d25da
commit d53a27c55f
4 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2020-04-20 Version: 1.36.365
- Add kibana network white Ips.
2020-04-19 Version: 1.36.364
- Multimedia poc modified.

View File

@@ -1 +1 @@
1.36.364
1.36.365

View File

@@ -118,6 +118,7 @@ namespace AlibabaCloud
std::vector<ZoneInfo> zoneInfos;
std::string createdAt;
int port;
std::vector<std::string> kibanaPrivateIPWhitelist;
bool enablePublic;
KibanaConfiguration kibanaConfiguration;
bool advancedDedicateMaster;
@@ -135,6 +136,7 @@ namespace AlibabaCloud
int nodeAmount;
std::string esVersion;
std::string updatedAt;
bool enableKibanaPrivateNetwork;
std::vector<DictListItem> dictList;
std::string kibanaDomain;
std::vector<Tag> tags;

View File

@@ -92,6 +92,8 @@ void DescribeInstanceResult::parse(const std::string &payload)
result_.haveKibana = resultNode["haveKibana"].asString() == "true";
if(!resultNode["resourceGroupId"].isNull())
result_.resourceGroupId = resultNode["resourceGroupId"].asString();
if(!resultNode["enableKibanaPrivateNetwork"].isNull())
result_.enableKibanaPrivateNetwork = resultNode["enableKibanaPrivateNetwork"].asString() == "true";
auto alldictListNode = resultNode["dictList"]["DictListItem"];
for (auto resultNodedictListDictListItem : alldictListNode)
{
@@ -224,6 +226,9 @@ void DescribeInstanceResult::parse(const std::string &payload)
auto allPrivateNetworkIpWhiteList = resultNode["privateNetworkIpWhiteList"]["PrivateNetworkIpWhiteList"];
for (auto value : allPrivateNetworkIpWhiteList)
result_.privateNetworkIpWhiteList.push_back(value.asString());
auto allKibanaPrivateIPWhitelist = resultNode["kibanaPrivateIPWhitelist"]["WhiteIP"];
for (auto value : allKibanaPrivateIPWhitelist)
result_.kibanaPrivateIPWhitelist.push_back(value.asString());
}