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

ibm.getIamRoleActions

Explore with Pulumi AI

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

    Retrieve a list of actions for an IBM Cloud service that are included in an IAM service access role. For more information, about IAM role action, see actions and roles for account management services.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const test = ibm.getIamRoleActions({
        service: "kms",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test = ibm.get_iam_role_actions(service="kms")
    
    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.GetIamRoleActions(ctx, &ibm.GetIamRoleActionsArgs{
    			Service: "kms",
    		}, 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 test = Ibm.GetIamRoleActions.Invoke(new()
        {
            Service = "kms",
        });
    
    });
    
    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.GetIamRoleActionsArgs;
    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 test = IbmFunctions.getIamRoleActions(GetIamRoleActionsArgs.builder()
                .service("kms")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: ibm:getIamRoleActions
          arguments:
            service: kms
    

    Using getIamRoleActions

    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 getIamRoleActions(args: GetIamRoleActionsArgs, opts?: InvokeOptions): Promise<GetIamRoleActionsResult>
    function getIamRoleActionsOutput(args: GetIamRoleActionsOutputArgs, opts?: InvokeOptions): Output<GetIamRoleActionsResult>
    def get_iam_role_actions(id: Optional[str] = None,
                             service: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetIamRoleActionsResult
    def get_iam_role_actions_output(id: Optional[pulumi.Input[str]] = None,
                             service: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetIamRoleActionsResult]
    func GetIamRoleActions(ctx *Context, args *GetIamRoleActionsArgs, opts ...InvokeOption) (*GetIamRoleActionsResult, error)
    func GetIamRoleActionsOutput(ctx *Context, args *GetIamRoleActionsOutputArgs, opts ...InvokeOption) GetIamRoleActionsResultOutput

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

    public static class GetIamRoleActions 
    {
        public static Task<GetIamRoleActionsResult> InvokeAsync(GetIamRoleActionsArgs args, InvokeOptions? opts = null)
        public static Output<GetIamRoleActionsResult> Invoke(GetIamRoleActionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamRoleActionsResult> getIamRoleActions(GetIamRoleActionsArgs args, InvokeOptions options)
    public static Output<GetIamRoleActionsResult> getIamRoleActions(GetIamRoleActionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamRoleActions:getIamRoleActions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Service string
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    Id string
    (String) The unique identifier of the service.
    Service string
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    Id string
    (String) The unique identifier of the service.
    service String
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    id String
    (String) The unique identifier of the service.
    service string
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    id string
    (String) The unique identifier of the service.
    service str
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    id str
    (String) The unique identifier of the service.
    service String
    The name of the IBM Cloud service for which you want to list supported actions. For account management services, you can find supported values in the documentation. For other services, run the ibmcloud catalog service-marketplace command and retrieve the value from the Name column of your command line output.
    id String
    (String) The unique identifier of the service.

    getIamRoleActions Result

    The following output properties are available:

    Actions Dictionary<string, string>
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    Id string
    (String) The unique identifier of the service.
    Managers List<string>
    (List of strings) A list of supported actions that require the Manager service access role.
    ReaderPluses List<string>
    (List of strings) A list of supported actions that require the Reader plus service access role.
    Readers List<string>
    (List of strings) A list of supported actions that require the Reader service access role.
    Service string
    Writers List<string>
    (List of strings) A list of supported actions that require the Writer service access role.
    Actions map[string]string
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    Id string
    (String) The unique identifier of the service.
    Managers []string
    (List of strings) A list of supported actions that require the Manager service access role.
    ReaderPluses []string
    (List of strings) A list of supported actions that require the Reader plus service access role.
    Readers []string
    (List of strings) A list of supported actions that require the Reader service access role.
    Service string
    Writers []string
    (List of strings) A list of supported actions that require the Writer service access role.
    actions Map<String,String>
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    id String
    (String) The unique identifier of the service.
    managers List<String>
    (List of strings) A list of supported actions that require the Manager service access role.
    readerPluses List<String>
    (List of strings) A list of supported actions that require the Reader plus service access role.
    readers List<String>
    (List of strings) A list of supported actions that require the Reader service access role.
    service String
    writers List<String>
    (List of strings) A list of supported actions that require the Writer service access role.
    actions {[key: string]: string}
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    id string
    (String) The unique identifier of the service.
    managers string[]
    (List of strings) A list of supported actions that require the Manager service access role.
    readerPluses string[]
    (List of strings) A list of supported actions that require the Reader plus service access role.
    readers string[]
    (List of strings) A list of supported actions that require the Reader service access role.
    service string
    writers string[]
    (List of strings) A list of supported actions that require the Writer service access role.
    actions Mapping[str, str]
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    id str
    (String) The unique identifier of the service.
    managers Sequence[str]
    (List of strings) A list of supported actions that require the Manager service access role.
    reader_pluses Sequence[str]
    (List of strings) A list of supported actions that require the Reader plus service access role.
    readers Sequence[str]
    (List of strings) A list of supported actions that require the Reader service access role.
    service str
    writers Sequence[str]
    (List of strings) A list of supported actions that require the Writer service access role.
    actions Map<String>
    (Map of (string, string)) A map containing all roles and actions in key value format. The key contains a string equal to the role name and value contains a string of all the actions separated by a comma (",").
    id String
    (String) The unique identifier of the service.
    managers List<String>
    (List of strings) A list of supported actions that require the Manager service access role.
    readerPluses List<String>
    (List of strings) A list of supported actions that require the Reader plus service access role.
    readers List<String>
    (List of strings) A list of supported actions that require the Reader service access role.
    service String
    writers List<String>
    (List of strings) A list of supported actions that require the Writer service access role.

    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