powerscale_user_mapping_rules (Data Source)

This datasource is used to query the User Mapping Rules from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. PowerScale User Mapping Rules combines user identities from different directory services into a single access token and then modifies it according to configured rules.

Example Usage

/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# PowerScale User Mapping Rules combines user identities from different directory services into a single access token and then modifies it according to configured rules.

# Returns a list of PowerScale User Mapping Rules based on names and zone filter block. 
data "powerscale_user_mapping_rules" "testUserMappingRules" {
  filter {
    # Optional Names filter for source user name or target user name.
    names = ["admin", "Guest"]
    # Optional Operators filter for user mapping rules.
    operators = ["append", "union"]
    # Optional zone filter. The zone to which the user mapping applies. Defaults to System.
    zone = "System"
  }
}

# Output value of above block by executing 'terraform output' command.
# The user can use the fetched information by the variable data.powerscale_user_mapping_rules.testUserMappingRules
output "powerscale_user_mapping_rules_filter" {
  value = data.powerscale_user_mapping_rules.testUserMappingRules
}


# Returns all of the PowerScale User Mapping Rules.
data "powerscale_user_mapping_rules" "all" {
}

# Output value of above block by executing 'terraform output' command
# The user can use the fetched information by the variable data.powerscale_user_mapping_rules.all
output "powerscale_user_mapping_rules_all" {
  value = data.powerscale_user_mapping_rules.all
}

Schema

Optional

Read-Only

  • id (String) User Mapping Rules ID.
  • user_mapping_rules (Attributes List) Specifies the list of user mapping rules. (see below for nested schema)
  • user_mapping_rules_parameters (Attributes) Specifies the parameters for user mapping rules. (see below for nested schema)

Nested Schema for filter

Optional:

  • names (Set of String) Names filter for source user name or target user name.
  • operators (Set of String) Operators filter for user mapping rules.
  • zone (String) The zone to which the user mapping applies. Defaults to System.

Nested Schema for user_mapping_rules

Read-Only:

  • operator (String) Specifies the operator to make rules on specified users or groups.
  • options (Attributes) Specifies the mapping options for this user mapping rule. (see below for nested schema)
  • source_user (Attributes) Specifies the source user information that the rule can be applied from. (see below for nested schema)
  • target_user (Attributes) Specifies the target user information that the rule can be applied to. (see below for nested schema)

Nested Schema for user_mapping_rules.options

Read-Only:

  • break (Boolean) If true, and the rule was applied successfully, stop processing further.
  • default_user (Attributes) Specifies the default user information that can be applied if the final credentials do not have valid UID and GID information. (see below for nested schema)
  • group (Boolean) If true, the primary GID and primary group SID should be copied to the existing credential.
  • groups (Boolean) If true, all additional identifiers should be copied to the existing credential.
  • user (Boolean) If true, the primary UID and primary user SID should be copied to the existing credential.

Nested Schema for user_mapping_rules.options.default_user

Read-Only:

  • domain (String) Specifies the domain of the user that is being mapped.
  • user (String) Specifies the name of the user that is being mapped.

Nested Schema for user_mapping_rules.source_user

Read-Only:

  • domain (String) Specifies the domain of the user that is being mapped.
  • user (String) Specifies the name of the user that is being mapped.

Nested Schema for user_mapping_rules.target_user

Read-Only:

  • domain (String) Specifies the domain of the user that is being mapped.
  • user (String) Specifies the name of the user that is being mapped.

Nested Schema for user_mapping_rules_parameters

Read-Only:

  • default_unix_user (Attributes) Specifies the default UNIX user information that can be applied if the final credentials do not have valid UID and GID information. (see below for nested schema)

Nested Schema for user_mapping_rules_parameters.default_unix_user

Read-Only:

  • domain (String) Specifies the domain of the user that is being mapped.
  • user (String) Specifies the name of the user that is being mapped.