1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIamAccessGroupTemplateAssignment
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIamAccessGroupTemplateAssignment

Explore with Pulumi AI

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({});
Copy
import pulumi
import pulumi_ibm as ibm

iam_access_group_template_assignment = ibm.get_iam_access_group_template_assignment()
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var iamAccessGroupTemplateAssignment = Ibm.GetIamAccessGroupTemplateAssignment.Invoke();

});
Copy
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();

    }
}
Copy
variables:
  iamAccessGroupTemplateAssignment:
    fn::invoke:
      function: ibm:getIamAccessGroupTemplateAssignment
      arguments: {}
Copy

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>
Copy
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]
Copy
func LookupIamAccessGroupTemplateAssignment(ctx *Context, args *LookupIamAccessGroupTemplateAssignmentArgs, opts ...InvokeOption) (*LookupIamAccessGroupTemplateAssignmentResult, error)
func LookupIamAccessGroupTemplateAssignmentOutput(ctx *Context, args *LookupIamAccessGroupTemplateAssignmentOutputArgs, opts ...InvokeOption) LookupIamAccessGroupTemplateAssignmentResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIamAccessGroupTemplateAssignmentResult> getIamAccessGroupTemplateAssignment(GetIamAccessGroupTemplateAssignmentArgs args, InvokeOptions options)
public static Output<GetIamAccessGroupTemplateAssignmentResult> getIamAccessGroupTemplateAssignment(GetIamAccessGroupTemplateAssignmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIamAccessGroupTemplateAssignment:getIamAccessGroupTemplateAssignment
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
(String) Enterprise account id.
CreatedAt This property is required. string
(String) The date and time when the assignment was created.
CreatedById This property is required. string
(String) The user or system that created the assignment.
Href This property is required. string
(String) The URL of the assignment resource.
Id This property is required. string
The unique identifier of the iam_access_group_template_assignment.
LastModifiedAt This property is required. string
(String) The date and time when the assignment was last updated.
LastModifiedById This property is required. string
(String) The user or system that last updated the assignment.
Operation This property is required. string
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
Status This property is required. string
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
Target This property is required. 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 This property is required. string
(String) The type of the entity that the assignment applies to.
TemplateId This property is required. 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 This property is required. 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 This property is required. string
(String) Enterprise account id.
CreatedAt This property is required. string
(String) The date and time when the assignment was created.
CreatedById This property is required. string
(String) The user or system that created the assignment.
Href This property is required. string
(String) The URL of the assignment resource.
Id This property is required. string
The unique identifier of the iam_access_group_template_assignment.
LastModifiedAt This property is required. string
(String) The date and time when the assignment was last updated.
LastModifiedById This property is required. string
(String) The user or system that last updated the assignment.
Operation This property is required. string
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
Status This property is required. string
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
Target This property is required. 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 This property is required. string
(String) The type of the entity that the assignment applies to.
TemplateId This property is required. 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 This property is required. 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 This property is required. String
(String) Enterprise account id.
createdAt This property is required. String
(String) The date and time when the assignment was created.
createdById This property is required. String
(String) The user or system that created the assignment.
href This property is required. String
(String) The URL of the assignment resource.
id This property is required. String
The unique identifier of the iam_access_group_template_assignment.
lastModifiedAt This property is required. String
(String) The date and time when the assignment was last updated.
lastModifiedById This property is required. String
(String) The user or system that last updated the assignment.
operation This property is required. String
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
status This property is required. String
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
target This property is required. 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 This property is required. String
(String) The type of the entity that the assignment applies to.
templateId This property is required. 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 This property is required. 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 This property is required. string
(String) Enterprise account id.
createdAt This property is required. string
(String) The date and time when the assignment was created.
createdById This property is required. string
(String) The user or system that created the assignment.
href This property is required. string
(String) The URL of the assignment resource.
id This property is required. string
The unique identifier of the iam_access_group_template_assignment.
lastModifiedAt This property is required. string
(String) The date and time when the assignment was last updated.
lastModifiedById This property is required. string
(String) The user or system that last updated the assignment.
operation This property is required. string
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
status This property is required. string
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
target This property is required. 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 This property is required. string
(String) The type of the entity that the assignment applies to.
templateId This property is required. 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 This property is required. 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 This property is required. str
(String) Enterprise account id.
created_at This property is required. str
(String) The date and time when the assignment was created.
created_by_id This property is required. str
(String) The user or system that created the assignment.
href This property is required. str
(String) The URL of the assignment resource.
id This property is required. str
The unique identifier of the iam_access_group_template_assignment.
last_modified_at This property is required. str
(String) The date and time when the assignment was last updated.
last_modified_by_id This property is required. str
(String) The user or system that last updated the assignment.
operation This property is required. str
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
status This property is required. str
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
target This property is required. 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 This property is required. str
(String) The type of the entity that the assignment applies to.
template_id This property is required. 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 This property is required. 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 This property is required. String
(String) Enterprise account id.
createdAt This property is required. String
(String) The date and time when the assignment was created.
createdById This property is required. String
(String) The user or system that created the assignment.
href This property is required. String
(String) The URL of the assignment resource.
id This property is required. String
The unique identifier of the iam_access_group_template_assignment.
lastModifiedAt This property is required. String
(String) The date and time when the assignment was last updated.
lastModifiedById This property is required. String
(String) The user or system that last updated the assignment.
operation This property is required. String
(String) The operation that the assignment applies to (e.g. 'assign', 'update', 'remove').
status This property is required. String
Filter results by the assignment status.

  • Constraints: Allowable values are: accepted, in_progress, succeeded, failed.
target This property is required. 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 This property is required. String
(String) The type of the entity that the assignment applies to.
templateId This property is required. 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 This property is required. 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 This property is required. string
(String) The URL of the assignment resource.
Href This property is required. string
(String) The URL of the assignment resource.
href This property is required. String
(String) The URL of the assignment resource.
href This property is required. string
(String) The URL of the assignment resource.
href This property is required. str
(String) The URL of the assignment resource.
href This property is required. String
(String) The URL of the assignment resource.

GetIamAccessGroupTemplateAssignmentLast

Href This property is required. string
(String) The URL of the assignment resource.
Href This property is required. string
(String) The URL of the assignment resource.
href This property is required. String
(String) The URL of the assignment resource.
href This property is required. string
(String) The URL of the assignment resource.
href This property is required. str
(String) The URL of the assignment resource.
href This property is required. 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.