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!
创建样书以执行非 CRUD 操作
样本通过计算 Citrix ADC 实例上的必要配置对象来管理 Citrix ADC 配置。每次创建或更新 ConfigPack 时,这些对象都会从实例中添加、更新或删除。这是当您指定“所需的状态”时的情况。
但是,某些 Citrix ADC 配置对象支持除创建、更新或删除(CRUD 操作)以外的一些操作。例如,负载均衡器对象 (lbvserver
) 或 Citrix ADC 功能对象 (nsfeature
) 可以支持 “启用” 或 “禁用” 操作。同样,Citrix ADC certkeys
支持 “链接” 和 “取消链接” 操作,以将证书链接或取消链接到另一个证书。对 Citrix ADC 对象的这些操作称为非 CRUD 操作。本节介绍如何使用样本对支持它们的配置对象执行非 CRUD 操作。
注意:
配置对象之间的绑定(例如,绑定
certkey
到lbvserver
)不被视为非 CRUD 操作。这是因为 NITRO 绑定本身以配置对象的形式表示。创建和删除这些对象与任何其他 Citrix ADC 配置对象一样。
支持非 CRUD 操作
在组件中添加了一个名为 “元属性” 的新结构,与 “属性” 结构相同的级别。此结构当前支持的唯一属性称为 “action” 此属性可以采用该配置对象支持的 “启用” 或 “禁用” 等值。
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” 是指您在导入样本部分中指定的命名空间 netscaler.nitro.config 和版本 ** 10.5 的前缀。lbvserver
是此命名空间中的 NITRO 资源。作为隐式操作 lbvserver
,首先由样书创建。然后对其执行 “启用” 操作。
元属性中指定的操作仅在创建 ConfigPack 期间对配置对象执行。对配置包的更新不执行非 CRUD 操作。
**注
意**操作属性的值不能是动态评估的样本表达式。
共享
共享
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix 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 Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.