1. Packages
  2. Packages
  3. Gitlab Provider
  4. API Docs
  5. getRunnerControllerScopes
Viewing docs for GitLab v9.11.0
published on Tuesday, Apr 21, 2026 by Pulumi
gitlab logo
Viewing docs for GitLab v9.11.0
published on Tuesday, Apr 21, 2026 by Pulumi

    The gitlab.getRunnerControllerScopes data source retrieves scopes for a runner controller.

    This data source is experimental and may change or be removed in future versions. Introduced in GitLab 18.10.

    This data source requires administration privileges.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const example = gitlab.getRunnerControllerScopes({
        runnerControllerId: 1,
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.get_runner_controller_scopes(runner_controller_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v9/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gitlab.GetRunnerControllerScopes(ctx, &gitlab.GetRunnerControllerScopesArgs{
    			RunnerControllerId: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var example = GitLab.Index.GetRunnerControllerScopes.Invoke(new()
        {
            RunnerControllerId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GitlabFunctions;
    import com.pulumi.gitlab.inputs.GetRunnerControllerScopesArgs;
    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 example = GitlabFunctions.getRunnerControllerScopes(GetRunnerControllerScopesArgs.builder()
                .runnerControllerId(1)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: gitlab:getRunnerControllerScopes
          arguments:
            runnerControllerId: 1
    

    Using getRunnerControllerScopes

    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 getRunnerControllerScopes(args: GetRunnerControllerScopesArgs, opts?: InvokeOptions): Promise<GetRunnerControllerScopesResult>
    function getRunnerControllerScopesOutput(args: GetRunnerControllerScopesOutputArgs, opts?: InvokeOptions): Output<GetRunnerControllerScopesResult>
    def get_runner_controller_scopes(runner_controller_id: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetRunnerControllerScopesResult
    def get_runner_controller_scopes_output(runner_controller_id: Optional[pulumi.Input[int]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetRunnerControllerScopesResult]
    func GetRunnerControllerScopes(ctx *Context, args *GetRunnerControllerScopesArgs, opts ...InvokeOption) (*GetRunnerControllerScopesResult, error)
    func GetRunnerControllerScopesOutput(ctx *Context, args *GetRunnerControllerScopesOutputArgs, opts ...InvokeOption) GetRunnerControllerScopesResultOutput

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

    public static class GetRunnerControllerScopes 
    {
        public static Task<GetRunnerControllerScopesResult> InvokeAsync(GetRunnerControllerScopesArgs args, InvokeOptions? opts = null)
        public static Output<GetRunnerControllerScopesResult> Invoke(GetRunnerControllerScopesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRunnerControllerScopesResult> getRunnerControllerScopes(GetRunnerControllerScopesArgs args, InvokeOptions options)
    public static Output<GetRunnerControllerScopesResult> getRunnerControllerScopes(GetRunnerControllerScopesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gitlab:index/getRunnerControllerScopes:getRunnerControllerScopes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RunnerControllerId int
    The ID of the runner controller.
    RunnerControllerId int
    The ID of the runner controller.
    runnerControllerId Integer
    The ID of the runner controller.
    runnerControllerId number
    The ID of the runner controller.
    runner_controller_id int
    The ID of the runner controller.
    runnerControllerId Number
    The ID of the runner controller.

    getRunnerControllerScopes Result

    The following output properties are available:

    Id string
    The ID of this data source. In the format of <runner_controller_id>.
    InstanceLevelScopings List<Pulumi.GitLab.Outputs.GetRunnerControllerScopesInstanceLevelScoping>
    The list of instance-level scopings.
    RunnerControllerId int
    The ID of the runner controller.
    RunnerLevelScopings List<Pulumi.GitLab.Outputs.GetRunnerControllerScopesRunnerLevelScoping>
    The list of runner-level scopings.
    Id string
    The ID of this data source. In the format of <runner_controller_id>.
    InstanceLevelScopings []GetRunnerControllerScopesInstanceLevelScoping
    The list of instance-level scopings.
    RunnerControllerId int
    The ID of the runner controller.
    RunnerLevelScopings []GetRunnerControllerScopesRunnerLevelScoping
    The list of runner-level scopings.
    id String
    The ID of this data source. In the format of <runner_controller_id>.
    instanceLevelScopings List<GetRunnerControllerScopesInstanceLevelScoping>
    The list of instance-level scopings.
    runnerControllerId Integer
    The ID of the runner controller.
    runnerLevelScopings List<GetRunnerControllerScopesRunnerLevelScoping>
    The list of runner-level scopings.
    id string
    The ID of this data source. In the format of <runner_controller_id>.
    instanceLevelScopings GetRunnerControllerScopesInstanceLevelScoping[]
    The list of instance-level scopings.
    runnerControllerId number
    The ID of the runner controller.
    runnerLevelScopings GetRunnerControllerScopesRunnerLevelScoping[]
    The list of runner-level scopings.
    id str
    The ID of this data source. In the format of <runner_controller_id>.
    instance_level_scopings Sequence[GetRunnerControllerScopesInstanceLevelScoping]
    The list of instance-level scopings.
    runner_controller_id int
    The ID of the runner controller.
    runner_level_scopings Sequence[GetRunnerControllerScopesRunnerLevelScoping]
    The list of runner-level scopings.
    id String
    The ID of this data source. In the format of <runner_controller_id>.
    instanceLevelScopings List<Property Map>
    The list of instance-level scopings.
    runnerControllerId Number
    The ID of the runner controller.
    runnerLevelScopings List<Property Map>
    The list of runner-level scopings.

    Supporting Types

    GetRunnerControllerScopesInstanceLevelScoping

    CreatedAt string
    The time the scope was created.
    UpdatedAt string
    The time the scope was last updated.
    CreatedAt string
    The time the scope was created.
    UpdatedAt string
    The time the scope was last updated.
    createdAt String
    The time the scope was created.
    updatedAt String
    The time the scope was last updated.
    createdAt string
    The time the scope was created.
    updatedAt string
    The time the scope was last updated.
    created_at str
    The time the scope was created.
    updated_at str
    The time the scope was last updated.
    createdAt String
    The time the scope was created.
    updatedAt String
    The time the scope was last updated.

    GetRunnerControllerScopesRunnerLevelScoping

    CreatedAt string
    The time the scope was created.
    RunnerId int
    The ID of the runner.
    UpdatedAt string
    The time the scope was last updated.
    CreatedAt string
    The time the scope was created.
    RunnerId int
    The ID of the runner.
    UpdatedAt string
    The time the scope was last updated.
    createdAt String
    The time the scope was created.
    runnerId Integer
    The ID of the runner.
    updatedAt String
    The time the scope was last updated.
    createdAt string
    The time the scope was created.
    runnerId number
    The ID of the runner.
    updatedAt string
    The time the scope was last updated.
    created_at str
    The time the scope was created.
    runner_id int
    The ID of the runner.
    updated_at str
    The time the scope was last updated.
    createdAt String
    The time the scope was created.
    runnerId Number
    The ID of the runner.
    updatedAt String
    The time the scope was last updated.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    Viewing docs for GitLab v9.11.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.