cisco.aci.aci_epg_useg_attribute_simple_statement 模块 – 管理 EPG useg 属性简单语句 (fv:DnsAttr, fv:IdGroupAttr, fv:IpAttr, fv:MacAttr 和 fv:VmAttr)
注意
此模块是 cisco.aci 集合(版本 2.10.1)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.aci。
要在 playbook 中使用它,请指定:cisco.aci.aci_epg_useg_attribute_simple_statement。
概要
- 管理 EPG useg 属性简单语句 
参数
| 参数 | 注释 | 
|---|---|
| 用于注释对象的用户定义字符串。 如果任务中未指定该值,则将改用环境变量  如果任务中未指定该值且环境变量  默认值:  | |
| 现有应用程序网络配置文件的名称。 | |
| vmware 标签类别或 vmware 自定义属性的名称。 | |
| 附加到用于基于签名的身份验证的 APIC AAA 用户的 X.509 证书名称。 如果提供了  如果为  如果任务中未指定该值,则将改用环境变量  | |
| 现有端点组的名称。 | |
| Ansible 控制主机可解析的 APIC 的 IP 地址或主机名。 如果任务中未指定该值,则将改用环境变量  | |
| EPG useg 属性的名称。 | |
| EPG useg 属性的运算符。 选择 
 | |
| 影响此 ACI 模块的输出。 
 
 
 如果任务中未指定该值,则将改用环境变量  选择 
 | |
| 用于转储模块生成的 ACI JSON 配置对象的文件路径。 如果任务中未指定该值,则将改用环境变量  | |
| 父块语句的列表。 所提供列表的顺序很重要,假设列表为 [“A”, “B”, “C”]。 块语句“A”将是“B”的父级 块语句“A”将是默认块语句的子级。 父块语句的最大数量为 3。 | |
| 用于身份验证的密码。 此选项与  如果任务中未指定该值,则将改用环境变量  | |
| 用于 REST 连接的端口号。 默认值取决于参数  如果任务中未指定该值,则将使用环境变量  | |
| 用于基于签名的身份验证的 PEM 格式的私钥文件或私钥内容。 此值也会影响所使用的默认  此选项与  如果任务中未指定该值,则将使用环境变量  | |
| 使用  使用  选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为  警告 - 这会导致先前的返回值为空。 不会检查对象的先前状态,并且 POST 更新将包含所有属性。 选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为  警告 - 这会导致当前的返回值设置为建议值。 在单个任务中,当前对象(包括默认值)将无法验证。 选择 
 | |
| 现有租户的名称。 | |
| 套接字级别的超时时间,以秒为单位。 如果任务中未指定该值,则将使用环境变量  默认值为 30。 | |
| EPG useg 属性的类型 选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为 true。 选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  当连接为本地连接时,默认值为 true。 选择 
 | |
| 是否对 IP 使用 EPG 子网定义。 选择 
 | |
| 用于身份验证的用户名。 如果任务中未指定该值,则将使用环境变量  默认值为 admin。 | |
| 如果为  仅当在个人控制的站点上使用自签名证书时,才应将其设置为  如果任务中未指定该值,则将使用环境变量  默认值为 true。 选择 
 | |
| EPG useg 属性的值。 | 
注释
注意
- 在使用此模块之前,必须存在所使用的 *tenant*、*ap* 和 *epg*。可以使用 cisco.aci.aci_tenant、cisco.aci.aci_ap 和 cisco.aci.aci_epg 模块来实现此目的。 
另请参阅
另请参阅
- cisco.aci.aci_tenant
- 管理租户 (fv:Tenant)。 
- cisco.aci.aci_ap
- 管理顶级应用程序配置文件 (AP) 对象 (fv:Ap)。 
- cisco.aci.aci_epg
- 管理端点组 (EPG) 对象 (fv:AEPg)。 
- APIC 管理信息模型参考
- 有关内部 APIC 类 fv:DnsAttr、fv:IdGroupAttr、fv:IpAttr、fv:MacAttr 和 fv:VmAttr 的更多信息。 
- Cisco ACI 指南
- 有关如何使用 Ansible 管理 ACI 基础设施的详细信息。 
- 开发 Cisco ACI 模块
- 有关如何编写自己的 Cisco ACI 模块以做出贡献的详细指南。 
示例
- name: Add a new vmtag useg attribute in default block statement
  cisco.aci.aci_epg_useg_attribute_simple_statement:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    name: vmtagprod
    type: vmtag
    category: Environment
    operator: equals
    value: Production
    state: present
  delegate_to: localhost
- name: Add a new vmtag useg attribute in nested block statement
  cisco.aci.aci_epg_useg_attribute_simple_statement:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    name: vmtagprod
    parent_block_statements:
      - block_a
      - block_b
    type: vmtag
    category: Environment
    operator: equals
    value: Production
    state: present
  delegate_to: localhost
- name: Query a specific vmtag useg attribute in default block statement
  cisco.aci.aci_epg_useg_attribute_simple_statement:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    name: vmtagprod
    type: vmtag
    state: query
  delegate_to: localhost
  register: query_result
- name: Query all vmtag useg attributes
  cisco.aci.aci_epg_useg_attribute_simple_statement:
    host: apic
    username: admin
    password: SomeSecretPassword
    state: query
    type: vmtag
  delegate_to: localhost
  register: query_result
- name: Remove an existing vmtag useg attribute from default block statement
  cisco.aci.aci_epg_useg_attribute_simple_statement:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    name: vmtagprod
    type: vmtag
    state: absent
  delegate_to: localhost
返回值
通用返回值记录在此处,以下是此模块特有的字段
| Key | 描述 | 
|---|---|
| 模块完成后,来自 APIC 的现有配置 返回: 成功 示例:  | |
| 从 APIC 返回的错误信息 返回: 失败 示例:  | |
| 用于请求的筛选字符串 返回: 失败或调试 示例:  | |
| 用于向 APIC 发送请求的 HTTP 方法 返回: 失败或调试 示例:  | |
| 模块启动之前,来自 APIC 的原始配置 返回: 信息 示例:  | |
| 从用户提供的参数组装的配置 返回: 信息 示例:  | |
| APIC REST API 返回的原始输出 (xml 或 json) 返回: 解析错误 示例:  | |
| 来自 APIC 的 HTTP 响应 返回: 失败或调试 示例:  | |
| 推送给 APIC 的实际/最小配置 返回: 信息 示例:  | |
| 来自 APIC 的 HTTP 状态 返回: 失败或调试 示例:  | |
| 用于向APIC发起请求的HTTP url 返回: 失败或调试 示例:  | 
