DescribeFieldStatistics

Updated at:

Queries the statistics information of servers in assets.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:DescribeFieldStatistics

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The ID of the region where the server resides.

cn-hangzhou

MachineTypes

string

No

The type of asset to query. If you do not specify an asset type, the statistics information of all asset types is queried. Valid values:

  • ecs: server

  • cloud_product: cloud service

ecs

ResourceDirectoryAccountId

integer

No

The ID of the Alibaba Cloud account that is the main account of the member accounts in the resource folder.

Note

You can invoke the DescribeMonitorAccounts operation to obtain this parameter.

1232428423234****

Response elements

Element

Type

Description

Example

object

The response data.

RequestId

string

The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues.

7E0618A9-D5EF-4220-9471-C42B5E92719F

GroupedFields

object

The information about the queried server assets.

OfflineInstanceCount

integer

The number of offline servers.

21

NoRiskInstanceCount

integer

The number of assets that are not a risky asset.

10

UnKnowStatusInstanceCount

integer

The number of assets with an unknown enabling status.

1

RegionCount

integer

The number of regions to which the servers belong.

11

NewInstanceCount

integer

The number of new servers.

10

ExposedInstanceCount

integer

The number of exposed assets.

1

GroupCount

integer

The number of server groups.

20

TencentInstanceCount

integer

The number of third-party cloud servers.

10

GeneralAssetCount

integer

The number of general assets.

10

InstanceSyncTaskCount

integer

The number of tasks under the specified asset type. If you do not specify an asset type, this value is the sum of all servers and cloud services in your assets.

10

UnprotectedInstanceCount

integer

The number of unprotected assets.

10

ImportantAssetCount

integer

The number of important assets.

10

TestAssetCount

integer

The number of test assets.

10

VpcCount

integer

The number of virtual private clouds (VPCs).

5

InstanceCount

integer

The total number of assets under the specified asset type. If you do not specify an asset type, this value is the sum of all servers and cloud services in your assets.

100

PauseInstanceCount

integer

The number of paused servers.

10

IdcInstanceCount

integer

The number of assets that can be detected by Security Center.

100

NotRunningStatusCount

integer

The number of servers that are not running or powered on.

10

AliYunInstanceCount

integer

The number of assets that belong to Alibaba Cloud server groups.

100

RiskInstanceCount

integer

The number of assets with risks.

90

HuaweiInstanceCount

integer

The number of third-party cloud servers.

0

AwsInstanceCount

integer

The number of third-party cloud servers.

100

OutMachineInstanceCount

integer

The number of instances outside Alibaba Cloud.

20

TripartiteInstanceCount

integer

The number of Simple Application Server instances.

2

AzureInstanceCount

integer

The number of third-party cloud servers.

5

InstanceCoreCount

integer

The total number of compute cores for all assets under the specified asset type. If you do not specify an asset type, this value is the sum of compute cores for all servers and cloud services in your assets.

301

RiskInstanceCoreCount

integer

The number of compute cores for assets with risks.

201

ExposedInstanceCoreCount

integer

The number of compute cores for exposed assets.

30

UnprotectedInstanceCoreCount

integer

The number of compute cores for unprotected assets.

30

NotRunningStatusCoreCount

integer

The number of compute cores for servers that are not running or powered on.

30

NewInstanceCoreCount

integer

The number of compute cores for new servers.

30

NotBindMachineInstanceCount

integer

The number of unauthorized assets under the specified asset type.

10

VolcengineInstanceCount

integer

The number of third-party cloud servers.

10

GoogleInstanceCount

integer

The number of third-party cloud servers.

10

BaiduInstanceCount

integer

The number of third-party cloud servers.

5

UcloudInstanceCount

integer

The number of third-party cloud servers.

5

StateCloudInstanceCount

integer

The number of third-party cloud servers.

5

KingsoftInstanceCount

integer

The number of third-party cloud servers.

5

OracleInstanceCount

integer

The number of third-party cloud servers.

1

Examples

Success response

JSON format

{
  "RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
  "GroupedFields": {
    "OfflineInstanceCount": 21,
    "NoRiskInstanceCount": 10,
    "UnKnowStatusInstanceCount": 1,
    "RegionCount": 11,
    "NewInstanceCount": 10,
    "ExposedInstanceCount": 1,
    "GroupCount": 20,
    "TencentInstanceCount": 10,
    "GeneralAssetCount": 10,
    "InstanceSyncTaskCount": 10,
    "UnprotectedInstanceCount": 10,
    "ImportantAssetCount": 10,
    "TestAssetCount": 10,
    "VpcCount": 5,
    "InstanceCount": 100,
    "PauseInstanceCount": 10,
    "IdcInstanceCount": 100,
    "NotRunningStatusCount": 10,
    "AliYunInstanceCount": 100,
    "RiskInstanceCount": 90,
    "HuaweiInstanceCount": 0,
    "AwsInstanceCount": 100,
    "OutMachineInstanceCount": 20,
    "TripartiteInstanceCount": 2,
    "AzureInstanceCount": 5,
    "InstanceCoreCount": 301,
    "RiskInstanceCoreCount": 201,
    "ExposedInstanceCoreCount": 30,
    "UnprotectedInstanceCoreCount": 30,
    "NotRunningStatusCoreCount": 30,
    "NewInstanceCoreCount": 30,
    "NotBindMachineInstanceCount": 10,
    "VolcengineInstanceCount": 10,
    "GoogleInstanceCount": 10,
    "BaiduInstanceCount": 5,
    "UcloudInstanceCount": 5,
    "StateCloudInstanceCount": 5,
    "KingsoftInstanceCount": 5,
    "OracleInstanceCount": 1
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 NoPermission no permission
400 RdCheckNoPermission Resource directory account verification has no permission.
500 RdCheckInnerError Resource directory account service internal error.
500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.