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

ibm.getAppidApplicationScopes

Explore with Pulumi AI

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

    Retrieve IBM Cloud AppID Management Services application scopes. For more information, see controlling access

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const scopes = ibm.getAppidApplicationScopes({
        tenantId: _var.tenant_id,
        clientId: _var.client_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scopes = ibm.get_appid_application_scopes(tenant_id=var["tenant_id"],
        client_id=var["client_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.LookupAppidApplicationScopes(ctx, &ibm.LookupAppidApplicationScopesArgs{
    			TenantId: _var.Tenant_id,
    			ClientId: _var.Client_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 scopes = Ibm.GetAppidApplicationScopes.Invoke(new()
        {
            TenantId = @var.Tenant_id,
            ClientId = @var.Client_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.GetAppidApplicationScopesArgs;
    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 scopes = IbmFunctions.getAppidApplicationScopes(GetAppidApplicationScopesArgs.builder()
                .tenantId(var_.tenant_id())
                .clientId(var_.client_id())
                .build());
    
        }
    }
    
    variables:
      scopes:
        fn::invoke:
          function: ibm:getAppidApplicationScopes
          arguments:
            tenantId: ${var.tenant_id}
            clientId: ${var.client_id}
    

    Using getAppidApplicationScopes

    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 getAppidApplicationScopes(args: GetAppidApplicationScopesArgs, opts?: InvokeOptions): Promise<GetAppidApplicationScopesResult>
    function getAppidApplicationScopesOutput(args: GetAppidApplicationScopesOutputArgs, opts?: InvokeOptions): Output<GetAppidApplicationScopesResult>
    def get_appid_application_scopes(client_id: Optional[str] = None,
                                     id: Optional[str] = None,
                                     tenant_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAppidApplicationScopesResult
    def get_appid_application_scopes_output(client_id: Optional[pulumi.Input[str]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     tenant_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetAppidApplicationScopesResult]
    func LookupAppidApplicationScopes(ctx *Context, args *LookupAppidApplicationScopesArgs, opts ...InvokeOption) (*LookupAppidApplicationScopesResult, error)
    func LookupAppidApplicationScopesOutput(ctx *Context, args *LookupAppidApplicationScopesOutputArgs, opts ...InvokeOption) LookupAppidApplicationScopesResultOutput

    > Note: This function is named LookupAppidApplicationScopes in the Go SDK.

    public static class GetAppidApplicationScopes 
    {
        public static Task<GetAppidApplicationScopesResult> InvokeAsync(GetAppidApplicationScopesArgs args, InvokeOptions? opts = null)
        public static Output<GetAppidApplicationScopesResult> Invoke(GetAppidApplicationScopesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppidApplicationScopesResult> getAppidApplicationScopes(GetAppidApplicationScopesArgs args, InvokeOptions options)
    public static Output<GetAppidApplicationScopesResult> getAppidApplicationScopes(GetAppidApplicationScopesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getAppidApplicationScopes:getAppidApplicationScopes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClientId string
    The AppID application identifier
    TenantId string
    The AppID instance GUID
    Id string
    ClientId string
    The AppID application identifier
    TenantId string
    The AppID instance GUID
    Id string
    clientId String
    The AppID application identifier
    tenantId String
    The AppID instance GUID
    id String
    clientId string
    The AppID application identifier
    tenantId string
    The AppID instance GUID
    id string
    client_id str
    The AppID application identifier
    tenant_id str
    The AppID instance GUID
    id str
    clientId String
    The AppID application identifier
    tenantId String
    The AppID instance GUID
    id String

    getAppidApplicationScopes Result

    The following output properties are available:

    ClientId string
    Id string
    Scopes List<string>
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    ClientId string
    Id string
    Scopes []string
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    TenantId string
    clientId String
    id String
    scopes List<String>
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String
    clientId string
    id string
    scopes string[]
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId string
    client_id str
    id str
    scopes Sequence[str]
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenant_id str
    clientId String
    id String
    scopes List<String>
    (List of String) A scope is a runtime action in your application that you register with IBM Cloud App ID to create access permission
    tenantId String

    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