objectscale_iam_role (Data Source)
This data source retrieves an Dell ObjectScale IAM role by name/ID and gives its key attributes.
Example Usage
/*
Copyright (c) 2025 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.
*/
data "objectscale_iam_role" "all" {
namespace = "ns1"
role_name = "role_Test1"
}
output "objectscale_iam_role_all" {
value = data.objectscale_iam_role.all
}
Schema
Required
namespace(String) Namespace to query IAM roles from.
Optional
role_name(String) Filter roles by name.
Read-Only
id(String) Internal ID for this data source.roles(Attributes List) List of IAM roles matching the provided filters. (see below for nested schema)
Nested Schema for roles
Read-Only:
arn(String) IAM role ARN.assume_role_policy(String) The trust policy document defining who can assume the role.create_date(String) Timestamp when the role was created.description(String) Role description.max_session_duration(Number) Maximum session duration allowed for the IAM role.path(String) IAM role path.permissions_boundary(Attributes) Permissions boundary applied to this role. (see below for nested schema)role_id(String) Unique ObjectScale IAM role ID (RoleId).role_name(String) IAM role name.tags(Attributes List) List of tags assigned to the role. (see below for nested schema)
Nested Schema for roles.permissions_boundary
Read-Only:
permissions_boundary_arn(String) ARN of the permissions boundary policy.permissions_boundary_type(String) Type of permissions boundary (always ‘Policy’).
Nested Schema for roles.tags
Read-Only:
key(String) Tag key.value(String) Tag value.