dellemc.openmanage.ome_smart_fabric_uplink_info 模块 – 在 OpenManage Enterprise Modular 上检索 Fabric 上行链路的详细信息。
注意
此模块是 dellemc.openmanage 集合(版本 9.9.0)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install dellemc.openmanage。您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。
要在 Playbook 中使用它,请指定:dellemc.openmanage.ome_smart_fabric_uplink_info。
dellemc.openmanage 7.1.0 中的新增功能
概要
- 此模块检索 OpenManage Enterprise Modular 上 Fabric 上行链路的详细信息。 
要求
执行此模块的主机需要满足以下要求。
- python >= 3.9.6 
参数
| 参数 | 注释 | 
|---|---|
| 包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 | |
| Fabric 的唯一 ID。 fabric_id 与 fabric_name 互斥。 | |
| Fabric 的唯一名称。 fabric_name 与 fabric_id 互斥。 | |
| OpenManage Enterprise Modular IP 地址或主机名。 | |
| OpenManage Enterprise Modular HTTPS 端口。 默认值:  | |
| 套接字级别的超时时间(以秒为单位)。 默认值:  | |
| 上行链路的唯一 ID。 uplink_id 与 uplink_name 互斥。 需要 fabric_id 或 fabric_name 以及 uplink_id。 | |
| 上行链路的唯一名称。 uplink_name 与 uplink_id 互斥。 需要 fabric_id 或 fabric_name 以及 uplink_name。 | |
| 如果为  仅在个人控制的站点上(使用自签名证书)配置  在集合版本  选项 
 | |
| 身份验证令牌。 如果未提供 x_auth_token,则使用环境变量  示例:export OME_X_AUTH_TOKEN=x_auth_token | 
注释
注意
- 从可以直接访问 Dell OpenManage Enterprise Modular 的系统运行此模块。 
- 此模块支持 - check_mode。
示例
---
- name: Retrieve all fabric uplink information using fabric_id.
  dellemc.openmanage.ome_smart_fabric_uplink_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2"
- name: Retrieve all fabric uplink information using fabric_name.
  dellemc.openmanage.ome_smart_fabric_uplink_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    fabric_name: "f1"
- name: Retrieve specific fabric information using uplink_id.
  dellemc.openmanage.ome_smart_fabric_uplink_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2"
    uplink_id: "1ad54420-b145-49a1-9779-21a579ef6f2d"
- name: Retrieve specific fabric information using uplink_name.
  dellemc.openmanage.ome_smart_fabric_uplink_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2"
    uplink_name: "u1"
返回值
通用返回值记录在此处此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| HTTP 错误的详细信息。 返回值:发生 HTTP 错误时 示例:  | |
| 结构上行链路信息检索状态。 返回: 始终 示例:  | |
| 有关结构上行链路的信息。 返回: 成功时 示例:  | 
