netapp.storagegrid.na_sg_grid_account 模块 – 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_account。
netapp.storagegrid 20.6.0 中新增
概要
- 在 NetApp StorageGRID 上创建、更新、删除租户账户。 
参数
| 参数 | 注释 | 
|---|---|
| 租户的账户 ID。 可用于修改或删除操作。 | |
| 允许租户使用平台服务功能,例如 CloudMirror。 选项 
 | |
| 允许租户使用 S3 SelectObjectContent API 来筛选和检索对象数据。 选项 
 | |
| StorageGRID 管理节点 REST API 的 URL。 | |
| API 请求的授权令牌 | |
| 租户账户的其他标识信息。 | |
| 租户是否可以登录到 StorageGRID 租户门户。 选项 
 | |
| 租户的名称。 创建或修改操作必需。 | |
| 租户账户的根密码。 需要根权限。 | |
| 租户使用的对象存储协议。 创建操作必需。 选项 
 | |
| 要应用于租户的配额,以 quota_size_unit 指定。 如果您打算不限制,请指定  默认值:  | |
| 用于解释 size 参数的单位。 选项 
 | |
| 现有联合组,用于为租户提供初始根访问权限。 必须以  | |
| 指定的账户是否应该存在。 所有操作必需。 选项 
 | |
| 选择何时更新密码。 当设置为  当设置为  选项 
 | |
| 租户账户是否应配置自己的身份源。 选项 
 | |
| 是否应验证 https 证书? 选项 
 | 
备注
注意
- 前缀为 - na_sg的模块旨在管理 NetApp StorageGRID。
示例
- name: create a tenant account
  netapp.storagegrid.na_sg_grid_account:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    name: storagegrid-tenant-1
    protocol: s3
    management: true
    use_own_identity_source: false
    allow_platform_services: false
    password: "tenant-password"
    quota_size: 0
- name: update a tenant account
  netapp.storagegrid.na_sg_grid_account:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    name: storagegrid-tenant-1
    protocol: s3
    management: true
    use_own_identity_source: false
    allow_platform_services: true
    password: "tenant-password"
    quota_size: 10240
- name: delete a tenant account
  netapp.storagegrid.na_sg_grid_account:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: absent
    name: storagegrid-tenant-1
    protocol: s3
返回值
常见的返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 返回有关 StorageGRID 租户账户的信息。 已返回: 成功 示例:  | 
