Create a StyleBook to perform non-CRUD operations 编辑
Create a StyleBook to perform non-CRUD operations
StyleBooks manage Citrix ADC configurations by computing the necessary configuration objects on the Citrix ADC instances. These objects are added, updated, or removed from the instance each time you create or update a ConfigPack. That is when you specify the “desired state.”
However, some Citrix ADC configuration objects support a few operations other than create, update, or delete (CRUD operations). For example, a load balancer object (lbvserver
) or a Citrix ADC feature object (nsfeature
) can support the “enable” or “disable” operation. Similarly, Citrix ADC certkeys
support the “link” and “unlink” operation to link or unlink a certificate to another certificate. These operations on Citrix ADC objects are called as non-CRUD operations. This section describes how to perform non-CRUD operations on configuration objects that support them using StyleBooks.
Note
The binding between configuration objects (for example, bind a
certkey
to albvserver
) is not considered a non-CRUD operation. This is because NITRO bindings are represented as configuration objects in their own right. These objects are created and deleted like any other Citrix ADC configuration object.
Supporting the non-CRUD operations
A construct called meta-properties
is added in the component at the same level as the properties
construct. The supported attribute supported in this construct is called action
. This attribute can take values like enable
, disable
, link
, unlink
, import
, export
, create
, archive
, and apply
.
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-->
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论