All Products
Search
Document Center

Security Center:GetClientInstallationStatistic

Last Updated:Feb 20, 2024
This API is deprecated. You are advised to use Sas(2018-12-03) - GetClientRatioStatistic.

Queries the installation rate of the client on cloud assets in the specified period of time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TimeStartlongYes

The timestamp that specifies the beginning of the time range to collect statistics. Unit: millisecond.

1687104000000
TimeEndlongYes

The timestamp that specifies the end of the time range to collect statistics. Unit: millisecond.

1687708800000

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The request ID.

F62DD457-2588-589A-B1F6-A1245895D2AB
ClientInstallRatioobject

The statistics on the client installation rate.

HistoryItemsobject []

The historical statistics on the installation rate of the agent.

Vendorlong

The type of the cloud asset. Valid values:

  • 0: a cloud asset provided by Alibaba Cloud.
  • 1: a third-party cloud asset
  • 2: an asset in a data center
  • 3, 4, 5, and 7: other cloud asset
  • 8: a lightweight cloud asset
4
Itemsobject []

The statistics on the client installation rate.

CalculateTimelong

The timestamp of the calculation. Unit: millisecond.

1687759630045
AssetTotalCountinteger

The total number of cloud assets.

100
InstallRatiodouble

The installation rate. Unit: %.

80.00
InstalledAssetCountinteger

The number of cloud assets on which the client is installed.

80
CurrentItemsobject []

The current statistics on the installation rate of the client.

Vendorlong

The type of the cloud asset. Valid values:

  • 0: a cloud asset provided by Alibaba Cloud.
  • 1: a third-party cloud asset
  • 2: an asset in a data center
  • 3, 4, 5, and 7: other cloud asset
  • 8: a lightweight cloud asset
7
Itemsobject []

The current statistics on the installation rate of the client.

CalculateTimelong

The timestamp of the calculation. Unit: millisecond.

1687759630045
AssetTotalCountinteger

The total number of cloud assets.

100
InstallRatiodouble

The installation rate. Unit: %.

70.00
InstalledAssetCountinteger

The number of assets on which the client is installed.

70
Datesarray

The time when statistics were collected.

long

The time when statistics were collected. Unit: millisecond.

1687104000000

Examples

Sample success responses

JSONformat

{
  "RequestId": "F62DD457-2588-589A-B1F6-A1245895D2AB",
  "ClientInstallRatio": {
    "HistoryItems": [
      {
        "Vendor": 4,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetTotalCount": 100,
            "InstallRatio": 80,
            "InstalledAssetCount": 80
          }
        ]
      }
    ],
    "CurrentItems": [
      {
        "Vendor": 7,
        "Items": [
          {
            "CalculateTime": 1687759630045,
            "AssetTotalCount": 100,
            "InstallRatio": 70,
            "InstalledAssetCount": 70
          }
        ]
      }
    ],
    "Dates": [
      1687104000000
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParamIllegal param-
400NotBuyuser not buy serviceUser not buy service.
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.