Application

class Application : KotlinCustomResource

The gitlab.Application resource allows to manage the lifecycle of applications in gitlab.

In order to use a user for a user to create an application, they must have admin privileges at the instance level. To create an OIDC application, a scope of "openid". Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Application;
import com.pulumi.gitlab.ApplicationArgs;
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 oidc = new Application("oidc", ApplicationArgs.builder()
.confidential(true)
.redirectUrl("https://mycompany.com")
.scopes("openid")
.build());
}
}

Import

Gitlab applications can be imported with their id, e.g.

$ pulumi import gitlab:index/application:Application example "1"

NOTEthe secret and scopes cannot be imported

Properties

Link copied to clipboard
val applicationId: Output<String>

Internal name of the application.

Link copied to clipboard
val confidential: Output<Boolean>

The application is used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to true if not supplied

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the application.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val redirectUrl: Output<String>

The URL gitlab should send the user to after authentication.

Link copied to clipboard
val scopes: Output<List<String>>

Scopes of the application. Use "openid" if you plan to use this as an oidc authentication application. Valid options are: api, read_api, read_user, read_repository, write_repository, read_registry, write_registry, sudo, admin_mode, openid, profile, email. This is only populated when creating a new application. This attribute is not available for imported resources

Link copied to clipboard
val secret: Output<String>

Application secret. Sensitive and must be kept secret. This is only populated when creating a new application. This attribute is not available for imported resources.

Link copied to clipboard
val urn: Output<String>