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

ibm.AppidApplicationRoles

Explore with Pulumi AI

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

    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",
        ],
    });
    
    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",
        ])
    
    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
    	})
    }
    
    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",
            },
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 string
    The unique name of the resource.
    args AppidApplicationRolesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args AppidApplicationRolesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppidApplicationRolesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var appidApplicationRolesResource = new AppidApplicationRoles("appidApplicationRolesResource", AppidApplicationRolesArgs.builder()
        .clientId("string")
        .roles("string")
        .tenantId("string")
        .appidApplicationRolesId("string")
        .build());
    
    appid_application_roles_resource = ibm.AppidApplicationRoles("appidApplicationRolesResource",
        client_id="string",
        roles=["string"],
        tenant_id="string",
        appid_application_roles_id="string")
    
    const appidApplicationRolesResource = new ibm.AppidApplicationRoles("appidApplicationRolesResource", {
        clientId: "string",
        roles: ["string"],
        tenantId: "string",
        appidApplicationRolesId: "string",
    });
    
    type: ibm:AppidApplicationRoles
    properties:
        appidApplicationRolesId: string
        clientId: string
        roles:
            - string
        tenantId: string
    

    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 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
    appidApplicationRolesId string
    client_id str
    The AppID application identifier
    roles Sequence[str]
    A list of AppID role identifiers
    tenant_id str
    The AppID instance GUID
    appid_application_roles_id str
    clientId String
    The AppID application identifier
    roles List<String>
    A list of AppID role identifiers
    tenantId 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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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>
    

    Example

    bash

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

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud