-
-
-
创建 StyleBook 以执行非 CRUD 操作
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
创建 StyleBook 以执行非 CRUD 操作
StyleBook 通过计算 NetScaler 实例上所需的配置对象来管理 NetScaler 配置。每次创建或更新 ConfigPack 时,这些对象都会从实例中添加、更新或删除。这就是您指定“所需状态”的方式。
然而,某些 NetScaler 配置对象支持除创建、更新或删除 (CRUD) 操作之外的其他操作。例如,负载平衡器对象 (lbvserver) 或 NetScaler 功能对象 (nsfeature) 可以支持“启用”或“禁用”操作。同样,NetScaler 证书密钥 (certkeys) 支持“链接”和“取消链接”操作,以将证书链接或取消链接到另一个证书。NetScaler 对象上的这些操作称为非 CRUD 操作。本节介绍如何使用 StyleBook 对支持非 CRUD 操作的配置对象执行这些操作。
注意
配置对象之间的绑定(例如,将证书密钥绑定到 lbvserver)不被视为非 CRUD 操作。这是因为 Nitro 绑定本身就是配置对象。这些对象像任何其他 NetScaler 配置对象一样被创建和删除。
支持非 CRUD 操作
在组件中添加了一个名为“meta-properties”的新构造,其级别与“properties”构造相同。此构造目前唯一支持的属性名为“action”。此属性可以采用该配置对象支持的“enable”或“disable”等值。
components:
-
name: my-lbvserver-comp
type: ns::lbvserver
meta-properties
action: enable
properties:
name: $parameters.name
servicetype: HTTP
ipv46: $parameters.ip
port: 80
lbmethod: $parameters.lb-alg
<!--NeedCopy-->
在上述示例中,“my-lbvserver-comp”组件的类型为“ns::lbvserver”。“ns”是前缀,指代您在 import-stylebooks 部分中指定的命名空间 netscaler.nitro.config 和版本 10.5。“lbvserver”是此命名空间中的 NITRO 资源。作为隐式操作,lbvserver 首先由 StyleBook 创建;然后对其执行“enable”操作。
meta-properties 中指定的操作仅在创建 ConfigPack 期间对配置对象执行。对 ConfigPack 的更新不执行非 CRUD 操作。
注意
action 属性的值不能是动态评估的 StyleBook 表达式。
共享
共享
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.