1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIamActionControlAssignment
ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud

ibm.getIamActionControlAssignment

Explore with Pulumi AI

ibm logo
ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about action_control_assignments. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const actionControlAssignment = ibm.getIamActionControlAssignments({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    action_control_assignment = ibm.get_iam_action_control_assignments()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIamActionControlAssignments(ctx, &ibm.GetIamActionControlAssignmentsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var actionControlAssignment = Ibm.GetIamActionControlAssignments.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIamActionControlAssignmentsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var actionControlAssignment = IbmFunctions.getIamActionControlAssignments();
    
        }
    }
    
    variables:
      actionControlAssignment:
        fn::invoke:
          function: ibm:getIamActionControlAssignments
          arguments: {}
    

    Timeouts section

    The resource includes default timeout settings for the following operations:

    • create - (Timeout) Defaults to 30 minutes.
    • update - (Timeout) Defaults to 30 minutes.
    • delete - (Timeout) Defaults to 30 minutes.

    Using getIamActionControlAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIamActionControlAssignment(args: GetIamActionControlAssignmentArgs, opts?: InvokeOptions): Promise<GetIamActionControlAssignmentResult>
    function getIamActionControlAssignmentOutput(args: GetIamActionControlAssignmentOutputArgs, opts?: InvokeOptions): Output<GetIamActionControlAssignmentResult>
    def get_iam_action_control_assignment(assignment_id: Optional[str] = None,
                                          id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetIamActionControlAssignmentResult
    def get_iam_action_control_assignment_output(assignment_id: Optional[pulumi.Input[str]] = None,
                                          id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetIamActionControlAssignmentResult]
    func LookupIamActionControlAssignment(ctx *Context, args *LookupIamActionControlAssignmentArgs, opts ...InvokeOption) (*LookupIamActionControlAssignmentResult, error)
    func LookupIamActionControlAssignmentOutput(ctx *Context, args *LookupIamActionControlAssignmentOutputArgs, opts ...InvokeOption) LookupIamActionControlAssignmentResultOutput

    > Note: This function is named LookupIamActionControlAssignment in the Go SDK.

    public static class GetIamActionControlAssignment 
    {
        public static Task<GetIamActionControlAssignmentResult> InvokeAsync(GetIamActionControlAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetIamActionControlAssignmentResult> Invoke(GetIamActionControlAssignmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamActionControlAssignmentResult> getIamActionControlAssignment(GetIamActionControlAssignmentArgs args, InvokeOptions options)
    public static Output<GetIamActionControlAssignmentResult> getIamActionControlAssignment(GetIamActionControlAssignmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamActionControlAssignment:getIamActionControlAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AssignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    Id string
    (String) The action_control assignment template id.
    AssignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    Id string
    (String) The action_control assignment template id.
    assignmentId String
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    id String
    (String) The action_control assignment template id.
    assignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    id string
    (String) The action_control assignment template id.
    assignment_id str
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    id str
    (String) The action_control assignment template id.
    assignmentId String
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    id String
    (String) The action_control assignment template id.

    getIamActionControlAssignment Result

    The following output properties are available:

    AccountId string
    (String) Enterprise account ID where template will be created.
    AssignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    CreatedAt string
    (String) The UTC timestamp when the action_control assignment was created.
    CreatedById string
    (String) The iam ID of the entity that created the action_control assignment.
    Href string
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    Id string
    (String) The action_control assignment template id.
    LastModifiedAt string
    (String) The UTC timestamp when the action_control assignment was last modified.
    LastModifiedById string
    (String) The iam ID of the entity that last modified the action_control assignment.
    Operation string
    Resources List<GetIamActionControlAssignmentResource>
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    Status string
    (String) The action_control assignment status.
    Targets List<GetIamActionControlAssignmentTarget>
    (Map) assignment target details. Nested schema for target:
    Templates List<GetIamActionControlAssignmentTemplate>
    (Map) template details Nested schema for template:
    AccountId string
    (String) Enterprise account ID where template will be created.
    AssignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    CreatedAt string
    (String) The UTC timestamp when the action_control assignment was created.
    CreatedById string
    (String) The iam ID of the entity that created the action_control assignment.
    Href string
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    Id string
    (String) The action_control assignment template id.
    LastModifiedAt string
    (String) The UTC timestamp when the action_control assignment was last modified.
    LastModifiedById string
    (String) The iam ID of the entity that last modified the action_control assignment.
    Operation string
    Resources []GetIamActionControlAssignmentResource
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    Status string
    (String) The action_control assignment status.
    Targets []GetIamActionControlAssignmentTarget
    (Map) assignment target details. Nested schema for target:
    Templates []GetIamActionControlAssignmentTemplate
    (Map) template details Nested schema for template:
    accountId String
    (String) Enterprise account ID where template will be created.
    assignmentId String
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    createdAt String
    (String) The UTC timestamp when the action_control assignment was created.
    createdById String
    (String) The iam ID of the entity that created the action_control assignment.
    href String
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    id String
    (String) The action_control assignment template id.
    lastModifiedAt String
    (String) The UTC timestamp when the action_control assignment was last modified.
    lastModifiedById String
    (String) The iam ID of the entity that last modified the action_control assignment.
    operation String
    resources List<GetIamActionControlAssignmentResource>
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    status String
    (String) The action_control assignment status.
    targets List<GetIamActionControlAssignmentTarget>
    (Map) assignment target details. Nested schema for target:
    templates List<GetIamActionControlAssignmentTemplate>
    (Map) template details Nested schema for template:
    accountId string
    (String) Enterprise account ID where template will be created.
    assignmentId string
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    createdAt string
    (String) The UTC timestamp when the action_control assignment was created.
    createdById string
    (String) The iam ID of the entity that created the action_control assignment.
    href string
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    id string
    (String) The action_control assignment template id.
    lastModifiedAt string
    (String) The UTC timestamp when the action_control assignment was last modified.
    lastModifiedById string
    (String) The iam ID of the entity that last modified the action_control assignment.
    operation string
    resources GetIamActionControlAssignmentResource[]
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    status string
    (String) The action_control assignment status.
    targets GetIamActionControlAssignmentTarget[]
    (Map) assignment target details. Nested schema for target:
    templates GetIamActionControlAssignmentTemplate[]
    (Map) template details Nested schema for template:
    account_id str
    (String) Enterprise account ID where template will be created.
    assignment_id str
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    created_at str
    (String) The UTC timestamp when the action_control assignment was created.
    created_by_id str
    (String) The iam ID of the entity that created the action_control assignment.
    href str
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    id str
    (String) The action_control assignment template id.
    last_modified_at str
    (String) The UTC timestamp when the action_control assignment was last modified.
    last_modified_by_id str
    (String) The iam ID of the entity that last modified the action_control assignment.
    operation str
    resources Sequence[GetIamActionControlAssignmentResource]
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    status str
    (String) The action_control assignment status.
    targets Sequence[GetIamActionControlAssignmentTarget]
    (Map) assignment target details. Nested schema for target:
    templates Sequence[GetIamActionControlAssignmentTemplate]
    (Map) template details Nested schema for template:
    accountId String
    (String) Enterprise account ID where template will be created.
    assignmentId String
    (String) Passed in value to correlate with other assignments.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character.
    createdAt String
    (String) The UTC timestamp when the action_control assignment was created.
    createdById String
    (String) The iam ID of the entity that created the action_control assignment.
    href String
    (String) The href URL that links to the policies assignments API by action_control assignment ID.
    id String
    (String) The action_control assignment template id.
    lastModifiedAt String
    (String) The UTC timestamp when the action_control assignment was last modified.
    lastModifiedById String
    (String) The iam ID of the entity that last modified the action_control assignment.
    operation String
    resources List<Property Map>
    (List) Object for each account assigned.

    • Constraints: The minimum length is 1 item. Nested schema for resources:
    status String
    (String) The action_control assignment status.
    targets List<Property Map>
    (Map) assignment target details. Nested schema for target:
    templates List<Property Map>
    (Map) template details Nested schema for template:

    Supporting Types

    GetIamActionControlAssignmentResource

    ActionControls List<GetIamActionControlAssignmentResourceActionControl>
    (String) The conflicting action_control id.
    Targets List<GetIamActionControlAssignmentResourceTarget>
    (Map) assignment target details. Nested schema for target:
    ActionControls []GetIamActionControlAssignmentResourceActionControl
    (String) The conflicting action_control id.
    Targets []GetIamActionControlAssignmentResourceTarget
    (Map) assignment target details. Nested schema for target:
    actionControls List<GetIamActionControlAssignmentResourceActionControl>
    (String) The conflicting action_control id.
    targets List<GetIamActionControlAssignmentResourceTarget>
    (Map) assignment target details. Nested schema for target:
    actionControls GetIamActionControlAssignmentResourceActionControl[]
    (String) The conflicting action_control id.
    targets GetIamActionControlAssignmentResourceTarget[]
    (Map) assignment target details. Nested schema for target:
    action_controls Sequence[GetIamActionControlAssignmentResourceActionControl]
    (String) The conflicting action_control id.
    targets Sequence[GetIamActionControlAssignmentResourceTarget]
    (Map) assignment target details. Nested schema for target:
    actionControls List<Property Map>
    (String) The conflicting action_control id.
    targets List<Property Map>
    (Map) assignment target details. Nested schema for target:

    GetIamActionControlAssignmentResourceActionControl

    ErrorMessages List<GetIamActionControlAssignmentResourceActionControlErrorMessage>
    (List) The error response from API. Nested schema for error_message:
    ResourceCreateds List<GetIamActionControlAssignmentResourceActionControlResourceCreated>
    (List) On success, includes the action_control assigned. Nested schema for resource_created:
    ErrorMessages []GetIamActionControlAssignmentResourceActionControlErrorMessage
    (List) The error response from API. Nested schema for error_message:
    ResourceCreateds []GetIamActionControlAssignmentResourceActionControlResourceCreated
    (List) On success, includes the action_control assigned. Nested schema for resource_created:
    errorMessages List<GetIamActionControlAssignmentResourceActionControlErrorMessage>
    (List) The error response from API. Nested schema for error_message:
    resourceCreateds List<GetIamActionControlAssignmentResourceActionControlResourceCreated>
    (List) On success, includes the action_control assigned. Nested schema for resource_created:
    errorMessages GetIamActionControlAssignmentResourceActionControlErrorMessage[]
    (List) The error response from API. Nested schema for error_message:
    resourceCreateds GetIamActionControlAssignmentResourceActionControlResourceCreated[]
    (List) On success, includes the action_control assigned. Nested schema for resource_created:
    error_messages Sequence[GetIamActionControlAssignmentResourceActionControlErrorMessage]
    (List) The error response from API. Nested schema for error_message:
    resource_createds Sequence[GetIamActionControlAssignmentResourceActionControlResourceCreated]
    (List) On success, includes the action_control assigned. Nested schema for resource_created:
    errorMessages List<Property Map>
    (List) The error response from API. Nested schema for error_message:
    resourceCreateds List<Property Map>
    (List) On success, includes the action_control assigned. Nested schema for resource_created:

    GetIamActionControlAssignmentResourceActionControlErrorMessage

    Errors List<GetIamActionControlAssignmentResourceActionControlErrorMessageError>
    (List) The errors encountered during the response. Nested schema for errors:
    StatusCode double
    (Integer) The http error code of the response.
    Trace string
    (String) The unique transaction id for the request.
    Errors []GetIamActionControlAssignmentResourceActionControlErrorMessageError
    (List) The errors encountered during the response. Nested schema for errors:
    StatusCode float64
    (Integer) The http error code of the response.
    Trace string
    (String) The unique transaction id for the request.
    errors List<GetIamActionControlAssignmentResourceActionControlErrorMessageError>
    (List) The errors encountered during the response. Nested schema for errors:
    statusCode Double
    (Integer) The http error code of the response.
    trace String
    (String) The unique transaction id for the request.
    errors GetIamActionControlAssignmentResourceActionControlErrorMessageError[]
    (List) The errors encountered during the response. Nested schema for errors:
    statusCode number
    (Integer) The http error code of the response.
    trace string
    (String) The unique transaction id for the request.
    errors Sequence[GetIamActionControlAssignmentResourceActionControlErrorMessageError]
    (List) The errors encountered during the response. Nested schema for errors:
    status_code float
    (Integer) The http error code of the response.
    trace str
    (String) The unique transaction id for the request.
    errors List<Property Map>
    (List) The errors encountered during the response. Nested schema for errors:
    statusCode Number
    (Integer) The http error code of the response.
    trace String
    (String) The unique transaction id for the request.

    GetIamActionControlAssignmentResourceActionControlErrorMessageError

    Code string
    (String) The API error code for the error.
    Details List<GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail>
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    Message string
    (String) The error message returned by the API.
    MoreInfo string
    (String) Additional info for error.
    Code string
    (String) The API error code for the error.
    Details []GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    Message string
    (String) The error message returned by the API.
    MoreInfo string
    (String) Additional info for error.
    code String
    (String) The API error code for the error.
    details List<GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail>
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    message String
    (String) The error message returned by the API.
    moreInfo String
    (String) Additional info for error.
    code string
    (String) The API error code for the error.
    details GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail[]
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    message string
    (String) The error message returned by the API.
    moreInfo string
    (String) Additional info for error.
    code str
    (String) The API error code for the error.
    details Sequence[GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail]
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    message str
    (String) The error message returned by the API.
    more_info str
    (String) Additional info for error.
    code String
    (String) The API error code for the error.
    details List<Property Map>
    (List) Additional error details. Nested schema for details: Nested schema for conflicts_with:
    message String
    (String) The error message returned by the API.
    moreInfo String
    (String) Additional info for error.

    GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetail

    GetIamActionControlAssignmentResourceActionControlErrorMessageErrorDetailConflictsWith

    Etag string
    (String) The revision number of the resource.
    Policy string
    Role string
    Etag string
    (String) The revision number of the resource.
    Policy string
    Role string
    etag String
    (String) The revision number of the resource.
    policy String
    role String
    etag string
    (String) The revision number of the resource.
    policy string
    role string
    etag str
    (String) The revision number of the resource.
    policy str
    role str
    etag String
    (String) The revision number of the resource.
    policy String
    role String

    GetIamActionControlAssignmentResourceActionControlResourceCreated

    Id string
    (String) The action_control assignment template id.
    Id string
    (String) The action_control assignment template id.
    id String
    (String) The action_control assignment template id.
    id string
    (String) The action_control assignment template id.
    id str
    (String) The action_control assignment template id.
    id String
    (String) The action_control assignment template id.

    GetIamActionControlAssignmentResourceTarget

    Id string
    (String) The action_control assignment template id.
    Type string
    (String) The target type.
    Id string
    (String) The action_control assignment template id.
    Type string
    (String) The target type.
    id String
    (String) The action_control assignment template id.
    type String
    (String) The target type.
    id string
    (String) The action_control assignment template id.
    type string
    (String) The target type.
    id str
    (String) The action_control assignment template id.
    type str
    (String) The target type.
    id String
    (String) The action_control assignment template id.
    type String
    (String) The target type.

    GetIamActionControlAssignmentTarget

    Id string
    (String) The action_control assignment template id.
    Type string
    (String) The target type.
    Id string
    (String) The action_control assignment template id.
    Type string
    (String) The target type.
    id String
    (String) The action_control assignment template id.
    type String
    (String) The target type.
    id string
    (String) The action_control assignment template id.
    type string
    (String) The target type.
    id str
    (String) The action_control assignment template id.
    type str
    (String) The target type.
    id String
    (String) The action_control assignment template id.
    type String
    (String) The target type.

    GetIamActionControlAssignmentTemplate

    Id string
    (String) The action_control assignment template id.
    Version string
    (String) The orchestrator template version.
    Id string
    (String) The action_control assignment template id.
    Version string
    (String) The orchestrator template version.
    id String
    (String) The action_control assignment template id.
    version String
    (String) The orchestrator template version.
    id string
    (String) The action_control assignment template id.
    version string
    (String) The orchestrator template version.
    id str
    (String) The action_control assignment template id.
    version str
    (String) The orchestrator template version.
    id String
    (String) The action_control assignment template id.
    version String
    (String) The orchestrator template version.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud