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

ibm.getAppidRoles

Explore with Pulumi AI

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

    Retrieve information about an IBM Cloud AppID Management Services roles. For more information, see creating roles with API

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const roles = ibm.getAppidRoles({
        tenantId: _var.tenant_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    roles = ibm.get_appid_roles(tenant_id=var["tenant_id"])
    
    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.GetAppidRoles(ctx, &ibm.GetAppidRolesArgs{
    			TenantId: _var.Tenant_id,
    		}, 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 roles = Ibm.GetAppidRoles.Invoke(new()
        {
            TenantId = @var.Tenant_id,
        });
    
    });
    
    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.GetAppidRolesArgs;
    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 roles = IbmFunctions.getAppidRoles(GetAppidRolesArgs.builder()
                .tenantId(var_.tenant_id())
                .build());
    
        }
    }
    
    variables:
      roles:
        fn::invoke:
          function: ibm:getAppidRoles
          arguments:
            tenantId: ${var.tenant_id}
    

    Using getAppidRoles

    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 getAppidRoles(args: GetAppidRolesArgs, opts?: InvokeOptions): Promise<GetAppidRolesResult>
    function getAppidRolesOutput(args: GetAppidRolesOutputArgs, opts?: InvokeOptions): Output<GetAppidRolesResult>
    def get_appid_roles(id: Optional[str] = None,
                        tenant_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAppidRolesResult
    def get_appid_roles_output(id: Optional[pulumi.Input[str]] = None,
                        tenant_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAppidRolesResult]
    func GetAppidRoles(ctx *Context, args *GetAppidRolesArgs, opts ...InvokeOption) (*GetAppidRolesResult, error)
    func GetAppidRolesOutput(ctx *Context, args *GetAppidRolesOutputArgs, opts ...InvokeOption) GetAppidRolesResultOutput

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

    public static class GetAppidRoles 
    {
        public static Task<GetAppidRolesResult> InvokeAsync(GetAppidRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetAppidRolesResult> Invoke(GetAppidRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppidRolesResult> getAppidRoles(GetAppidRolesArgs args, InvokeOptions options)
    public static Output<GetAppidRolesResult> getAppidRoles(GetAppidRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getAppidRoles:getAppidRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TenantId string
    The AppID instance GUID
    Id string
    TenantId string
    The AppID instance GUID
    Id string
    tenantId String
    The AppID instance GUID
    id String
    tenantId string
    The AppID instance GUID
    id string
    tenant_id str
    The AppID instance GUID
    id str
    tenantId String
    The AppID instance GUID
    id String

    getAppidRoles Result

    The following output properties are available:

    Id string
    Roles List<GetAppidRolesRole>
    (List of Object) A list of AppID roles
    TenantId string
    Id string
    Roles []GetAppidRolesRole
    (List of Object) A list of AppID roles
    TenantId string
    id String
    roles List<GetAppidRolesRole>
    (List of Object) A list of AppID roles
    tenantId String
    id string
    roles GetAppidRolesRole[]
    (List of Object) A list of AppID roles
    tenantId string
    id str
    roles Sequence[GetAppidRolesRole]
    (List of Object) A list of AppID roles
    tenant_id str
    id String
    roles List<Property Map>
    (List of Object) A list of AppID roles
    tenantId String

    Supporting Types

    GetAppidRolesRole

    Accesses List<GetAppidRolesRoleAccess>
    (Set of Object) A set of access policies that bind specific application scopes to the role
    Description string
    (String) Role description
    Name string
    (String) Role name
    RoleId string
    Accesses []GetAppidRolesRoleAccess
    (Set of Object) A set of access policies that bind specific application scopes to the role
    Description string
    (String) Role description
    Name string
    (String) Role name
    RoleId string
    accesses List<GetAppidRolesRoleAccess>
    (Set of Object) A set of access policies that bind specific application scopes to the role
    description String
    (String) Role description
    name String
    (String) Role name
    roleId String
    accesses GetAppidRolesRoleAccess[]
    (Set of Object) A set of access policies that bind specific application scopes to the role
    description string
    (String) Role description
    name string
    (String) Role name
    roleId string
    accesses Sequence[GetAppidRolesRoleAccess]
    (Set of Object) A set of access policies that bind specific application scopes to the role
    description str
    (String) Role description
    name str
    (String) Role name
    role_id str
    accesses List<Property Map>
    (Set of Object) A set of access policies that bind specific application scopes to the role
    description String
    (String) Role description
    name String
    (String) Role name
    roleId String

    GetAppidRolesRoleAccess

    ApplicationId string
    (String) AppID application identifier
    Scopes List<string>
    (List of String) A list of AppID application scopes
    ApplicationId string
    (String) AppID application identifier
    Scopes []string
    (List of String) A list of AppID application scopes
    applicationId String
    (String) AppID application identifier
    scopes List<String>
    (List of String) A list of AppID application scopes
    applicationId string
    (String) AppID application identifier
    scopes string[]
    (List of String) A list of AppID application scopes
    application_id str
    (String) AppID application identifier
    scopes Sequence[str]
    (List of String) A list of AppID application scopes
    applicationId String
    (String) AppID application identifier
    scopes List<String>
    (List of String) A list of AppID application scopes

    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