cisco.mso.mso_schema_template_service_graph 模块 – 管理模式模板中的服务图
注意
此模块是 cisco.mso 集合(版本 2.9.0)的一部分。
如果您正在使用 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install cisco.mso
。您需要其他要求才能使用此模块,有关详细信息,请参阅要求。
要在剧本中使用它,请指定:cisco.mso.mso_schema_template_service_graph
。
概要
在 Cisco ACI 多站点上管理模式模板中的服务图。
要求
在执行此模块的主机上需要以下要求。
多站点编排器 v2.1 或更新版本
参数
参数 |
注释 |
---|---|
服务图的描述。 默认值: |
|
在 MSO Web 界面上显示的名称。 |
|
在第一个节点后应用的过滤器。 选项
|
|
ACI 多站点编排器主机的 IP 地址或主机名。 如果未在任务中指定该值,则将使用环境变量 |
|
用于身份验证的登录域名。 默认值为 Local。 如果未在任务中指定该值,则将使用环境变量 当使用 HTTPAPI 连接插件时,如果未指定此属性,则将使用清单变量 |
|
影响此 MSO 模块的输出。
如果未在任务中指定该值,则将使用环境变量 选项
|
|
用于身份验证的密码。 如果未在任务中指定该值,则将使用环境变量 |
|
用于 REST 连接的端口号。 默认值取决于参数 `use_ssl`。 如果未在任务中指定该值,则将使用环境变量 |
|
模式的名称。 |
|
要管理的服务图的名称。 |
|
要与服务图关联的节点类型列表。 |
|
节点类型 |
|
使用 使用 选项
|
|
模板的名称。 |
|
套接字级别超时(以秒为单位)。 默认值为 30 秒。 如果未在任务中指定该值,则将使用环境变量 |
|
如果为 如果未在任务中指定该值,则将使用环境变量 默认值为 选项
|
|
如果为 如果未在任务中指定该值,则将使用环境变量 当使用 HTTPAPI 连接插件时,如果未指定此属性,将使用清单变量 当使用 HTTPAPI 连接插件(mso 或 nd)时,默认值为 选项
|
|
用于身份验证的用户名。 如果任务中未指定该值,则将使用环境变量 |
|
如果为 仅当在个人控制的站点上使用自签名证书时,才应将其设置为 如果任务中未指定该值,则将使用环境变量 默认值为 选项
|
说明
注意
此模块旨在支持 Multi Site Orchestrator v2.1 或更高版本。某些或全部功能可能无法在早期版本上运行。
示例
- name: Add a new Service Graph
cisco.mso.mso_schema_template_service_graph:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
template: Template1
service_graph: graph1
service_nodes:
- type: firewall
- type: other
- type: load-balancer
state: present
- name: Remove a Service Graph
cisco.mso.mso_schema_template_service_graph:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
template: Template1
service_graph: graph1
state: absent
- name: Query a specific Service Graph
cisco.mso.mso_schema_template_service_graph:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
template: Template1
service_graph: graph1
state: query
register: query_result
- name: Query all Service Graphs
cisco.mso.mso_schema_template_service_graph:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
template: Template1
state: query
register: query_result