ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getAppidRole
Explore with Pulumi AI
Retrieve information about an IBM Cloud AppID Management Services role. For more information, see creating roles with API
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const role = ibm.getAppidRole({
tenantId: _var.tenant_id,
roleId: _var.role_id,
});
import pulumi
import pulumi_ibm as ibm
role = ibm.get_appid_role(tenant_id=var["tenant_id"],
role_id=var["role_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.LookupAppidRole(ctx, &ibm.LookupAppidRoleArgs{
TenantId: _var.Tenant_id,
RoleId: _var.Role_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 role = Ibm.GetAppidRole.Invoke(new()
{
TenantId = @var.Tenant_id,
RoleId = @var.Role_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.GetAppidRoleArgs;
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 role = IbmFunctions.getAppidRole(GetAppidRoleArgs.builder()
.tenantId(var_.tenant_id())
.roleId(var_.role_id())
.build());
}
}
variables:
role:
fn::invoke:
function: ibm:getAppidRole
arguments:
tenantId: ${var.tenant_id}
roleId: ${var.role_id}
Using getAppidRole
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 getAppidRole(args: GetAppidRoleArgs, opts?: InvokeOptions): Promise<GetAppidRoleResult>
function getAppidRoleOutput(args: GetAppidRoleOutputArgs, opts?: InvokeOptions): Output<GetAppidRoleResult>
def get_appid_role(id: Optional[str] = None,
role_id: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppidRoleResult
def get_appid_role_output(id: Optional[pulumi.Input[str]] = None,
role_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppidRoleResult]
func LookupAppidRole(ctx *Context, args *LookupAppidRoleArgs, opts ...InvokeOption) (*LookupAppidRoleResult, error)
func LookupAppidRoleOutput(ctx *Context, args *LookupAppidRoleOutputArgs, opts ...InvokeOption) LookupAppidRoleResultOutput
> Note: This function is named LookupAppidRole
in the Go SDK.
public static class GetAppidRole
{
public static Task<GetAppidRoleResult> InvokeAsync(GetAppidRoleArgs args, InvokeOptions? opts = null)
public static Output<GetAppidRoleResult> Invoke(GetAppidRoleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppidRoleResult> getAppidRole(GetAppidRoleArgs args, InvokeOptions options)
public static Output<GetAppidRoleResult> getAppidRole(GetAppidRoleArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getAppidRole:getAppidRole
arguments:
# arguments dictionary
The following arguments are supported:
getAppidRole Result
The following output properties are available:
- Accesses
List<Get
Appid Role Access> - (Set of Object) A set of access policies that bind specific application scopes to the role
- Description string
- (String) Role description
- Id string
- Name string
- (String) Role name
- Role
Id string - Tenant
Id string
- Accesses
[]Get
Appid Role Access - (Set of Object) A set of access policies that bind specific application scopes to the role
- Description string
- (String) Role description
- Id string
- Name string
- (String) Role name
- Role
Id string - Tenant
Id string
- accesses
List<Get
Appid Role Access> - (Set of Object) A set of access policies that bind specific application scopes to the role
- description String
- (String) Role description
- id String
- name String
- (String) Role name
- role
Id String - tenant
Id String
- accesses
Get
Appid Role Access[] - (Set of Object) A set of access policies that bind specific application scopes to the role
- description string
- (String) Role description
- id string
- name string
- (String) Role name
- role
Id string - tenant
Id string
- accesses
Sequence[Get
Appid Role Access] - (Set of Object) A set of access policies that bind specific application scopes to the role
- description str
- (String) Role description
- id str
- name str
- (String) Role name
- role_
id str - tenant_
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
- id String
- name String
- (String) Role name
- role
Id String - tenant
Id String
Supporting Types
GetAppidRoleAccess
- 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.