ListConfigTemplates - 获取配置模板列表

调用ListConfigTemplates接口获取配置模板列表。

调试

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

调试

授权信息

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

请求语法

GET /pop/v5/config_template HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

CurrentPage

integer

页码,从 1 开始计数。

1

PageSize

integer

页大小。

10

Id

integer

配置模板 ID。

3d84efaf-37d9-49fb-a3a8-b38d5c******

Name

string

配置模板名称。

config-tmpl-1

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

4D9F-DR94-FD****************

Code

integer

接口状态或 POP 错误码。

200

Message

string

附加信息。

success

Data

object

查询结果。

CurrentPage

integer

当前分页号。

1

PageSize

integer

分页大小。

10

TotalSize

integer

配置模板总数。

100

Result

array<object>

配置模板列表。

object

Id

string

配置模板 ID。

3d84efaf-37d9-49fb-a3a8-b38d5c2b460c

Name

string

配置模板名称。

config-tmpl-1

Format

string

模板数据格式。

JSON

Description

string

模板描述。

测试配置模板

Content

string

模板内容。

{"name":"William"}

GmtCreate

integer

创建时间。

1638171689626

GmtModified

integer

更新时间。

1638171689626

示例

正常返回示例

JSON格式

{
  "RequestId": "4D9F-DR94-FD****************",
  "Code": 200,
  "Message": "success",
  "Data": {
    "CurrentPage": 1,
    "PageSize": 10,
    "TotalSize": 100,
    "Result": [
      {
        "Id": "3d84efaf-37d9-49fb-a3a8-b38d5c2b460c",
        "Name": "config-tmpl-1",
        "Format": "JSON",
        "Description": "测试配置模板",
        "Content": "{\"name\":\"William\"}",
        "GmtCreate": 1638171689626,
        "GmtModified": 1638171689626
      }
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

500 Edas.errorcode.PermissionDenied.message You are not authorized to perform the operation.

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

变更历史

更多信息,参考变更详情