Managed License
The gitlab.ManagedLicense
resource allows to manage the lifecycle of a managed license.
This resource requires a GitLab Enterprise instance. 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.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ManagedLicense;
import com.pulumi.gitlab.ManagedLicenseArgs;
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 foo = new Project("foo", ProjectArgs.builder()
.description("Lorem Ipsum")
.visibilityLevel("public")
.build());
var mit = new ManagedLicense("mit", ManagedLicenseArgs.builder()
.project(foo.id())
.approvalStatus("allowed")
.build());
}
}
Content copied to clipboard
Import
You can import this resource with an id made up of {project-id}:{license-id}
, e.g.
$ pulumi import gitlab:index/managedLicense:ManagedLicense foo 1:2
Content copied to clipboard
Properties
Link copied to clipboard
The approval status of the license. Valid values are: approved
, blacklisted
, allowed
, denied
. "approved" and "blacklisted" have been deprecated in favor of "allowed" and "denied"; use "allowed" and "denied" for GitLab versions 15.0 and higher. Prior to version 15.0 and after 14.6, the values are equivalent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard