更新时间:2025-07-04 GMT+08:00
分享

查询预置模板列表

功能介绍

查询预置模板列表。

URI

GET https://{endpoint}/v1/rgc/predefined-templates

请求参数

响应参数

状态码:200

表1 响应Body参数

参数

参数类型

描述

templates

Array of PredefinedTemplate objects

预置模板信息。

表2 PredefinedTemplate

参数

参数类型

描述

template_name

String

模板名称。

template_description

String

模板描述。

template_category

String

模板类别

状态码:403

表3 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

request_id

String

请求唯一标识

encoded_authorization_message

String

加密的错误信息

details

Array of ForbiddenErrorDetail objects

跨服务调用无权限错误信息

表4 ForbiddenErrorDetail

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

请求示例

查询在RGC服务里预置的模板列表。

GET https://{endpoint}/v1/rgc/predefined-templates

响应示例

状态码:200

请求成功。

{
  "templates" : [ {
    "template_name" : "string",
    "template_description" : "string",
    "template_category" : "string"
  } ]
}

状态码

状态码

描述

200

请求成功。

403

请求无权限。

错误码

请参见错误码

相关文档