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

ibm.getIamActionControlTemplateVersion

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 a action_control_template. 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 actionControlTemplate = ibm.getIamActionControlTemplateVersion({
        actionControlTemplateId: ibm_iam_action_control_template_version.action_control_template.action_control_template_id,
        version: "version",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    action_control_template = ibm.get_iam_action_control_template_version(action_control_template_id=ibm_iam_action_control_template_version["action_control_template"]["action_control_template_id"],
        version="version")
    
    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.LookupIamActionControlTemplateVersion(ctx, &ibm.LookupIamActionControlTemplateVersionArgs{
    			ActionControlTemplateId: ibm_iam_action_control_template_version.Action_control_template.Action_control_template_id,
    			Version:                 "version",
    		}, 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 actionControlTemplate = Ibm.GetIamActionControlTemplateVersion.Invoke(new()
        {
            ActionControlTemplateId = ibm_iam_action_control_template_version.Action_control_template.Action_control_template_id,
            Version = "version",
        });
    
    });
    
    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.GetIamActionControlTemplateVersionArgs;
    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 actionControlTemplate = IbmFunctions.getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs.builder()
                .actionControlTemplateId(ibm_iam_action_control_template_version.action_control_template().action_control_template_id())
                .version("version")
                .build());
    
        }
    }
    
    variables:
      actionControlTemplate:
        fn::invoke:
          function: ibm:getIamActionControlTemplateVersion
          arguments:
            actionControlTemplateId: ${ibm_iam_action_control_template_version.action_control_template.action_control_template_id}
            version: version
    

    Using getIamActionControlTemplateVersion

    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 getIamActionControlTemplateVersion(args: GetIamActionControlTemplateVersionArgs, opts?: InvokeOptions): Promise<GetIamActionControlTemplateVersionResult>
    function getIamActionControlTemplateVersionOutput(args: GetIamActionControlTemplateVersionOutputArgs, opts?: InvokeOptions): Output<GetIamActionControlTemplateVersionResult>
    def get_iam_action_control_template_version(action_control_template_id: Optional[str] = None,
                                                id: Optional[str] = None,
                                                version: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetIamActionControlTemplateVersionResult
    def get_iam_action_control_template_version_output(action_control_template_id: Optional[pulumi.Input[str]] = None,
                                                id: Optional[pulumi.Input[str]] = None,
                                                version: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetIamActionControlTemplateVersionResult]
    func LookupIamActionControlTemplateVersion(ctx *Context, args *LookupIamActionControlTemplateVersionArgs, opts ...InvokeOption) (*LookupIamActionControlTemplateVersionResult, error)
    func LookupIamActionControlTemplateVersionOutput(ctx *Context, args *LookupIamActionControlTemplateVersionOutputArgs, opts ...InvokeOption) LookupIamActionControlTemplateVersionResultOutput

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

    public static class GetIamActionControlTemplateVersion 
    {
        public static Task<GetIamActionControlTemplateVersionResult> InvokeAsync(GetIamActionControlTemplateVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetIamActionControlTemplateVersionResult> Invoke(GetIamActionControlTemplateVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamActionControlTemplateVersionResult> getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs args, InvokeOptions options)
    public static Output<GetIamActionControlTemplateVersionResult> getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamActionControlTemplateVersion:getIamActionControlTemplateVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ActionControlTemplateId string
    The policy template ID.
    Version string
    The policy template version.
    Id string
    The unique identifier of the action_control_template.
    ActionControlTemplateId string
    The policy template ID.
    Version string
    The policy template version.
    Id string
    The unique identifier of the action_control_template.
    actionControlTemplateId String
    The policy template ID.
    version String
    The policy template version.
    id String
    The unique identifier of the action_control_template.
    actionControlTemplateId string
    The policy template ID.
    version string
    The policy template version.
    id string
    The unique identifier of the action_control_template.
    action_control_template_id str
    The policy template ID.
    version str
    The policy template version.
    id str
    The unique identifier of the action_control_template.
    actionControlTemplateId String
    The policy template ID.
    version String
    The policy template version.
    id String
    The unique identifier of the action_control_template.

    getIamActionControlTemplateVersion Result

    The following output properties are available:

    AccountId string
    (String) Enterprise account ID where this template will be created.
    ActionControlTemplateId string
    ActionControls List<GetIamActionControlTemplateVersionActionControl>
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    Committed bool
    (Boolean) Committed status of the template version.
    CreatedAt string
    CreatedById string
    Description string
    (Optional, String) Description of the action control.
    Href string
    Id string
    The unique identifier of the action_control_template.
    LastModifiedAt string
    LastModifiedById string
    Name string
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    State string
    Version string
    The action_control_template version.
    AccountId string
    (String) Enterprise account ID where this template will be created.
    ActionControlTemplateId string
    ActionControls []GetIamActionControlTemplateVersionActionControl
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    Committed bool
    (Boolean) Committed status of the template version.
    CreatedAt string
    CreatedById string
    Description string
    (Optional, String) Description of the action control.
    Href string
    Id string
    The unique identifier of the action_control_template.
    LastModifiedAt string
    LastModifiedById string
    Name string
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    State string
    Version string
    The action_control_template version.
    accountId String
    (String) Enterprise account ID where this template will be created.
    actionControlTemplateId String
    actionControls List<GetIamActionControlTemplateVersionActionControl>
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    committed Boolean
    (Boolean) Committed status of the template version.
    createdAt String
    createdById String
    description String
    (Optional, String) Description of the action control.
    href String
    id String
    The unique identifier of the action_control_template.
    lastModifiedAt String
    lastModifiedById String
    name String
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    state String
    version String
    The action_control_template version.
    accountId string
    (String) Enterprise account ID where this template will be created.
    actionControlTemplateId string
    actionControls GetIamActionControlTemplateVersionActionControl[]
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    committed boolean
    (Boolean) Committed status of the template version.
    createdAt string
    createdById string
    description string
    (Optional, String) Description of the action control.
    href string
    id string
    The unique identifier of the action_control_template.
    lastModifiedAt string
    lastModifiedById string
    name string
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    state string
    version string
    The action_control_template version.
    account_id str
    (String) Enterprise account ID where this template will be created.
    action_control_template_id str
    action_controls Sequence[GetIamActionControlTemplateVersionActionControl]
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    committed bool
    (Boolean) Committed status of the template version.
    created_at str
    created_by_id str
    description str
    (Optional, String) Description of the action control.
    href str
    id str
    The unique identifier of the action_control_template.
    last_modified_at str
    last_modified_by_id str
    name str
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    state str
    version str
    The action_control_template version.
    accountId String
    (String) Enterprise account ID where this template will be created.
    actionControlTemplateId String
    actionControls List<Property Map>
    (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
    committed Boolean
    (Boolean) Committed status of the template version.
    createdAt String
    createdById String
    description String
    (Optional, String) Description of the action control.
    href String
    id String
    The unique identifier of the action_control_template.
    lastModifiedAt String
    lastModifiedById String
    name String
    (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character.
    state String
    version String
    The action_control_template version.

    Supporting Types

    GetIamActionControlTemplateVersionActionControl

    Actions List<string>
    (Required, List) List of actions to control access.
    Description string
    (Optional, String) Description of the action control.
    ServiceName string
    (Required, String) The service name that the action control refers.
    Actions []string
    (Required, List) List of actions to control access.
    Description string
    (Optional, String) Description of the action control.
    ServiceName string
    (Required, String) The service name that the action control refers.
    actions List<String>
    (Required, List) List of actions to control access.
    description String
    (Optional, String) Description of the action control.
    serviceName String
    (Required, String) The service name that the action control refers.
    actions string[]
    (Required, List) List of actions to control access.
    description string
    (Optional, String) Description of the action control.
    serviceName string
    (Required, String) The service name that the action control refers.
    actions Sequence[str]
    (Required, List) List of actions to control access.
    description str
    (Optional, String) Description of the action control.
    service_name str
    (Required, String) The service name that the action control refers.
    actions List<String>
    (Required, List) List of actions to control access.
    description String
    (Optional, String) Description of the action control.
    serviceName String
    (Required, String) The service name that the action control refers.

    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