1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIamRoleTemplateVersion
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm logo
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about an iam_role_template_version. 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 iamRoleTemplateVersion = ibm.getIamRoleTemplateVersion({
        roleTemplateId: "role_template_id",
        version: "version",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_role_template_version = ibm.get_iam_role_template_version(role_template_id="role_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.LookupIamRoleTemplateVersion(ctx, &ibm.LookupIamRoleTemplateVersionArgs{
    			RoleTemplateId: "role_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 iamRoleTemplateVersion = Ibm.GetIamRoleTemplateVersion.Invoke(new()
        {
            RoleTemplateId = "role_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.GetIamRoleTemplateVersionArgs;
    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 iamRoleTemplateVersion = IbmFunctions.getIamRoleTemplateVersion(GetIamRoleTemplateVersionArgs.builder()
                .roleTemplateId("role_template_id")
                .version("version")
                .build());
    
        }
    }
    
    variables:
      iamRoleTemplateVersion:
        fn::invoke:
          function: ibm:getIamRoleTemplateVersion
          arguments:
            roleTemplateId: role_template_id
            version: version
    

    Using getIamRoleTemplateVersion

    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 getIamRoleTemplateVersion(args: GetIamRoleTemplateVersionArgs, opts?: InvokeOptions): Promise<GetIamRoleTemplateVersionResult>
    function getIamRoleTemplateVersionOutput(args: GetIamRoleTemplateVersionOutputArgs, opts?: InvokeOptions): Output<GetIamRoleTemplateVersionResult>
    def get_iam_role_template_version(id: Optional[str] = None,
                                      role_template_id: Optional[str] = None,
                                      version: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIamRoleTemplateVersionResult
    def get_iam_role_template_version_output(id: Optional[pulumi.Input[str]] = None,
                                      role_template_id: Optional[pulumi.Input[str]] = None,
                                      version: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIamRoleTemplateVersionResult]
    func LookupIamRoleTemplateVersion(ctx *Context, args *LookupIamRoleTemplateVersionArgs, opts ...InvokeOption) (*LookupIamRoleTemplateVersionResult, error)
    func LookupIamRoleTemplateVersionOutput(ctx *Context, args *LookupIamRoleTemplateVersionOutputArgs, opts ...InvokeOption) LookupIamRoleTemplateVersionResultOutput

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

    public static class GetIamRoleTemplateVersion 
    {
        public static Task<GetIamRoleTemplateVersionResult> InvokeAsync(GetIamRoleTemplateVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetIamRoleTemplateVersionResult> Invoke(GetIamRoleTemplateVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamRoleTemplateVersionResult> getIamRoleTemplateVersion(GetIamRoleTemplateVersionArgs args, InvokeOptions options)
    public static Output<GetIamRoleTemplateVersionResult> getIamRoleTemplateVersion(GetIamRoleTemplateVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamRoleTemplateVersion:getIamRoleTemplateVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RoleTemplateId string
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    Version string
    The role template version.
    Id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    RoleTemplateId string
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    Version string
    The role template version.
    Id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    roleTemplateId String
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    version String
    The role template version.
    id String
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    roleTemplateId string
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    version string
    The role template version.
    id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    role_template_id str
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    version str
    The role template version.
    id str
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    roleTemplateId String
    The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    version String
    The role template version.
    id String
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.

    getIamRoleTemplateVersion Result

    The following output properties are available:

    AccountId string
    (String) Enterprise account ID where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    Committed bool
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    CreatedAt string
    (String) The UTC timestamp when the role template was created.
    CreatedById string
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    Description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    Href string
    (String) The href URL that links to the role templates API by role template ID.
    Id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    LastModifiedAt string
    (String) The UTC timestamp when the role template was last modified.
    LastModifiedById string
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    Name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    RoleTemplateId string
    Roles List<GetIamRoleTemplateVersionRole>
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    State string
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    Version string
    (String) The version number of the template used to identify different versions of same template.

    • 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 where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    Committed bool
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    CreatedAt string
    (String) The UTC timestamp when the role template was created.
    CreatedById string
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    Description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    Href string
    (String) The href URL that links to the role templates API by role template ID.
    Id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    LastModifiedAt string
    (String) The UTC timestamp when the role template was last modified.
    LastModifiedById string
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    Name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    RoleTemplateId string
    Roles []GetIamRoleTemplateVersionRole
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    State string
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    Version string
    (String) The version number of the template used to identify different versions of same template.

    • 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 where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    committed Boolean
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    createdAt String
    (String) The UTC timestamp when the role template was created.
    createdById String
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    description String
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    href String
    (String) The href URL that links to the role templates API by role template ID.
    id String
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    lastModifiedAt String
    (String) The UTC timestamp when the role template was last modified.
    lastModifiedById String
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    name String
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    roleTemplateId String
    roles List<GetIamRoleTemplateVersionRole>
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    state String
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    version String
    (String) The version number of the template used to identify different versions of same template.

    • 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 where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    committed boolean
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    createdAt string
    (String) The UTC timestamp when the role template was created.
    createdById string
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    href string
    (String) The href URL that links to the role templates API by role template ID.
    id string
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    lastModifiedAt string
    (String) The UTC timestamp when the role template was last modified.
    lastModifiedById string
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    roleTemplateId string
    roles GetIamRoleTemplateVersionRole[]
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    state string
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    version string
    (String) The version number of the template used to identify different versions of same template.

    • 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 where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    committed bool
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    created_at str
    (String) The UTC timestamp when the role template was created.
    created_by_id str
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    description str
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    href str
    (String) The href URL that links to the role templates API by role template ID.
    id str
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    last_modified_at str
    (String) The UTC timestamp when the role template was last modified.
    last_modified_by_id str
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    name str
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    role_template_id str
    roles Sequence[GetIamRoleTemplateVersionRole]
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    state str
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    version str
    (String) The version number of the template used to identify different versions of same template.

    • 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 where this template is created.

    • Constraints: The maximum length is 32 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9-]*$/.
    committed Boolean
    (Boolean) Committed status of the template. If committed is set to true, then the template version can no longer be updated.
    createdAt String
    (String) The UTC timestamp when the role template was created.
    createdById String
    (String) The IAM ID of the entity that created the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    description String
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    href String
    (String) The href URL that links to the role templates API by role template ID.
    id String
    (String) The role template ID.

    • Constraints: The maximum length is 49 characters. The minimum length is 1 character. The value must match regular expression /^roleTemplate-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    lastModifiedAt String
    (String) The UTC timestamp when the role template was last modified.
    lastModifiedById String
    (String) The IAM ID of the entity that last modified the role template.

    • Constraints: The maximum length is 250 characters. The minimum length is 1 character.
    name String
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    roleTemplateId String
    roles List<Property Map>
    (List) The role properties that are created in an action resource when the template is assigned. Nested schema for role:
    state String
    (String) State of role template.

    • Constraints: Allowable values are: active, deleted.
    version String
    (String) The version number of the template used to identify different versions of same template.

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

    Supporting Types

    GetIamRoleTemplateVersionRole

    Actions List<string>
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    Description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    DisplayName string
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    Name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    ServiceName string
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.
    Actions []string
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    Description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    DisplayName string
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    Name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    ServiceName string
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.
    actions List<String>
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    description String
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    displayName String
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    name String
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    serviceName String
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.
    actions string[]
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    description string
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    displayName string
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    name string
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    serviceName string
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.
    actions Sequence[str]
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    description str
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    display_name str
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    name str
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    service_name str
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.
    actions List<String>
    (List) The actions of the role.

    • Constraints: The minimum length is 1 item.
    description String
    (String) Description of the role.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    displayName String
    (String) The display the name of the role that is shown in the console.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^((?!<|>).)*$/.
    name String
    (String) The name of the role that is used in the CRN. This must be alphanumeric and capitalized.

    • Constraints: The maximum length is 30 characters. The minimum length is 1 character. The value must match regular expression /^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
    serviceName String
    (String) The service name that the role refers.

    • Constraints: The maximum length is 300 characters. The minimum length is 1 character.

    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.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate