netapp.storagegrid.na_sg_grid_info 模块 – NetApp StorageGRID 网格信息收集器。

注意

此模块是 netapp.storagegrid 集合 (版本 21.13.0) 的一部分。

如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install netapp.storagegrid

要在 playbook 中使用它,请指定: netapp.storagegrid.na_sg_grid_info

netapp.storagegrid 20.11.0 中的新增功能

摘要

  • 此模块允许您收集有关 StorageGRID 网格配置的各种信息。

参数

参数

注释

api_url

字符串 / 必填

StorageGRID 管理节点 REST API 的 URL。

auth_token

字符串 / 必填

API 请求的授权令牌

gather_subset

列表 / 元素=字符串

提供此参数时,它会将收集的信息限制为给定的子集。

可以提供信息名称或 REST API。

此参数的可能值为

grid_accounts_infogrid/accounts

grid_alarms_infogrid/alarms

grid_audit_infogrid/audit

grid_compliance_global_infogrid/compliance-global

grid_config_infogrid/config

grid_config_management_infogrid/config/management

grid_config_product_version_infogrid/config/product-version

grid_deactivated_features_infogrid/deactivated-features

grid_dns_servers_infogrid/dns-servers

grid_domain_names_infogrid/domain-names

grid_ec_profiles_infogrid/ec-profiles

grid_expansion_infogrid/expansion

grid_expansion_nodes_infogrid/expansion/nodes

grid_expansion_sites_infogrid/expansion/sites

grid_grid_networks_infogrid/grid-networks

grid_groups_infogrid/groups

grid_health_infogrid/health

grid_health_topology_infogrid/health/topology

grid_identity_source_infogrid/identity-source

grid_ilm_criteria_infogrid/ilm-criteria

grid_ilm_policies_infogrid/ilm-policies

grid_ilm_rules_infogrid/ilm-rules

grid_license_infogrid/license

grid_management_certificate_infogrid/management-certificate

grid_ntp_servers_infogrid/ntp-servers

grid_recovery_available_nodes_infogrid/recovery/available-nodes

grid_recovery_infogrid/recovery

grid_regions_infogrid/regions

grid_schemes_infogrid/schemes

grid_snmp_infogrid/snmp

grid_storage_api_certificate_infogrid/storage-api-certificate

grid_untrusted_client_network_infogrid/untrusted-client-network

grid_users_infogrid/users

grid_users_root_infogrid/users/root

versions_infoversions

可以指定一个值列表以包含更大的子集。

默认值: ["all"]

parameters

字典

允许传入任何 REST 选项。

validate_certs

布尔值

是否应该验证 https 证书?

选项

  • false

  • true ← (默认)

注释

注意

  • na_sg 为前缀的模块用于管理 NetApp StorageGRID。

示例

- name: Gather StorageGRID Grid info
  netapp.storagegrid.na_sg_grid_info:
    api_url: "https://1.2.3.4/"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
  register: sg_grid_info

- name: Gather StorageGRID Grid info for grid/accounts and grid/config subsets
  netapp.storagegrid.na_sg_grid_info:
    api_url: "https://1.2.3.4/"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    gather_subset:
      - grid_accounts_info
      - grid/config
  register: sg_grid_info

- name: Gather StorageGRID Grid info for all subsets
  netapp.storagegrid.na_sg_grid_info:
    api_url: "https://1.2.3.4/"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    gather_subset:
      - all
  register: sg_grid_info

- name: Gather StorageGRID Grid info for grid/accounts and grid/users subsets, limit to 5 results for each subset
  netapp.storagegrid.na_sg_grid_info:
    api_url: "https://1.2.3.4/"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    gather_subset:
      - grid/accounts
      - grid/users
    parameters:
      limit: 5
  register: sg_grid_info

返回值

常见的返回值已在此处记录,以下是此模块特有的字段

描述

sg_info

字典

返回有关 StorageGRID 网格配置的各种信息。

返回值:始终

示例: {"grid/accounts": {"...": null}, "grid/alarms": {"...": null}, "grid/audit": {"...": null}, "grid/compliance-global": {"...": null}, "grid/config": {"...": null}, "grid/config/management": {"...": null}, "grid/config/product-version": {"...": null}, "grid/deactivated-features": {"...": null}, "grid/dns-servers": {"...": null}, "grid/domain-names": {"...": null}, "grid/ec-profiles": {"...": null}, "grid/expansion": {"...": null}, "grid/expansion/nodes": {"...": null}, "grid/expansion/sites": {"...": null}, "grid/groups": {"...": null}, "grid/health": {"...": null}, "grid/health/topology": {"...": null}, "grid/identity-source": {"...": null}, "grid/ilm-criteria": {"...": null}, "grid/ilm-policies": {"...": null}, "grid/ilm-rules": {"...": null}, "grid/license": {"...": null}, "grid/management-certificate": {"...": null}, "grid/networks": {"...": null}, "grid/ntp-servers": {"...": null}, "grid/recovery": {"...": null}, "grid/recovery/available-nodes": {"...": null}, "grid/regions": {"...": null}, "grid/schemes": {"...": null}, "grid/snmp": {"...": null}, "grid/storage-api-certificate": {"...": null}, "grid/untrusted-client-network": {"...": null}, "grid/users": {"...": null}, "grid/users/root": {"...": null}, "grid/versions": {"...": null}}

作者

  • NetApp Ansible 团队 (@jasonl4)