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)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
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.
这篇文章已经过机器翻译.放弃
Translation failed!
变量引用
在 components 中使用 repeat 和 repeat-item 构造来构建多个配置对象时,可以为 repeat-item 构造指定变量名称。然后,可以使用符号在该组件的属性或子组件中引用此变量 $<varname>
。注意,在组件中使用重复构造时没有使用 repeat-item 构造,可以使用名为 $repeat-item 的默认变量来访问迭代项。
示例:
components:
-
name: server-members-comp
type: ns::server
condition: $parameters.svc-server-domain-names
repeat: $parameters.svc-server-domain-names
repeat-item: server-name
properties:
name: $server-name + "-server"
domain: $server-name
components:
-
name: service-members-comp
type: ns::service
properties:
name: $server-name + "-service"
servername: $parent.properties.name
servicetype: $parameters.svc-service-type
port: $parameters.svc-server-port
在上面的示例中,为 repeat-item 构造指定了变量名称 server-name。此变量名称在同一组件的属性以及子组件中都引用 $<varname>
。
分享:
分享:
本文中包含的内容
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.