ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getAppidRoles
Explore with Pulumi AI
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:
getAppidRoles Result
The following output properties are available:
- Id string
- Roles
List<Get
Appid Roles Role> - (List of Object) A list of AppID roles
- Tenant
Id string
- Id string
- Roles
[]Get
Appid Roles Role - (List of Object) A list of AppID roles
- Tenant
Id string
- id String
- roles
List<Get
Appid Roles Role> - (List of Object) A list of AppID roles
- tenant
Id String
- id string
- roles
Get
Appid Roles Role[] - (List of Object) A list of AppID roles
- tenant
Id string
- id str
- roles
Sequence[Get
Appid Roles Role] - (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
- tenant
Id String
Supporting Types
GetAppidRolesRole
- Accesses
List<Get
Appid Roles Role Access> - (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
- Role
Id string
- Accesses
[]Get
Appid Roles Role Access - (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
- Role
Id string
- accesses
List<Get
Appid Roles Role Access> - (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
- role
Id String
- accesses
Get
Appid Roles Role Access[] - (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
- role
Id string
- accesses
Sequence[Get
Appid Roles Role Access] - (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
- role
Id String
GetAppidRolesRoleAccess
- Application
Id string - (String) AppID application identifier
- Scopes List<string>
- (List of String) A list of AppID application scopes
- Application
Id string - (String) AppID application identifier
- Scopes []string
- (List of String) A list of AppID application scopes
- application
Id String - (String) AppID application identifier
- scopes List<String>
- (List of String) A list of AppID application scopes
- application
Id 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
- application
Id 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.