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

ibm.AppidApplicationScopes

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 scopes resource. For more information, see controlling access

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const scopes = new ibm.AppidApplicationScopes("scopes", {
        tenantId: _var.tenant_id,
        clientId: _var.client_id,
        scopes: [
            "scope_1",
            "scope_2",
            "scope_3",
        ],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scopes = ibm.AppidApplicationScopes("scopes",
        tenant_id=var["tenant_id"],
        client_id=var["client_id"],
        scopes=[
            "scope_1",
            "scope_2",
            "scope_3",
        ])
    
    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.NewAppidApplicationScopes(ctx, "scopes", &ibm.AppidApplicationScopesArgs{
    			TenantId: pulumi.Any(_var.Tenant_id),
    			ClientId: pulumi.Any(_var.Client_id),
    			Scopes: pulumi.StringArray{
    				pulumi.String("scope_1"),
    				pulumi.String("scope_2"),
    				pulumi.String("scope_3"),
    			},
    		})
    		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 scopes = new Ibm.AppidApplicationScopes("scopes", new()
        {
            TenantId = @var.Tenant_id,
            ClientId = @var.Client_id,
            Scopes = new[]
            {
                "scope_1",
                "scope_2",
                "scope_3",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppidApplicationScopes;
    import com.pulumi.ibm.AppidApplicationScopesArgs;
    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 scopes = new AppidApplicationScopes("scopes", AppidApplicationScopesArgs.builder()
                .tenantId(var_.tenant_id())
                .clientId(var_.client_id())
                .scopes(            
                    "scope_1",
                    "scope_2",
                    "scope_3")
                .build());
    
        }
    }
    
    resources:
      scopes:
        type: ibm:AppidApplicationScopes
        properties:
          tenantId: ${var.tenant_id}
          clientId: ${var.client_id}
          # AppID application client_id
          scopes:
            - scope_1
            - scope_2
            - scope_3
    

    Create AppidApplicationScopes Resource

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

    Constructor syntax

    new AppidApplicationScopes(name: string, args: AppidApplicationScopesArgs, opts?: CustomResourceOptions);
    @overload
    def AppidApplicationScopes(resource_name: str,
                               args: AppidApplicationScopesArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppidApplicationScopes(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               client_id: Optional[str] = None,
                               scopes: Optional[Sequence[str]] = None,
                               tenant_id: Optional[str] = None,
                               appid_application_scopes_id: Optional[str] = None)
    func NewAppidApplicationScopes(ctx *Context, name string, args AppidApplicationScopesArgs, opts ...ResourceOption) (*AppidApplicationScopes, error)
    public AppidApplicationScopes(string name, AppidApplicationScopesArgs args, CustomResourceOptions? opts = null)
    public AppidApplicationScopes(String name, AppidApplicationScopesArgs args)
    public AppidApplicationScopes(String name, AppidApplicationScopesArgs args, CustomResourceOptions options)
    
    type: ibm:AppidApplicationScopes
    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 AppidApplicationScopesArgs
    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 AppidApplicationScopesArgs
    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 AppidApplicationScopesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppidApplicationScopesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppidApplicationScopesArgs
    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 appidApplicationScopesResource = new Ibm.AppidApplicationScopes("appidApplicationScopesResource", new()
    {
        ClientId = "string",
        Scopes = new[]
        {
            "string",
        },
        TenantId = "string",
        AppidApplicationScopesId = "string",
    });
    
    example, err := ibm.NewAppidApplicationScopes(ctx, "appidApplicationScopesResource", &ibm.AppidApplicationScopesArgs{
    	ClientId: pulumi.String("string"),
    	Scopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId:                 pulumi.String("string"),
    	AppidApplicationScopesId: pulumi.String("string"),
    })
    
    var appidApplicationScopesResource = new AppidApplicationScopes("appidApplicationScopesResource", AppidApplicationScopesArgs.builder()
        .clientId("string")
        .scopes("string")
        .tenantId("string")
        .appidApplicationScopesId("string")
        .build());
    
    appid_application_scopes_resource = ibm.AppidApplicationScopes("appidApplicationScopesResource",
        client_id="string",
        scopes=["string"],
        tenant_id="string",
        appid_application_scopes_id="string")
    
    const appidApplicationScopesResource = new ibm.AppidApplicationScopes("appidApplicationScopesResource", {
        clientId: "string",
        scopes: ["string"],
        tenantId: "string",
        appidApplicationScopesId: "string",
    });
    
    type: ibm:AppidApplicationScopes
    properties:
        appidApplicationScopesId: string
        clientId: string
        scopes:
            - string
        tenantId: string
    

    AppidApplicationScopes 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 AppidApplicationScopes resource accepts the following input properties:

    ClientId string
    The AppID application identifier
    Scopes List<string>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    The AppID instance GUID
    AppidApplicationScopesId string
    ClientId string
    The AppID application identifier
    Scopes []string
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    The AppID instance GUID
    AppidApplicationScopesId string
    clientId String
    The AppID application identifier
    scopes List<String>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String
    The AppID instance GUID
    appidApplicationScopesId String
    clientId string
    The AppID application identifier
    scopes string[]
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId string
    The AppID instance GUID
    appidApplicationScopesId string
    client_id str
    The AppID application identifier
    scopes Sequence[str]
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenant_id str
    The AppID instance GUID
    appid_application_scopes_id str
    clientId String
    The AppID application identifier
    scopes List<String>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String
    The AppID instance GUID
    appidApplicationScopesId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppidApplicationScopes 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 AppidApplicationScopes Resource

    Get an existing AppidApplicationScopes 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?: AppidApplicationScopesState, opts?: CustomResourceOptions): AppidApplicationScopes
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appid_application_scopes_id: Optional[str] = None,
            client_id: Optional[str] = None,
            scopes: Optional[Sequence[str]] = None,
            tenant_id: Optional[str] = None) -> AppidApplicationScopes
    func GetAppidApplicationScopes(ctx *Context, name string, id IDInput, state *AppidApplicationScopesState, opts ...ResourceOption) (*AppidApplicationScopes, error)
    public static AppidApplicationScopes Get(string name, Input<string> id, AppidApplicationScopesState? state, CustomResourceOptions? opts = null)
    public static AppidApplicationScopes get(String name, Output<String> id, AppidApplicationScopesState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppidApplicationScopes    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:
    AppidApplicationScopesId string
    ClientId string
    The AppID application identifier
    Scopes List<string>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    The AppID instance GUID
    AppidApplicationScopesId string
    ClientId string
    The AppID application identifier
    Scopes []string
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    The AppID instance GUID
    appidApplicationScopesId String
    clientId String
    The AppID application identifier
    scopes List<String>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String
    The AppID instance GUID
    appidApplicationScopesId string
    clientId string
    The AppID application identifier
    scopes string[]
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId string
    The AppID instance GUID
    appid_application_scopes_id str
    client_id str
    The AppID application identifier
    scopes Sequence[str]
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenant_id str
    The AppID instance GUID
    appidApplicationScopesId String
    clientId String
    The AppID application identifier
    scopes List<String>
    A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String
    The AppID instance GUID

    Import

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

    Syntax

    bash

    $ pulumi import ibm:index/appidApplicationScopes:AppidApplicationScopes scopes <tenant_id>/<client_id>
    

    Example

    bash

    $ pulumi import ibm:index/appidApplicationScopes:AppidApplicationScopes scopes 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