調(diào)用ListApm,查詢所有APM Server實(shí)例詳情。

調(diào)試

您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。

請(qǐng)求頭

該接口使用公共請(qǐng)求頭,無特殊請(qǐng)求頭。請(qǐng)參見公共請(qǐng)求參數(shù)文檔。

請(qǐng)求語法

GET /openapi/apm HTTP/1.1

請(qǐng)求參數(shù)

名稱 類型 位置 是否必選 示例值 描述
description String Query APMtest

實(shí)例名稱。

instanceId String Query apm-cn-i7m2fuae****

實(shí)例ID。

output String Query es-cn-i7m2fsfhc001x****

關(guān)聯(lián)的Elasticsearch實(shí)例ID。

page Long Query 1

實(shí)例列表的頁碼。默認(rèn)值:1。

size Long Query 10

分頁查詢時(shí)設(shè)置的每頁條數(shù)。默認(rèn)值:20。

返回?cái)?shù)據(jù)

名稱 類型 示例值 描述
RequestId String 080D3399-76CF-519D-A540-2C44BC056EB7

請(qǐng)求ID。

Headers Object

消息頭。

X-Total-Count Long 1

返回的記錄數(shù)。

Result Array of object

返回結(jié)果。

createdAt String 2021-11-16T07:15:51.967Z

創(chuàng)建時(shí)間。

deployedReplica Long 1

已發(fā)布的副本數(shù)。

description String APMtest

實(shí)例名稱。

instanceId String apm-cn-i7m2fuae****

實(shí)例ID。

nodeAmount Long 1

節(jié)點(diǎn)數(shù)量。

outputES String es-cn-i7m2fsfhc001x****

關(guān)聯(lián)的Elasticsearch實(shí)例ID。

outputESUserName String elastic

關(guān)聯(lián)的Elasticsearch實(shí)例用戶名。

ownerId String 133071096032****

用戶賬號(hào)ID。

paymentType String postpaid

付費(fèi)方式,取值如下:

  • postpaid:按量付費(fèi)。
  • prepaid:包年包月。
region String cn-hangzhou

地域。

replica Long 1

副本數(shù)。

resourceSpec String C1M2

規(guī)格,取值如下:

  • C1M2(1核2 GB)
  • C2M4(2核4 GB)
status String active

生命周期狀態(tài),支持:

  • creating:創(chuàng)建中。
  • activating:生效中。
  • active:正常。
  • inactive:凍結(jié)。
  • invalid:失效。
version String 7.10.2

版本信息。

vpcId String vpc-bp1530vdhqkamm9s0****

專有網(wǎng)絡(luò)ID。

vsArea String cn-hangzhou-i

交換機(jī)所在的可用區(qū)。

vswitchId String vsw-bp1j1mql6r9g5vfb4****

交換機(jī)ID。

示例

請(qǐng)求示例

GET /openapi/apm?description=APMtest&instanceId=apm-cn-i7m2fuae****&output=es-cn-i7m2fsfhc001x****&page=1&size=10 HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json

正常返回示例

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "080D3399-76CF-519D-A540-2C44BC056EB7",
  "Headers" : {
    "X-Total-Count" : 1
  },
  "Result" : [ {
    "createdAt" : "2021-11-16T07:15:51.967Z",
    "deployedReplica" : 1,
    "description" : "APMtest",
    "instanceId" : "apm-cn-i7m2fuae****",
    "nodeAmount" : 1,
    "outputES" : "es-cn-i7m2fsfhc001x****",
    "outputESUserName" : "elastic",
    "ownerId" : "133071096032****",
    "paymentType" : "postpaid",
    "region" : "cn-hangzhou",
    "replica" : 1,
    "resourceSpec" : "C1M2",
    "status" : "active",
    "version" : "7.10.2",
    "vpcId" : "vpc-bp1530vdhqkamm9s0****",
    "vsArea" : "cn-hangzhou-i",
    "vswitchId" : "vsw-bp1j1mql6r9g5vfb4****"
  } ]
}

錯(cuò)誤碼

訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。