published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
The gitlab.RunnerController resource manages the lifecycle of a runner controller.
This resource is experimental and may change or be removed in future versions. Introduced in GitLab 18.9.
This resource 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 = new gitlab.RunnerController("example", {
description: "My runner controller",
state: "enabled",
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.RunnerController("example",
description="My runner controller",
state="enabled")
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.NewRunnerController(ctx, "example", &gitlab.RunnerControllerArgs{
Description: pulumi.String("My runner controller"),
State: pulumi.String("enabled"),
})
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 = new GitLab.Index.RunnerController("example", new()
{
Description = "My runner controller",
State = "enabled",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.RunnerController;
import com.pulumi.gitlab.RunnerControllerArgs;
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 example = new RunnerController("example", RunnerControllerArgs.builder()
.description("My runner controller")
.state("enabled")
.build());
}
}
resources:
example:
type: gitlab:RunnerController
properties:
description: My runner controller
state: enabled
Create RunnerController Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RunnerController(name: string, args?: RunnerControllerArgs, opts?: CustomResourceOptions);@overload
def RunnerController(resource_name: str,
args: Optional[RunnerControllerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RunnerController(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
state: Optional[str] = None)func NewRunnerController(ctx *Context, name string, args *RunnerControllerArgs, opts ...ResourceOption) (*RunnerController, error)public RunnerController(string name, RunnerControllerArgs? args = null, CustomResourceOptions? opts = null)
public RunnerController(String name, RunnerControllerArgs args)
public RunnerController(String name, RunnerControllerArgs args, CustomResourceOptions options)
type: gitlab:RunnerController
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 RunnerControllerArgs
- 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 RunnerControllerArgs
- 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 RunnerControllerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunnerControllerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RunnerControllerArgs
- 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 runnerControllerResource = new GitLab.RunnerController("runnerControllerResource", new()
{
Description = "string",
State = "string",
});
example, err := gitlab.NewRunnerController(ctx, "runnerControllerResource", &gitlab.RunnerControllerArgs{
Description: pulumi.String("string"),
State: pulumi.String("string"),
})
var runnerControllerResource = new RunnerController("runnerControllerResource", RunnerControllerArgs.builder()
.description("string")
.state("string")
.build());
runner_controller_resource = gitlab.RunnerController("runnerControllerResource",
description="string",
state="string")
const runnerControllerResource = new gitlab.RunnerController("runnerControllerResource", {
description: "string",
state: "string",
});
type: gitlab:RunnerController
properties:
description: string
state: string
RunnerController 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 RunnerController resource accepts the following input properties:
- Description string
- The description of the runner controller.
- State string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
- Description string
- The description of the runner controller.
- State string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
- description String
- The description of the runner controller.
- state String
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
- description string
- The description of the runner controller.
- state string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
- description str
- The description of the runner controller.
- state str
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
- description String
- The description of the runner controller.
- state String
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun.
Outputs
All input properties are implicitly available as output properties. Additionally, the RunnerController resource produces the following output properties:
- created_
at str - The time the runner controller was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The time the runner controller was last updated.
Look up Existing RunnerController Resource
Get an existing RunnerController 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?: RunnerControllerState, opts?: CustomResourceOptions): RunnerController@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
state: Optional[str] = None,
updated_at: Optional[str] = None) -> RunnerControllerfunc GetRunnerController(ctx *Context, name string, id IDInput, state *RunnerControllerState, opts ...ResourceOption) (*RunnerController, error)public static RunnerController Get(string name, Input<string> id, RunnerControllerState? state, CustomResourceOptions? opts = null)public static RunnerController get(String name, Output<String> id, RunnerControllerState state, CustomResourceOptions options)resources: _: type: gitlab:RunnerController 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.
- Created
At string - The time the runner controller was created.
- Description string
- The description of the runner controller.
- State string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - Updated
At string - The time the runner controller was last updated.
- Created
At string - The time the runner controller was created.
- Description string
- The description of the runner controller.
- State string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - Updated
At string - The time the runner controller was last updated.
- created
At String - The time the runner controller was created.
- description String
- The description of the runner controller.
- state String
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - updated
At String - The time the runner controller was last updated.
- created
At string - The time the runner controller was created.
- description string
- The description of the runner controller.
- state string
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - updated
At string - The time the runner controller was last updated.
- created_
at str - The time the runner controller was created.
- description str
- The description of the runner controller.
- state str
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - updated_
at str - The time the runner controller was last updated.
- created
At String - The time the runner controller was created.
- description String
- The description of the runner controller.
- state String
- The state of the runner controller. Valid values are:
disabled,enabled,dryRun. - updated
At String - The time the runner controller was last updated.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
published on Tuesday, Apr 21, 2026 by Pulumi
