Skip to main content

DescribeExportInfo

Description

call DescribeExportInfo to view the progress of excel 'export' of asset results.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeExportInfo

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ExportIdBODYlongYes111'export' task ID.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
TotalCountinteger1the total number of pieces of information in the 'export'ed excel table.
Progressinteger100'export' progress percentage (%).
RequestIdstring4C1AE3F3-18FA-4108-BBB9-AFA1A032756Crequest ID of the result.
Messagestringsuccess'export' result prompt information. fixed value: success. Indicates that the 'export' was successful.
FileNamestringhealth_check_'export'_20171123the name of the 'export'ed excel file.
ExportStatusstringsuccessstatus of excel 'export' of baseline check results. Value: init: 'export' initialization 'export'ing: 'export' in progress success: 'export' successfully
CurrentCountinteger1the number of pieces of information currently 'export'ed.
Idlong11'export' ID.
Linkstringhttp://www.aliyun.comdownload link of excel after 'export'.

Example

Successful Response example

{
"TotalCount":"1",
"Progress":"100",
"RequestId":"4C1AE3F3-18FA-4108-BBB9-AFA1A032756C",
"Message":"success",
"FileName":"health_check_'export'_20171123",
"ExportStatus":"success",
"CurrentCount":"1",
"Id":"11",
"Link":"http://www.aliyun.com"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeFieldStatistics

DescribeFieldStatistics

Description

call the DescribeFieldStatistics interface to query the statistics of the asset instance.

Request Method

POST

Request Path

/apsara/route/Sas/DescribeFieldStatistics

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
MachineTypesBODYstringNoecsasset type. If the asset type is not specified, the statistics of all types of assets are queried. ecs: server cloud_product: cloud product
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
InstanceCountinteger100number of all assets.
OfflineInstanceCountinteger21number of offline servers.
RequestIdstring7E0618A9-D5EF-4220-9471-C42B5E92719Frequest ID of the result.
VpcCountinteger5VPC number.
GroupCountinteger20number of server groups.
RegionCountinteger11the number of regions to which the server belongs.
RiskInstanceCountinteger90number of assets at risk.
NotRunningStatusCountinteger10number of servers not started.
GroupedFields--asset information.
NewInstanceCountinteger10Number of new servers.
UnprotectedInstanceCountinteger10number of unprotected assets.

Example

Successful Response example

{
"InstanceCount":"100",
"OfflineInstanceCount":"21",
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
"VpcCount":"5",
"GroupCount":"20",
"RegionCount":"11",
"RiskInstanceCount":"90",
"NotRunningStatusCount":"10",
"GroupedFields":"-",
"NewInstanceCount":"10",
"UnprotectedInstanceCount":"10"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}