Add open file detect api.
This commit is contained in:
@@ -176,6 +176,8 @@
|
||||
#include "model/DescribeInstallCodesResult.h"
|
||||
#include "model/DescribeInstanceAntiBruteForceRulesRequest.h"
|
||||
#include "model/DescribeInstanceAntiBruteForceRulesResult.h"
|
||||
#include "model/DescribeInstanceRebootStatusRequest.h"
|
||||
#include "model/DescribeInstanceRebootStatusResult.h"
|
||||
#include "model/DescribeInstanceStatisticsRequest.h"
|
||||
#include "model/DescribeInstanceStatisticsResult.h"
|
||||
#include "model/DescribeLoginBaseConfigsRequest.h"
|
||||
@@ -404,6 +406,8 @@
|
||||
#include "model/QueryGroupIdByGroupNameResult.h"
|
||||
#include "model/QueryGroupedSecurityEventMarkMissListRequest.h"
|
||||
#include "model/QueryGroupedSecurityEventMarkMissListResult.h"
|
||||
#include "model/RebootMachineRequest.h"
|
||||
#include "model/RebootMachineResult.h"
|
||||
#include "model/RefreshAssetsRequest.h"
|
||||
#include "model/RefreshAssetsResult.h"
|
||||
#include "model/RefreshContainerAssetsRequest.h"
|
||||
@@ -662,6 +666,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInstanceAntiBruteForceRulesResult> DescribeInstanceAntiBruteForceRulesOutcome;
|
||||
typedef std::future<DescribeInstanceAntiBruteForceRulesOutcome> DescribeInstanceAntiBruteForceRulesOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeInstanceAntiBruteForceRulesRequest&, const DescribeInstanceAntiBruteForceRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAntiBruteForceRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceRebootStatusResult> DescribeInstanceRebootStatusOutcome;
|
||||
typedef std::future<DescribeInstanceRebootStatusOutcome> DescribeInstanceRebootStatusOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeInstanceRebootStatusRequest&, const DescribeInstanceRebootStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceRebootStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceStatisticsResult> DescribeInstanceStatisticsOutcome;
|
||||
typedef std::future<DescribeInstanceStatisticsOutcome> DescribeInstanceStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeInstanceStatisticsRequest&, const DescribeInstanceStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceStatisticsAsyncHandler;
|
||||
@@ -1004,6 +1011,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryGroupedSecurityEventMarkMissListResult> QueryGroupedSecurityEventMarkMissListOutcome;
|
||||
typedef std::future<QueryGroupedSecurityEventMarkMissListOutcome> QueryGroupedSecurityEventMarkMissListOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::QueryGroupedSecurityEventMarkMissListRequest&, const QueryGroupedSecurityEventMarkMissListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGroupedSecurityEventMarkMissListAsyncHandler;
|
||||
typedef Outcome<Error, Model::RebootMachineResult> RebootMachineOutcome;
|
||||
typedef std::future<RebootMachineOutcome> RebootMachineOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::RebootMachineRequest&, const RebootMachineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootMachineAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefreshAssetsResult> RefreshAssetsOutcome;
|
||||
typedef std::future<RefreshAssetsOutcome> RefreshAssetsOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::RefreshAssetsRequest&, const RefreshAssetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshAssetsAsyncHandler;
|
||||
@@ -1267,6 +1277,9 @@ namespace AlibabaCloud
|
||||
DescribeInstanceAntiBruteForceRulesOutcome describeInstanceAntiBruteForceRules(const Model::DescribeInstanceAntiBruteForceRulesRequest &request)const;
|
||||
void describeInstanceAntiBruteForceRulesAsync(const Model::DescribeInstanceAntiBruteForceRulesRequest& request, const DescribeInstanceAntiBruteForceRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceAntiBruteForceRulesOutcomeCallable describeInstanceAntiBruteForceRulesCallable(const Model::DescribeInstanceAntiBruteForceRulesRequest& request) const;
|
||||
DescribeInstanceRebootStatusOutcome describeInstanceRebootStatus(const Model::DescribeInstanceRebootStatusRequest &request)const;
|
||||
void describeInstanceRebootStatusAsync(const Model::DescribeInstanceRebootStatusRequest& request, const DescribeInstanceRebootStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceRebootStatusOutcomeCallable describeInstanceRebootStatusCallable(const Model::DescribeInstanceRebootStatusRequest& request) const;
|
||||
DescribeInstanceStatisticsOutcome describeInstanceStatistics(const Model::DescribeInstanceStatisticsRequest &request)const;
|
||||
void describeInstanceStatisticsAsync(const Model::DescribeInstanceStatisticsRequest& request, const DescribeInstanceStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceStatisticsOutcomeCallable describeInstanceStatisticsCallable(const Model::DescribeInstanceStatisticsRequest& request) const;
|
||||
@@ -1609,6 +1622,9 @@ namespace AlibabaCloud
|
||||
QueryGroupedSecurityEventMarkMissListOutcome queryGroupedSecurityEventMarkMissList(const Model::QueryGroupedSecurityEventMarkMissListRequest &request)const;
|
||||
void queryGroupedSecurityEventMarkMissListAsync(const Model::QueryGroupedSecurityEventMarkMissListRequest& request, const QueryGroupedSecurityEventMarkMissListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryGroupedSecurityEventMarkMissListOutcomeCallable queryGroupedSecurityEventMarkMissListCallable(const Model::QueryGroupedSecurityEventMarkMissListRequest& request) const;
|
||||
RebootMachineOutcome rebootMachine(const Model::RebootMachineRequest &request)const;
|
||||
void rebootMachineAsync(const Model::RebootMachineRequest& request, const RebootMachineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebootMachineOutcomeCallable rebootMachineCallable(const Model::RebootMachineRequest& request) const;
|
||||
RefreshAssetsOutcome refreshAssets(const Model::RefreshAssetsRequest &request)const;
|
||||
void refreshAssetsAsync(const Model::RefreshAssetsRequest& request, const RefreshAssetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshAssetsOutcomeCallable refreshAssetsCallable(const Model::RefreshAssetsRequest& request) const;
|
||||
|
||||
@@ -34,17 +34,19 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct WarningSummary
|
||||
{
|
||||
std::string lastFoundTime;
|
||||
long riskId;
|
||||
int mediumWarningCount;
|
||||
bool checkExploit;
|
||||
int checkCount;
|
||||
int warningMachineCount;
|
||||
int highWarningCount;
|
||||
std::string typeAlias;
|
||||
std::string level;
|
||||
int lowWarningCount;
|
||||
std::string subTypeAlias;
|
||||
std::string riskName;
|
||||
std::string lastFoundTime;
|
||||
int mediumWarningCount;
|
||||
int warningMachineCount;
|
||||
int highWarningCount;
|
||||
std::string level;
|
||||
bool databaseRisk;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~DescribeCheckWarningsRequest();
|
||||
std::string getUuid() const;
|
||||
void setUuid(const std::string &uuid);
|
||||
std::string getCheckType() const;
|
||||
void setCheckType(const std::string &checkType);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
int getPageSize() const;
|
||||
@@ -47,6 +49,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string uuid_;
|
||||
std::string checkType_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
|
||||
@@ -40,7 +40,9 @@ namespace AlibabaCloud
|
||||
std::string uuid;
|
||||
long checkId;
|
||||
long checkWarningId;
|
||||
int fixStatus;
|
||||
std::string level;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Criteria
|
||||
{
|
||||
std::string multiValues;
|
||||
std::string type;
|
||||
std::string values;
|
||||
std::string name;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Sas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeInstanceRebootStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeInstanceRebootStatusRequest();
|
||||
~DescribeInstanceRebootStatusRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getUuids() const;
|
||||
void setUuids(const std::string &uuids);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string uuids_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Sas
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeInstanceRebootStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RebootStatus
|
||||
{
|
||||
std::string msg;
|
||||
std::string uuid;
|
||||
int rebootStatus;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstanceRebootStatusResult();
|
||||
explicit DescribeInstanceRebootStatusResult(const std::string &payload);
|
||||
~DescribeInstanceRebootStatusResult();
|
||||
std::vector<RebootStatus> getRebootStatuses()const;
|
||||
int getTotalCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RebootStatus> rebootStatuses_;
|
||||
int totalCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEINSTANCEREBOOTSTATUSRESULT_H_
|
||||
@@ -32,26 +32,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckItemResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageContentResource
|
||||
{
|
||||
int totalCount;
|
||||
std::string contentResource;
|
||||
int pageSize;
|
||||
int pageCount;
|
||||
int currentPage;
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
DescribeRiskCheckItemResultResult();
|
||||
explicit DescribeRiskCheckItemResultResult(const std::string &payload);
|
||||
~DescribeRiskCheckItemResultResult();
|
||||
PageContentResource getPageContentResource()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageContentResource pageContentResource_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,19 @@ namespace AlibabaCloud
|
||||
struct WarningMachine
|
||||
{
|
||||
int status;
|
||||
bool bind;
|
||||
std::string instanceId;
|
||||
bool portOpen;
|
||||
std::string intranetIp;
|
||||
int lowWarningCount;
|
||||
std::string instanceName;
|
||||
int mediumWarningCount;
|
||||
std::string uuid;
|
||||
std::string internetIp;
|
||||
std::string instanceId;
|
||||
bool portOpen;
|
||||
int highWarningCount;
|
||||
std::string regionId;
|
||||
int passCount;
|
||||
std::string intranetIp;
|
||||
int lowWarningCount;
|
||||
int authVersion;
|
||||
};
|
||||
|
||||
|
||||
|
||||
45
sas/include/alibabacloud/sas/model/RebootMachineRequest.h
Normal file
45
sas/include/alibabacloud/sas/model/RebootMachineRequest.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_REBOOTMACHINEREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_REBOOTMACHINEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Sas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SAS_EXPORT RebootMachineRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RebootMachineRequest();
|
||||
~RebootMachineRequest();
|
||||
std::string getUuid() const;
|
||||
void setUuid(const std::string &uuid);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
|
||||
private:
|
||||
std::string uuid_;
|
||||
std::string sourceIp_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Sas
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_REBOOTMACHINEREQUEST_H_
|
||||
49
sas/include/alibabacloud/sas/model/RebootMachineResult.h
Normal file
49
sas/include/alibabacloud/sas/model/RebootMachineResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_REBOOTMACHINERESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_REBOOTMACHINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT RebootMachineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RebootMachineResult();
|
||||
explicit RebootMachineResult(const std::string &payload);
|
||||
~RebootMachineResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_REBOOTMACHINERESULT_H_
|
||||
Reference in New Issue
Block a user