华为乾坤-创建模板:请求参数

时间:2025-02-17 11:36:54

请求参数

表1 body参数列表

参数名称

必选

类型

参数值域

默认值

参数说明

参数示例

create-template

REFERENCE

详细请参见表2

创建模型

-

表2 create-template-input对象的参数列表

参数名称

类型

参数值域

默认值

参数说明

参数示例

huawei-nce-aoc-config-template:input

REFERENCE

详细请参见表3

-

-

表3 create-template-input-body对象的参数列表

参数名称

必选

类型

参数值域

默认值

参数说明

参数示例

template-name

string

0~128个字节。

-

配置模板名称

"test"

package-type

string

  • SND

  • GND

  • SSP

-

包模型

"GND"

template-content

string

0~2097152个字节。

-

模板内容

"\"{\\n \\\"traffic-engineering-uni-gnd:te\\\" : {\\n \\\"config-status\\\" : \\\"reserved\\\",\\n \\\"global\\\" : {\\n \\\"teAttributeEnable\\\" : false\\n },\\n \\\"affinity-define\\\" : {\\n \\\"description\\\" : \\\"23\\\",\\n \\\"affinity-mappings\\\" : {\\n \\\"affinity-mapping\\\" : [ {\\n \\\"attribute-name\\\" : \\\"12\\\",\\n \\\"bit-sequence\\\" : 12\\n } ]\\n }\\n }\\n },\\n \\\"dtls-server-uni-gnd:dtls-server\\\" : { },\\n \\\"bfd-session-uni-gnd:bfd-session\\\" : [ {\\n \\\"name\\\" : \\\"789\\\"\\n } ]\\n}\""

template-domain

string

0~128个字节。

-

模板所属域

"null"

template-description

string

0~1024个字节。

-

模板描述

"test"

create-type

string

  • preset

  • customize

-

模板来源类型

  • preset:预置模板。

  • customize:自定义创建新模板(包含创建新模板、复制MSP模板、导入模板)。

"customize"

template-format

string

  • ui

  • text

-

模板编辑格式

  • ui:配置为ui后,可以在界面呈现该模板。
  • text:配置为text后,界面不呈现该模板,只能通过北向接口操作。

"ui"

parent-template-id

string

0~128个字节。

-

该模板的父模板ID

-

support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002159168761.html