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のコンポーネントセクションの主な用途は、Nitroの組み込みタイプ、または実際のコンフィギュレーションオブジェクトを作成する別のStyleBookを介して、コンフィギュレーションオブジェクトを生成することです。ヘルパーコンポーネントは、それ自体ではコンフィギュレーションオブジェクトを構築しません。ヘルパーコンポーネントは、パラメータオブジェクト、他のコンポーネントのプロパティ、または他のコンポーネントの出力などの他のセクションからの入力を受け取り、それらを別の形式に変換します。これは、後で他のコンポーネントによって実際のコンフィギュレーションオブジェクトを生成するために使用できます。ヘルパーコンポーネントには、オブジェクトタイプ、またはコンポーネントセクションを含まない別のStyleBookの2種類があります。
次の例は、NetScalerインスタンス上でモニター (lb-mon-comp) を備えたロードバランシングサーバーを作成するために使用されるStyleBookのスニペットを示しています。
parameters:
-
name: appname
type: string
-
name: ips
type: ipaddress[]
-
name: vip
type: ipaddress
components:
-
name: help-comp
type: cmtypes::server-ip-port-params
repeat:
repeat-list: $parameters.ips
repeat-item: server-ip
properties:
ip: $server-ip
port: 80
-
name: lb-mon-comp
type: stlb::lb-mon
properties:
lb-appname: $parameters.appname
lb-virtual-ip: $parameters.vip
lb-virtual-port: 80
lb-service-type: HTTP
svc-service-type: HTTP
svc-servers: $components.help-comp.properties
<!--NeedCopy-->
パラメータセクションでは、アプリケーションの名前とロードバランシングサーバーのIPアドレスを入力できます。lb-mon-compコンポーネントセクションでは、lb-mon StyleBookのsvc-serversパラメータは、各項目に2つのサブパラメータ (ipとport) を持つオブジェクトのリストを想定しています。
ただし、このStyleBookのパラメータセクションは、$parameters.ipsを介してサーバーIPのみを受け入れます。StyleBookは、すべてのサーバーがポート80で実行されていると想定しています。lb-mon StyleBookを使用してロードバランシングコンフィギュレーションを作成するには、$parameters.ipsをオブジェクトのリストに変換する必要があります。これは、上記の例のヘルパーコンポーネントであるhelp-compを使用して実現されます。help-compコンポーネントは、server-ip-port-params StyleBookタイプです。このStyleBookにはコンポーネントがありません。その結果、コンフィギュレーションオブジェクトは作成されません。help-compは、$parameters.ipsに対して繰り返しリストを作成し、$parameters.ipsの各項目に対してipとport (静的な80に設定されています) で構成されるオブジェクトを構築します。したがって、help-compはIPアドレスのリストを、後でlb-mon-compでsvc-serversプロパティを割り当てるために使用できるオブジェクトのリストに変換します。help-compの結果は、lb-mon-compのsvc-serversプロパティに割り当てられます。
共有
共有
この記事の概要
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.