1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppidApplicationRoles
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.AppidApplicationRoles

Explore with Pulumi AI

Create, update, or delete an IBM Cloud AppID Management Services application roles resource. For more information, see controlling access

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const roles = new ibm.AppidApplicationRoles("roles", {
    tenantId: _var.tenant_id,
    clientId: _var.client_id,
    roles: [
        "cf9bb562-8639-46f0-aa8c-0068e4162519",
        "a330db5f-fa42-4c42-9134-821535728f57",
    ],
});
Copy
import pulumi
import pulumi_ibm as ibm

roles = ibm.AppidApplicationRoles("roles",
    tenant_id=var["tenant_id"],
    client_id=var["client_id"],
    roles=[
        "cf9bb562-8639-46f0-aa8c-0068e4162519",
        "a330db5f-fa42-4c42-9134-821535728f57",
    ])
Copy
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.NewAppidApplicationRoles(ctx, "roles", &ibm.AppidApplicationRolesArgs{
			TenantId: pulumi.Any(_var.Tenant_id),
			ClientId: pulumi.Any(_var.Client_id),
			Roles: pulumi.StringArray{
				pulumi.String("cf9bb562-8639-46f0-aa8c-0068e4162519"),
				pulumi.String("a330db5f-fa42-4c42-9134-821535728f57"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var roles = new Ibm.AppidApplicationRoles("roles", new()
    {
        TenantId = @var.Tenant_id,
        ClientId = @var.Client_id,
        Roles = new[]
        {
            "cf9bb562-8639-46f0-aa8c-0068e4162519",
            "a330db5f-fa42-4c42-9134-821535728f57",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidApplicationRoles;
import com.pulumi.ibm.AppidApplicationRolesArgs;
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) {
        var roles = new AppidApplicationRoles("roles", AppidApplicationRolesArgs.builder()
            .tenantId(var_.tenant_id())
            .clientId(var_.client_id())
            .roles(            
                "cf9bb562-8639-46f0-aa8c-0068e4162519",
                "a330db5f-fa42-4c42-9134-821535728f57")
            .build());

    }
}
Copy
resources:
  roles:
    type: ibm:AppidApplicationRoles
    properties:
      tenantId: ${var.tenant_id}
      clientId: ${var.client_id}
      # AppID application client_id
      roles:
        - cf9bb562-8639-46f0-aa8c-0068e4162519
        - a330db5f-fa42-4c42-9134-821535728f57
Copy

Create AppidApplicationRoles Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AppidApplicationRoles(name: string, args: AppidApplicationRolesArgs, opts?: CustomResourceOptions);
@overload
def AppidApplicationRoles(resource_name: str,
                          args: AppidApplicationRolesArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def AppidApplicationRoles(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          client_id: Optional[str] = None,
                          roles: Optional[Sequence[str]] = None,
                          tenant_id: Optional[str] = None,
                          appid_application_roles_id: Optional[str] = None)
func NewAppidApplicationRoles(ctx *Context, name string, args AppidApplicationRolesArgs, opts ...ResourceOption) (*AppidApplicationRoles, error)
public AppidApplicationRoles(string name, AppidApplicationRolesArgs args, CustomResourceOptions? opts = null)
public AppidApplicationRoles(String name, AppidApplicationRolesArgs args)
public AppidApplicationRoles(String name, AppidApplicationRolesArgs args, CustomResourceOptions options)
type: ibm:AppidApplicationRoles
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppidApplicationRolesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppidApplicationRolesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppidApplicationRolesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppidApplicationRolesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppidApplicationRolesArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var appidApplicationRolesResource = new Ibm.AppidApplicationRoles("appidApplicationRolesResource", new()
{
    ClientId = "string",
    Roles = new[]
    {
        "string",
    },
    TenantId = "string",
    AppidApplicationRolesId = "string",
});
Copy
example, err := ibm.NewAppidApplicationRoles(ctx, "appidApplicationRolesResource", &ibm.AppidApplicationRolesArgs{
ClientId: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.String("string"),
AppidApplicationRolesId: pulumi.String("string"),
})
Copy
var appidApplicationRolesResource = new AppidApplicationRoles("appidApplicationRolesResource", AppidApplicationRolesArgs.builder()
    .clientId("string")
    .roles("string")
    .tenantId("string")
    .appidApplicationRolesId("string")
    .build());
Copy
appid_application_roles_resource = ibm.AppidApplicationRoles("appidApplicationRolesResource",
    client_id="string",
    roles=["string"],
    tenant_id="string",
    appid_application_roles_id="string")
Copy
const appidApplicationRolesResource = new ibm.AppidApplicationRoles("appidApplicationRolesResource", {
    clientId: "string",
    roles: ["string"],
    tenantId: "string",
    appidApplicationRolesId: "string",
});
Copy
type: ibm:AppidApplicationRoles
properties:
    appidApplicationRolesId: string
    clientId: string
    roles:
        - string
    tenantId: string
Copy

AppidApplicationRoles Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AppidApplicationRoles resource accepts the following input properties:

ClientId This property is required. string
The AppID application identifier
Roles This property is required. List<string>
A list of AppID role identifiers
TenantId This property is required. string
The AppID instance GUID
AppidApplicationRolesId string
ClientId This property is required. string
The AppID application identifier
Roles This property is required. []string
A list of AppID role identifiers
TenantId This property is required. string
The AppID instance GUID
AppidApplicationRolesId string
clientId This property is required. String
The AppID application identifier
roles This property is required. List<String>
A list of AppID role identifiers
tenantId This property is required. String
The AppID instance GUID
appidApplicationRolesId String
clientId This property is required. string
The AppID application identifier
roles This property is required. string[]
A list of AppID role identifiers
tenantId This property is required. string
The AppID instance GUID
appidApplicationRolesId string
client_id This property is required. str
The AppID application identifier
roles This property is required. Sequence[str]
A list of AppID role identifiers
tenant_id This property is required. str
The AppID instance GUID
appid_application_roles_id str
clientId This property is required. String
The AppID application identifier
roles This property is required. List<String>
A list of AppID role identifiers
tenantId This property is required. String
The AppID instance GUID
appidApplicationRolesId String

Outputs

All input properties are implicitly available as output properties. Additionally, the AppidApplicationRoles resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AppidApplicationRoles Resource

Get an existing AppidApplicationRoles resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AppidApplicationRolesState, opts?: CustomResourceOptions): AppidApplicationRoles
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        appid_application_roles_id: Optional[str] = None,
        client_id: Optional[str] = None,
        roles: Optional[Sequence[str]] = None,
        tenant_id: Optional[str] = None) -> AppidApplicationRoles
func GetAppidApplicationRoles(ctx *Context, name string, id IDInput, state *AppidApplicationRolesState, opts ...ResourceOption) (*AppidApplicationRoles, error)
public static AppidApplicationRoles Get(string name, Input<string> id, AppidApplicationRolesState? state, CustomResourceOptions? opts = null)
public static AppidApplicationRoles get(String name, Output<String> id, AppidApplicationRolesState state, CustomResourceOptions options)
resources:  _:    type: ibm:AppidApplicationRoles    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AppidApplicationRolesId string
ClientId string
The AppID application identifier
Roles List<string>
A list of AppID role identifiers
TenantId string
The AppID instance GUID
AppidApplicationRolesId string
ClientId string
The AppID application identifier
Roles []string
A list of AppID role identifiers
TenantId string
The AppID instance GUID
appidApplicationRolesId String
clientId String
The AppID application identifier
roles List<String>
A list of AppID role identifiers
tenantId String
The AppID instance GUID
appidApplicationRolesId string
clientId string
The AppID application identifier
roles string[]
A list of AppID role identifiers
tenantId string
The AppID instance GUID
appid_application_roles_id str
client_id str
The AppID application identifier
roles Sequence[str]
A list of AppID role identifiers
tenant_id str
The AppID instance GUID
appidApplicationRolesId String
clientId String
The AppID application identifier
roles List<String>
A list of AppID role identifiers
tenantId String
The AppID instance GUID

Import

The ibm_appid_application_roles resource can be imported by using the AppID tenant ID and application client ID.

Syntax

bash

$ pulumi import ibm:index/appidApplicationRoles:AppidApplicationRoles roles <tenant_id>/<client_id>
Copy

Example

bash

$ pulumi import ibm:index/appidApplicationRoles:AppidApplicationRoles roles 4be72312-63b7-45fa-9b58-3ae6cd2c90e7/ace469ef-5e1a-4991-8a65-2201b1c5c362
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.