From fc398d5b14aafde65a21e3cbb0c2daefacb74388 Mon Sep 17 00:00:00 2001 From: Rajesh Pirati Date: Mon, 16 Jun 2025 17:45:46 +0530 Subject: [PATCH] Fixed documentation on access management templates Signed-off-by: Rajesh Pirati --- .../docs/d/iam_policy_templates.html.markdown | 6 +-- ...m_action_control_assignment.html.markdown} | 40 +++++-------------- ...wn => iam_policy_assignment.html.markdown} | 2 +- 3 files changed, 11 insertions(+), 37 deletions(-) rename website/docs/r/{action_control_assignment.html.markdown => iam_action_control_assignment.html.markdown} (79%) rename website/docs/r/{policy_assignment.html.markdown => iam_policy_assignment.html.markdown} (99%) diff --git a/website/docs/d/iam_policy_templates.html.markdown b/website/docs/d/iam_policy_templates.html.markdown index dca1c3a169..8b514fcdeb 100644 --- a/website/docs/d/iam_policy_templates.html.markdown +++ b/website/docs/d/iam_policy_templates.html.markdown @@ -14,16 +14,12 @@ Provides a read-only data source to retrieve information about policy_templates ```hcl data "ibm_iam_policy_template" "policy_template" { - account_id = "enterpriseAccount" + } ``` ## Argument Reference -You can specify the following arguments for this data source. - -* `account_id` - (Required) Enterprise account ID. - ## Attribute Reference After your data source is created, you can read values from the following attributes. diff --git a/website/docs/r/action_control_assignment.html.markdown b/website/docs/r/iam_action_control_assignment.html.markdown similarity index 79% rename from website/docs/r/action_control_assignment.html.markdown rename to website/docs/r/iam_action_control_assignment.html.markdown index b310c3c41c..a9a98a2355 100644 --- a/website/docs/r/action_control_assignment.html.markdown +++ b/website/docs/r/iam_action_control_assignment.html.markdown @@ -3,7 +3,7 @@ layout: "ibm" page_title: "IBM : ibm_iam_action_control_assignment" description: |- Manages action_control_assignment. -subcategory: "IAM ActionControl Management" +subcategory: "Identity & Access Management (IAM)" --- # ibm_iam_action_control_assignment @@ -32,52 +32,38 @@ resource "ibm_iam_action_control_template_version" "template_version" { resource "ibm_iam_action_control_assignment" "action_control_assignment" { target ={ - type = "Account" + type = "Account" or "Account Group" or "Enterprise" id = "" } templates{ - id = ibm_iam_action_control_template.action_template.action_control_template_id + id = ibm_iam_action_control_template.action_template.action_control_template_id version = ibm_iam_action_control_template.action_template.version } - template_version=ibm_iam_action_control_template_version.template_version.version } resource "ibm_iam_action_control_assignment" "action_control_assignment" { target ={ - type = "Account Group" - id = "" + type = "Account" # or "Account Group" or "Enterprise" + id = "" } templates{ - id = ibm_iam_action_control_template.action_template.template_id + id = ibm_iam_action_control_template.action_template.action_control_template_id version = ibm_iam_action_control_template.action_template.version } - template_version=ibm_iam_action_control_template_version.template_version.version -} -resource "ibm_iam_action_control_assignment" "action_control_assignment" { - target ={ - type = "Enterprise" - id = "" - } - - templates{ - id = ibm_iam_action_control_template.action_template.template_id - version = ibm_iam_action_control_template.action_template.version - } + # Optional: Use this during update to assign a specific template version template_version=ibm_iam_action_control_template_version.template_version.version } + ``` **Note**: Above configuration is to create action control template versions and assign to a target -enterprise account. Update this parameter(***template_version***) and terraform apply again to update the assignment +enterprise account. Add this parameter(***template_version***) and terraform apply again to update the assignment ## Argument Reference You can specify the following arguments for this resource. - -* `accept_language` - (Optional, String) Language code for translations* `default` - English* `de` - German (Standard)* `en` - English* `es` - Spanish (Spain)* `fr` - French (Standard)* `it` - Italian (Standard)* `ja` - Japanese* `ko` - Korean* `pt-br` - Portuguese (Brazil)* `zh-cn` - Chinese (Simplified, PRC)* `zh-tw` - (Chinese, Taiwan). - * Constraints: The default value is `default`. The minimum length is `1` character. * `templates` - (Required, List) The set of properties required for a ActionControl assignment. Nested schema for **templates**: * `id` - (Required, String) ID of the template. @@ -90,8 +76,6 @@ Nested schema for **target**: * Constraints: The maximum length is `32` characters. The minimum length is `1` character. The value must match regular expression `/^[A-Za-z0-9-]*$/`. * `type` - (Required, String) Assignment target type. * Constraints: Allowable values are: `Account`, `Account Group` and `Enterprise`. The maximum length is `30` characters. The minimum length is `1` character. -* `version` - (Required, String) specify version of response body format. - * Constraints: Allowable values are: `1.0`. The minimum length is `1` character. ## Timeouts section @@ -145,12 +129,6 @@ Nested schema for **resources**: * Constraints: The maximum length is `2` characters. The minimum length is `1` character. The value must match regular expression `/^[0-9]*$/`. * `status` - (String) The action_control assignment status. * Constraints: Allowable values are: `in_progress`, `succeeded`, `succeed_with_errors`, `failed`. -* `subject` - (List) subject details of access type assignment. -Nested schema for **subject**: - * `id` - (String) - * Constraints: The minimum length is `1` character. The value must match regular expression `/^((IBMid)|(iam-ServiceId)|(AccessGroupId)|(iam-Profile)|(SL)|([a-zA-Z0-9]{3,10}))-/`. - * `type` - (String) - * Constraints: Allowable values are: `iam_id`, `access_group_id`. The minimum length is `1` character. * `template` - (List) action_control template details. Nested schema for **template**: * `id` - (String) action_control template id. diff --git a/website/docs/r/policy_assignment.html.markdown b/website/docs/r/iam_policy_assignment.html.markdown similarity index 99% rename from website/docs/r/policy_assignment.html.markdown rename to website/docs/r/iam_policy_assignment.html.markdown index f65e3c172b..e0776ec0ee 100644 --- a/website/docs/r/policy_assignment.html.markdown +++ b/website/docs/r/iam_policy_assignment.html.markdown @@ -3,7 +3,7 @@ layout: "ibm" page_title: "IBM : ibm_policy_assignment" description: |- Manages policy_assignment. -subcategory: "IAM Policy Management" +subcategory: "Identity & Access Management (IAM)" --- # ibm_policy_assignment