全部產品
Search
文件中心

Security Center:DescribeFieldStatistics

更新時間:Jun 16, 2026

查詢資產中伺服器的統計資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-sas:DescribeFieldStatistics

get

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

伺服器所在的地域的 ID。

cn-hangzhou

MachineTypes

string

要查詢的資產類型。不指定資產類型,即查詢所有類型資產的統計資訊。取值:

  • ecs:伺服器

  • cloud_product:雲端產品。

ecs

ResourceDirectoryAccountId

integer

資源目錄成員帳號主帳號 ID。

說明

呼叫 DescribeMonitorAccounts 介面可以取得該參數。

1232428423234****

返回參數

名稱

類型

描述

樣本值

object

請求返回資料。

RequestId

string

本次呼叫請求的 ID,是由阿里雲為該請求生成的唯一識別碼,可用於排查和定位問題。

7E0618A9-D5EF-4220-9471-C42B5E92719F

GroupedFields

object

查詢到的伺服器資產的資訊。

OfflineInstanceCount

integer

離線伺服器的數量。

21

NoRiskInstanceCount

integer

無風險資產數量。

10

UnKnowStatusInstanceCount

integer

未知資產開啟狀態的數量。

1

RegionCount

integer

伺服器所屬的地域數量。

11

NewInstanceCount

integer

新增伺服器數量。

10

ExposedInstanceCount

integer

暴露資產數。

1

GroupCount

integer

伺服器組數量。

20

TencentInstanceCount

integer

第三方雲端伺服器數量。

10

GeneralAssetCount

integer

一般資產數量。

10

InstanceSyncTaskCount

integer

您查詢時指定的資產類型下的任務數量。如果查詢時沒有指定資產類型,此處的數量是您資產中所有伺服器和雲端產品的數量之和。

10

UnprotectedInstanceCount

integer

未受保護的資產數量。

10

ImportantAssetCount

integer

重要資產數量。

10

TestAssetCount

integer

測試資產數量。

10

VpcCount

integer

專有網路 VPC 數量。

5

InstanceCount

integer

您查詢時指定的資產類型下的所有資產數量。如果查詢時沒有指定資產類型,此處的數量是您資產中所有伺服器和雲端產品的數量之和。

100

PauseInstanceCount

integer

暫停的伺服器數量。

10

IdcInstanceCount

integer

雲端安全中心支援檢測的資產數量。

100

NotRunningStatusCount

integer

未啟動(未開機)的伺服器數量。

10

AliYunInstanceCount

integer

阿里雲伺服器組所屬的資產數量。

100

RiskInstanceCount

integer

存在風險的資產數量。

90

HuaweiInstanceCount

integer

第三方雲端伺服器數量。

0

AwsInstanceCount

integer

第三方雲端伺服器數量。

100

OutMachineInstanceCount

integer

雲外執行個體數量。

20

TripartiteInstanceCount

integer

輕量應用伺服器數量。

2

AzureInstanceCount

integer

第三方雲端伺服器數量。

5

InstanceCoreCount

integer

您查詢時指定的資產類型下的所有資產計算核數。如果查詢時沒有指定資產類型,此處的數量是您資產中所有伺服器和雲端產品的計算核數之和。

301

RiskInstanceCoreCount

integer

存在風險的資產計算核數。

201

ExposedInstanceCoreCount

integer

暴露資產計算核數。

30

UnprotectedInstanceCoreCount

integer

未受保護的資產的計算核數。

30

NotRunningStatusCoreCount

integer

未啟動(未開機)伺服器的計算核數。

30

NewInstanceCoreCount

integer

新增伺服器的計算核數。

30

NotBindMachineInstanceCount

integer

您查詢時指定的資產類型下的未綁定授權的資產類型數量。

10

VolcengineInstanceCount

integer

第三方雲端伺服器數量。

10

GoogleInstanceCount

integer

第三方雲端伺服器數量。

10

BaiduInstanceCount

integer

第三方雲端伺服器數量。

5

UcloudInstanceCount

integer

第三方雲端伺服器數量。

5

StateCloudInstanceCount

integer

第三方雲端伺服器數量。

5

KingsoftInstanceCount

integer

第三方雲端伺服器數量。

5

樣本

正常返回樣本

JSON格式

{
  "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
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

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

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情