GetAgentConfig - 获取组件配置

更新时间:
复制 MD 格式

获取组件配置

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v1/am/agent/getAgentConfig HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

agentId

string

是

要获取配置的组件 ID

74a86327-3170-412c-8e67-da3389ec56a9

configName

string

否

配置名称

配置-x

configId

string

否

要获取的组件配置 ID

4d5ecf02-3d01-11f0-8c90-00163e1029af

current

string

否

页码分页时存在该字段,表示当前页

1

pageSize

string

否

每页返回数目,默认 pageSize=10

10

region

string

否

地域 ID。

cn-hangzhou

返回参数

名称

类型

描述

示例值

object

Schema of Response

code

string

状态码

Success

data

array<object>

返回数据。

array<object>

返回数据。

configId

string

组件配置 ID

4d5ecf02-3d01-11f0-8c90-00163e1029af

configName

string

配置名称

配置-x

configType

string

配置类型

Custom

content

string

聊天内容文本

copilot回复的具体内容

createdAt

string

创建时间。

2026-07-10T17:57:10

resource

object

应用该配置的资源信息

cluster

integer

应用该配置的集群数量

0

node

integer

应用该配置的节点数量

0

updatedAt

string

更新时间。

2026-07-10T17:57:10

message

string

错误信息

  • 如果 code == Success,则本字段为空;

  • 否则本字段包含请求错误信息。

SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom

requestId

string

Id of the request

2D693121-C925-5154-8DF6-C09A8B369822

total

integer

返回记录数量

10

示例

正常返回示例

JSON格式

{
  "code": "Success",
  "data": [
    {
      "configId": "4d5ecf02-3d01-11f0-8c90-00163e1029af",
      "configName": "配置-x",
      "configType": "Custom",
      "content": "copilot回复的具体内容",
      "createdAt": "2026-07-10T17:57:10",
      "resource": {
        "cluster": 0,
        "node": 0
      },
      "updatedAt": "2026-07-10T17:57:10"
    }
  ],
  "message": "SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom",
  "requestId": "2D693121-C925-5154-8DF6-C09A8B369822",
  "total": 10
}

错误码

HTTP status code

错误码

错误信息

描述

400 Sysom.ServerError Server error, please correct the code according to the error message. %s. 服务端错误,请根据错误提示信息修正代码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。