Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data assignment APIs #5306

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

Rajesh-Pirati
Copy link
Contributor

@Rajesh-Pirati Rajesh-Pirati commented Apr 25, 2024

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #2348

Output from acceptance testing:

=== RUN   TestAccIBMIAMPolicyAssignmentsDataSourceBasic
--- PASS: TestAccIBMIAMPolicyAssignmentsDataSourceBasic (16.26s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iampolicy	18.218s

...

Signed-off-by: Rajesh K Pirati <[email protected]>
@Rajesh-Pirati Rajesh-Pirati force-pushed the s2s-enterprise-support branch from d1643c5 to 88ed64d Compare April 25, 2024 11:06
@Rajesh-Pirati Rajesh-Pirati force-pushed the s2s-enterprise-support branch from 88ed64d to ce798d4 Compare April 25, 2024 12:14
@Rajesh-Pirati
Copy link
Contributor Author

Rajesh-Pirati commented Apr 26, 2024

terraform to display the assignment details

terraform show
# data.ibm_iam_policy_assignment.policy_assignment:
data "ibm_iam_policy_assignment" "policy_assignment" {
    account_id          = "xxxxx"
    assignment_id       = "policyAssignment-1181cc96-bd6b-44f6-a56b-c2a3907b2b8d"
    created_at          = "2023-07-19T23:42:37.472Z"
    created_by_id       = "IBMid-xxxxx"
    href                = "https://iam.test.cloud.ibm.com/v1/policy_assignments/policyAssignment-1181cc96-bd6b-44f6-a56b-c2a3907b2b8d"
    id                  = "policyAssignment-1181cc96-bd6b-44f6-a56b-c2a3907b2b8d"
    last_modified_at    = "2024-04-10T20:16:07.973Z"
    last_modified_by_id = "migration"
    options             = [
        {
            root = [
                {
                    assignment_id = "TemplateAssignment-fb668001-d73b-48d6-8f88-c0d326e1573c"
                    requester_id  = "IBMid-xxxx"
                    template      = []
                },
            ]
        },
    ]
    resources           = [
        {
            policy = [
                {
                    error_message    = []
                    resource_created = [
                        {
                            id = "5e5bf02b-45a8-47f8-a4ab-d4789f2beddc"
                        },
                    ]
                    status           = ""
                },
            ]
            target = {
                "id" = "xxxxx"
            }
        },
    ]
    subject             = {
        "id"   = "iam-Profile-9195d7e5-bad6-4365-9226-5093c61a8e9e"
        "type" = "iam_id"
    }
    target              = {
        "id"   = "xxxxx"
        "type" = "Account"
    }
    template            = {
        "id"      = "policyTemplate-e95df540-404b-4630-84ca-82ea4b5f7959"
        "version" = "1"
    }
    version             = "1.0"
}

@hkantare hkantare merged commit 9f5d40e into IBM-Cloud:master Apr 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants