Viewing docs for GitLab v10.4.0
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi
Viewing docs for GitLab v10.4.0
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi
The gitlab.getComplianceFrameworkTemplates data source allows details of the GitLab compliance framework templates to be retrieved given some optional filter criteria.
Upstream API: GitLab GraphQL API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const all = gitlab.getComplianceFrameworkTemplates({});
const exampleByTemplateId = gitlab.getComplianceFrameworkTemplates({
templateId: "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2",
});
const exampleByName = gitlab.getComplianceFrameworkTemplates({
name: "NIST 800-171 Rev. 3 CMMC",
});
import pulumi
import pulumi_gitlab as gitlab
all = gitlab.get_compliance_framework_templates()
example_by_template_id = gitlab.get_compliance_framework_templates(template_id="gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2")
example_by_name = gitlab.get_compliance_framework_templates(name="NIST 800-171 Rev. 3 CMMC")
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v10/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.GetComplianceFrameworkTemplates(ctx, &gitlab.GetComplianceFrameworkTemplatesArgs{}, nil)
if err != nil {
return err
}
_, err = gitlab.GetComplianceFrameworkTemplates(ctx, &gitlab.GetComplianceFrameworkTemplatesArgs{
TemplateId: pulumi.StringRef("gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2"),
}, nil)
if err != nil {
return err
}
_, err = gitlab.GetComplianceFrameworkTemplates(ctx, &gitlab.GetComplianceFrameworkTemplatesArgs{
Name: pulumi.StringRef("NIST 800-171 Rev. 3 CMMC"),
}, 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 all = GitLab.GetComplianceFrameworkTemplates.Invoke();
var exampleByTemplateId = GitLab.GetComplianceFrameworkTemplates.Invoke(new()
{
TemplateId = "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2",
});
var exampleByName = GitLab.GetComplianceFrameworkTemplates.Invoke(new()
{
Name = "NIST 800-171 Rev. 3 CMMC",
});
});
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.GetComplianceFrameworkTemplatesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 all = GitlabFunctions.getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs.builder()
.build());
final var exampleByTemplateId = GitlabFunctions.getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs.builder()
.templateId("gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2")
.build());
final var exampleByName = GitlabFunctions.getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs.builder()
.name("NIST 800-171 Rev. 3 CMMC")
.build());
}
}
variables:
all:
fn::invoke:
function: gitlab:getComplianceFrameworkTemplates
arguments: {}
exampleByTemplateId:
fn::invoke:
function: gitlab:getComplianceFrameworkTemplates
arguments:
templateId: gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2
exampleByName:
fn::invoke:
function: gitlab:getComplianceFrameworkTemplates
arguments:
name: NIST 800-171 Rev. 3 CMMC
terraform {
required_providers {
gitlab = {
source = "pulumi/gitlab"
}
}
}
data "gitlab_compliance_framework_templates" "all" {
}
data "gitlab_compliance_framework_templates" "exampleByTemplateId" {
template_id = "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2"
}
data "gitlab_compliance_framework_templates" "exampleByName" {
name = "NIST 800-171 Rev. 3 CMMC"
}
Using getComplianceFrameworkTemplates
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 getComplianceFrameworkTemplates(args: GetComplianceFrameworkTemplatesArgs, opts?: InvokeOptions): Promise<GetComplianceFrameworkTemplatesResult>
function getComplianceFrameworkTemplatesOutput(args: GetComplianceFrameworkTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetComplianceFrameworkTemplatesResult>def get_compliance_framework_templates(name: Optional[str] = None,
template_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComplianceFrameworkTemplatesResult
def get_compliance_framework_templates_output(name: pulumi.Input[Optional[str]] = None,
template_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetComplianceFrameworkTemplatesResult]func GetComplianceFrameworkTemplates(ctx *Context, args *GetComplianceFrameworkTemplatesArgs, opts ...InvokeOption) (*GetComplianceFrameworkTemplatesResult, error)
func GetComplianceFrameworkTemplatesOutput(ctx *Context, args *GetComplianceFrameworkTemplatesOutputArgs, opts ...InvokeOption) GetComplianceFrameworkTemplatesResultOutput> Note: This function is named GetComplianceFrameworkTemplates in the Go SDK.
public static class GetComplianceFrameworkTemplates
{
public static Task<GetComplianceFrameworkTemplatesResult> InvokeAsync(GetComplianceFrameworkTemplatesArgs args, InvokeOptions? opts = null)
public static Output<GetComplianceFrameworkTemplatesResult> Invoke(GetComplianceFrameworkTemplatesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetComplianceFrameworkTemplatesResult> Invoke(GetComplianceFrameworkTemplatesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetComplianceFrameworkTemplatesResult> getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs args, InvokeOptions options)
public static Output<GetComplianceFrameworkTemplatesResult> getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs args, InvokeOptions options)
public static Output<GetComplianceFrameworkTemplatesResult> getComplianceFrameworkTemplates(GetComplianceFrameworkTemplatesArgs args, InvokeOutputOptions options)
fn::invoke:
function: gitlab:index/getComplianceFrameworkTemplates:getComplianceFrameworkTemplates
arguments:
# arguments dictionarydata "gitlab_get_compliance_framework_templates" "name" {
# arguments
}The following arguments are supported:
- Name string
- Get the compliance framework template with the specific name.
- Template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- Name string
- Get the compliance framework template with the specific name.
- Template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- name string
- Get the compliance framework template with the specific name.
- template_
id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- name String
- Get the compliance framework template with the specific name.
- template
Id String - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- name string
- Get the compliance framework template with the specific name.
- template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- name str
- Get the compliance framework template with the specific name.
- template_
id str - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- name String
- Get the compliance framework template with the specific name.
- template
Id String - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
getComplianceFrameworkTemplates Result
The following output properties are available:
- Id string
- The ID of this datasource. In the format of a hash taken from the search options.
- Templates
List<Pulumi.
Git Lab. Outputs. Get Compliance Framework Templates Template> - List of compliance framework templates.
- Name string
- Get the compliance framework template with the specific name.
- Template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- Id string
- The ID of this datasource. In the format of a hash taken from the search options.
- Templates
[]Get
Compliance Framework Templates Template - List of compliance framework templates.
- Name string
- Get the compliance framework template with the specific name.
- Template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- id string
- The ID of this datasource. In the format of a hash taken from the search options.
- templates list(object)
- List of compliance framework templates.
- name string
- Get the compliance framework template with the specific name.
- template_
id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- id String
- The ID of this datasource. In the format of a hash taken from the search options.
- templates
List<Get
Compliance Framework Templates Template> - List of compliance framework templates.
- name String
- Get the compliance framework template with the specific name.
- template
Id String - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- id string
- The ID of this datasource. In the format of a hash taken from the search options.
- templates
Get
Compliance Framework Templates Template[] - List of compliance framework templates.
- name string
- Get the compliance framework template with the specific name.
- template
Id string - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- id str
- The ID of this datasource. In the format of a hash taken from the search options.
- templates
Sequence[Get
Compliance Framework Templates Template] - List of compliance framework templates.
- name str
- Get the compliance framework template with the specific name.
- template_
id str - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
- id String
- The ID of this datasource. In the format of a hash taken from the search options.
- templates List<Property Map>
- List of compliance framework templates.
- name String
- Get the compliance framework template with the specific name.
- template
Id String - Filter by template ID. In the format of:
gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>
Supporting Types
GetComplianceFrameworkTemplatesTemplate
- Color string
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- Description string
- Description of the compliance framework template.
- Id string
- ID of the compliance framework template.
- Json string
- Full JSON representation of the compliance framework template.
- Name string
- Name of the compliance framework template.
- Template
Version int - Version of the template.
- Color string
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- Description string
- Description of the compliance framework template.
- Id string
- ID of the compliance framework template.
- Json string
- Full JSON representation of the compliance framework template.
- Name string
- Name of the compliance framework template.
- Template
Version int - Version of the template.
- color string
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- description string
- Description of the compliance framework template.
- id string
- ID of the compliance framework template.
- json string
- Full JSON representation of the compliance framework template.
- name string
- Name of the compliance framework template.
- template_
version number - Version of the template.
- color String
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- description String
- Description of the compliance framework template.
- id String
- ID of the compliance framework template.
- json String
- Full JSON representation of the compliance framework template.
- name String
- Name of the compliance framework template.
- template
Version Integer - Version of the template.
- color string
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- description string
- Description of the compliance framework template.
- id string
- ID of the compliance framework template.
- json string
- Full JSON representation of the compliance framework template.
- name string
- Name of the compliance framework template.
- template
Version number - Version of the template.
- color str
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- description str
- Description of the compliance framework template.
- id str
- ID of the compliance framework template.
- json str
- Full JSON representation of the compliance framework template.
- name str
- Name of the compliance framework template.
- template_
version int - Version of the template.
- color String
- Hexadecimal representation of the template’s label color. e.g. #FCA121.
- description String
- Description of the compliance framework template.
- id String
- ID of the compliance framework template.
- json String
- Full JSON representation of the compliance framework template.
- name String
- Name of the compliance framework template.
- template
Version Number - Version of the template.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
Viewing docs for GitLab v10.4.0
published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi