1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIamAccessGroupTemplateAssignment
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIamAccessGroupTemplateAssignment

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about an iam_access_group_template_assignment. 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 iamAccessGroupTemplateAssignment = ibm.getIamAccessGroupTemplateAssignment({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_access_group_template_assignment = ibm.get_iam_access_group_template_assignment()
    
    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.LookupIamAccessGroupTemplateAssignment(ctx, &ibm.LookupIamAccessGroupTemplateAssignmentArgs{}, 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 iamAccessGroupTemplateAssignment = Ibm.GetIamAccessGroupTemplateAssignment.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.GetIamAccessGroupTemplateAssignmentArgs;
    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 iamAccessGroupTemplateAssignment = IbmFunctions.getIamAccessGroupTemplateAssignment();
    
        }
    }
    
    variables:
      iamAccessGroupTemplateAssignment:
        fn::invoke:
          function: ibm:getIamAccessGroupTemplateAssignment
          arguments: {}
    

    Using getIamAccessGroupTemplateAssignment

    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 getIamAccessGroupTemplateAssignment(args: GetIamAccessGroupTemplateAssignmentArgs, opts?: InvokeOptions): Promise<GetIamAccessGroupTemplateAssignmentResult>
    function getIamAccessGroupTemplateAssignmentOutput(args: GetIamAccessGroupTemplateAssignmentOutputArgs, opts?: InvokeOptions): Output<GetIamAccessGroupTemplateAssignmentResult>
    def get_iam_access_group_template_assignment(id: Optional[str] = None,
                                                 status: Optional[str] = None,
                                                 target: Optional[str] = None,
                                                 template_id: Optional[str] = None,
                                                 template_version: Optional[str] = None,
                                                 transaction_id: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetIamAccessGroupTemplateAssignmentResult
    def get_iam_access_group_template_assignment_output(id: Optional[pulumi.Input[str]] = None,
                                                 status: Optional[pulumi.Input[str]] = None,
                                                 target: Optional[pulumi.Input[str]] = None,
                                                 template_id: Optional[pulumi.Input[str]] = None,
                                                 template_version: Optional[pulumi.Input[str]] = None,
                                                 transaction_id: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetIamAccessGroupTemplateAssignmentResult]
    func LookupIamAccessGroupTemplateAssignment(ctx *Context, args *LookupIamAccessGroupTemplateAssignmentArgs, opts ...InvokeOption) (*LookupIamAccessGroupTemplateAssignmentResult, error)
    func LookupIamAccessGroupTemplateAssignmentOutput(ctx *Context, args *LookupIamAccessGroupTemplateAssignmentOutputArgs, opts ...InvokeOption) LookupIamAccessGroupTemplateAssignmentResultOutput

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

    public static class GetIamAccessGroupTemplateAssignment 
    {
        public static Task<GetIamAccessGroupTemplateAssignmentResult> InvokeAsync(GetIamAccessGroupTemplateAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetIamAccessGroupTemplateAssignmentResult> Invoke(GetIamAccessGroupTemplateAssignmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamAccessGroupTemplateAssignmentResult> getIamAccessGroupTemplateAssignment(GetIamAccessGroupTemplateAssignmentArgs args, InvokeOptions options)
    public static Output<GetIamAccessGroupTemplateAssignmentResult> getIamAccessGroupTemplateAssignment(GetIamAccessGroupTemplateAssignmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamAccessGroupTemplateAssignment:getIamAccessGroupTemplateAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The unique identifier of the iam_access_group_template_assignment.
    Status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    Target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    TransactionId string
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    Id string
    The unique identifier of the iam_access_group_template_assignment.
    Status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    Target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    TransactionId string
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    id String
    The unique identifier of the iam_access_group_template_assignment.
    status String
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target String
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateId String
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion String
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    transactionId String
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    id string
    The unique identifier of the iam_access_group_template_assignment.
    status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    transactionId string
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    id str
    The unique identifier of the iam_access_group_template_assignment.
    status str
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target str
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    template_id str
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    template_version str
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    transaction_id str
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    id String
    The unique identifier of the iam_access_group_template_assignment.
    status String
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target String
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateId String
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion String
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    transactionId String
    An optional transaction id for the request.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.

    getIamAccessGroupTemplateAssignment Result

    The following output properties are available:

    AccountId string
    (String) Enterprise account id.
    Assignments List<GetIamAccessGroupTemplateAssignmentAssignment>
    Firsts List<GetIamAccessGroupTemplateAssignmentFirst>
    Id string
    The unique identifier of the iam_access_group_template_assignment.
    Lasts List<GetIamAccessGroupTemplateAssignmentLast>
    Limit double
    Offset double
    TotalCount double
    Status string
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    Target string
    (String) The ID of the entity that the assignment applies to.
    TemplateId string
    (String) The ID of the template that the assignment is based on.
    TemplateVersion string
    (String) The version of the template that the assignment is based on.
    TransactionId string
    AccountId string
    (String) Enterprise account id.
    Assignments []GetIamAccessGroupTemplateAssignmentAssignment
    Firsts []GetIamAccessGroupTemplateAssignmentFirst
    Id string
    The unique identifier of the iam_access_group_template_assignment.
    Lasts []GetIamAccessGroupTemplateAssignmentLast
    Limit float64
    Offset float64
    TotalCount float64
    Status string
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    Target string
    (String) The ID of the entity that the assignment applies to.
    TemplateId string
    (String) The ID of the template that the assignment is based on.
    TemplateVersion string
    (String) The version of the template that the assignment is based on.
    TransactionId string
    accountId String
    (String) Enterprise account id.
    assignments List<GetIamAccessGroupTemplateAssignmentAssignment>
    firsts List<GetIamAccessGroupTemplateAssignmentFirst>
    id String
    The unique identifier of the iam_access_group_template_assignment.
    lasts List<GetIamAccessGroupTemplateAssignmentLast>
    limit Double
    offset Double
    totalCount Double
    status String
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    target String
    (String) The ID of the entity that the assignment applies to.
    templateId String
    (String) The ID of the template that the assignment is based on.
    templateVersion String
    (String) The version of the template that the assignment is based on.
    transactionId String
    accountId string
    (String) Enterprise account id.
    assignments GetIamAccessGroupTemplateAssignmentAssignment[]
    firsts GetIamAccessGroupTemplateAssignmentFirst[]
    id string
    The unique identifier of the iam_access_group_template_assignment.
    lasts GetIamAccessGroupTemplateAssignmentLast[]
    limit number
    offset number
    totalCount number
    status string
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    target string
    (String) The ID of the entity that the assignment applies to.
    templateId string
    (String) The ID of the template that the assignment is based on.
    templateVersion string
    (String) The version of the template that the assignment is based on.
    transactionId string
    account_id str
    (String) Enterprise account id.
    assignments Sequence[GetIamAccessGroupTemplateAssignmentAssignment]
    firsts Sequence[GetIamAccessGroupTemplateAssignmentFirst]
    id str
    The unique identifier of the iam_access_group_template_assignment.
    lasts Sequence[GetIamAccessGroupTemplateAssignmentLast]
    limit float
    offset float
    total_count float
    status str
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    target str
    (String) The ID of the entity that the assignment applies to.
    template_id str
    (String) The ID of the template that the assignment is based on.
    template_version str
    (String) The version of the template that the assignment is based on.
    transaction_id str
    accountId String
    (String) Enterprise account id.
    assignments List<Property Map>
    firsts List<Property Map>
    id String
    The unique identifier of the iam_access_group_template_assignment.
    lasts List<Property Map>
    limit Number
    offset Number
    totalCount Number
    status String
    (String) The status of the assignment (e.g. 'accepted', 'in_progress', 'succeeded', 'failed', 'superseded').
    target String
    (String) The ID of the entity that the assignment applies to.
    templateId String
    (String) The ID of the template that the assignment is based on.
    templateVersion String
    (String) The version of the template that the assignment is based on.
    transactionId String

    Supporting Types

    GetIamAccessGroupTemplateAssignmentAssignment

    AccountId string
    (String) Enterprise account id.
    CreatedAt string
    (String) The date and time when the assignment was created.
    CreatedById string
    (String) The user or system that created the assignment.
    Href string
    (String) The URL of the assignment resource.
    Id string
    The unique identifier of the iam_access_group_template_assignment.
    LastModifiedAt string
    (String) The date and time when the assignment was last updated.
    LastModifiedById string
    (String) The user or system that last updated the assignment.
    Operation string
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    Status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    Target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TargetType string
    (String) The type of the entity that the assignment applies to.
    TemplateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    AccountId string
    (String) Enterprise account id.
    CreatedAt string
    (String) The date and time when the assignment was created.
    CreatedById string
    (String) The user or system that created the assignment.
    Href string
    (String) The URL of the assignment resource.
    Id string
    The unique identifier of the iam_access_group_template_assignment.
    LastModifiedAt string
    (String) The date and time when the assignment was last updated.
    LastModifiedById string
    (String) The user or system that last updated the assignment.
    Operation string
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    Status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    Target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TargetType string
    (String) The type of the entity that the assignment applies to.
    TemplateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    TemplateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    accountId String
    (String) Enterprise account id.
    createdAt String
    (String) The date and time when the assignment was created.
    createdById String
    (String) The user or system that created the assignment.
    href String
    (String) The URL of the assignment resource.
    id String
    The unique identifier of the iam_access_group_template_assignment.
    lastModifiedAt String
    (String) The date and time when the assignment was last updated.
    lastModifiedById String
    (String) The user or system that last updated the assignment.
    operation String
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    status String
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target String
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    targetType String
    (String) The type of the entity that the assignment applies to.
    templateId String
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion String
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    accountId string
    (String) Enterprise account id.
    createdAt string
    (String) The date and time when the assignment was created.
    createdById string
    (String) The user or system that created the assignment.
    href string
    (String) The URL of the assignment resource.
    id string
    The unique identifier of the iam_access_group_template_assignment.
    lastModifiedAt string
    (String) The date and time when the assignment was last updated.
    lastModifiedById string
    (String) The user or system that last updated the assignment.
    operation string
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    status string
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target string
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    targetType string
    (String) The type of the entity that the assignment applies to.
    templateId string
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion string
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    account_id str
    (String) Enterprise account id.
    created_at str
    (String) The date and time when the assignment was created.
    created_by_id str
    (String) The user or system that created the assignment.
    href str
    (String) The URL of the assignment resource.
    id str
    The unique identifier of the iam_access_group_template_assignment.
    last_modified_at str
    (String) The date and time when the assignment was last updated.
    last_modified_by_id str
    (String) The user or system that last updated the assignment.
    operation str
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    status str
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target str
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    target_type str
    (String) The type of the entity that the assignment applies to.
    template_id str
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    template_version str
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.
    accountId String
    (String) Enterprise account id.
    createdAt String
    (String) The date and time when the assignment was created.
    createdById String
    (String) The user or system that created the assignment.
    href String
    (String) The URL of the assignment resource.
    id String
    The unique identifier of the iam_access_group_template_assignment.
    lastModifiedAt String
    (String) The date and time when the assignment was last updated.
    lastModifiedById String
    (String) The user or system that last updated the assignment.
    operation String
    (String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
    status String
    Filter results by the assignment status.

    • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
    target String
    Filter results by the assignment target.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    targetType String
    (String) The type of the entity that the assignment applies to.
    templateId String
    Filter results by Template Id.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    templateVersion String
    Filter results by Template Version.

    • Constraints: The maximum length is 2 characters. The minimum length is 1 character. The value must match regular expression /^[0-9]+$/.

    GetIamAccessGroupTemplateAssignmentFirst

    Href string
    (String) The URL of the assignment resource.
    Href string
    (String) The URL of the assignment resource.
    href String
    (String) The URL of the assignment resource.
    href string
    (String) The URL of the assignment resource.
    href str
    (String) The URL of the assignment resource.
    href String
    (String) The URL of the assignment resource.

    GetIamAccessGroupTemplateAssignmentLast

    Href string
    (String) The URL of the assignment resource.
    Href string
    (String) The URL of the assignment resource.
    href String
    (String) The URL of the assignment resource.
    href string
    (String) The URL of the assignment resource.
    href str
    (String) The URL of the assignment resource.
    href String
    (String) The URL of the assignment resource.

    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.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud