1. Packages
  2. Packages
  3. Vkcs Provider
  4. API Docs
  5. getKubernetesSecurityPolicyTemplateV2
Viewing docs for vkcs 0.17.0
published on Thursday, Jun 25, 2026 by vk-cs
Viewing docs for vkcs 0.17.0
published on Thursday, Jun 25, 2026 by vk-cs

    Use this data source to retrieve information about specific VKCS Kubernetes cluster security policy template.

    The cluster security policy template can be identified by either:

    • id
    • the combination of name and version

    These options are mutually exclusive.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const replicalimits = vkcs.getKubernetesSecurityPolicyTemplateV2({
        name: "k8sreplicalimits",
        version: "1.0.0",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    replicalimits = vkcs.get_kubernetes_security_policy_template_v2(name="k8sreplicalimits",
        version="1.0.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.GetKubernetesSecurityPolicyTemplateV2(ctx, &vkcs.GetKubernetesSecurityPolicyTemplateV2Args{
    			Name:    pulumi.StringRef("k8sreplicalimits"),
    			Version: pulumi.StringRef("1.0.0"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var replicalimits = Vkcs.GetKubernetesSecurityPolicyTemplateV2.Invoke(new()
        {
            Name = "k8sreplicalimits",
            Version = "1.0.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetKubernetesSecurityPolicyTemplateV2Args;
    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 replicalimits = VkcsFunctions.getKubernetesSecurityPolicyTemplateV2(GetKubernetesSecurityPolicyTemplateV2Args.builder()
                .name("k8sreplicalimits")
                .version("1.0.0")
                .build());
    
        }
    }
    
    variables:
      replicalimits:
        fn::invoke:
          function: vkcs:getKubernetesSecurityPolicyTemplateV2
          arguments:
            name: k8sreplicalimits
            version: 1.0.0
    
    Example coming soon!
    

    Using getKubernetesSecurityPolicyTemplateV2

    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 getKubernetesSecurityPolicyTemplateV2(args: GetKubernetesSecurityPolicyTemplateV2Args, opts?: InvokeOptions): Promise<GetKubernetesSecurityPolicyTemplateV2Result>
    function getKubernetesSecurityPolicyTemplateV2Output(args: GetKubernetesSecurityPolicyTemplateV2OutputArgs, opts?: InvokeOptions): Output<GetKubernetesSecurityPolicyTemplateV2Result>
    def get_kubernetes_security_policy_template_v2(id: Optional[str] = None,
                                                   name: Optional[str] = None,
                                                   region: Optional[str] = None,
                                                   version: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetKubernetesSecurityPolicyTemplateV2Result
    def get_kubernetes_security_policy_template_v2_output(id: pulumi.Input[Optional[str]] = None,
                                                   name: pulumi.Input[Optional[str]] = None,
                                                   region: pulumi.Input[Optional[str]] = None,
                                                   version: pulumi.Input[Optional[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesSecurityPolicyTemplateV2Result]
    func GetKubernetesSecurityPolicyTemplateV2(ctx *Context, args *GetKubernetesSecurityPolicyTemplateV2Args, opts ...InvokeOption) (*GetKubernetesSecurityPolicyTemplateV2Result, error)
    func GetKubernetesSecurityPolicyTemplateV2Output(ctx *Context, args *GetKubernetesSecurityPolicyTemplateV2OutputArgs, opts ...InvokeOption) GetKubernetesSecurityPolicyTemplateV2ResultOutput

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

    public static class GetKubernetesSecurityPolicyTemplateV2 
    {
        public static Task<GetKubernetesSecurityPolicyTemplateV2Result> InvokeAsync(GetKubernetesSecurityPolicyTemplateV2Args args, InvokeOptions? opts = null)
        public static Output<GetKubernetesSecurityPolicyTemplateV2Result> Invoke(GetKubernetesSecurityPolicyTemplateV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesSecurityPolicyTemplateV2Result> getKubernetesSecurityPolicyTemplateV2(GetKubernetesSecurityPolicyTemplateV2Args args, InvokeOptions options)
    public static Output<GetKubernetesSecurityPolicyTemplateV2Result> getKubernetesSecurityPolicyTemplateV2(GetKubernetesSecurityPolicyTemplateV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesSecurityPolicyTemplateV2:getKubernetesSecurityPolicyTemplateV2
      arguments:
        # arguments dictionary
    data "vkcs_getkubernetessecuritypolicytemplatev2" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    Name string
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    Region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    Version string
    optional string → Version of the security policy template.
    Id string
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    Name string
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    Region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    Version string
    optional string → Version of the security policy template.
    id string
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    name string
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    version string
    optional string → Version of the security policy template.
    id String
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    name String
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    region String
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    version String
    optional string → Version of the security policy template.
    id string
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    name string
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    version string
    optional string → Version of the security policy template.
    id str
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    name str
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    region str
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    version str
    optional string → Version of the security policy template.
    id String
    optional string → The security policy template's ID. Used to fetch a specific security policy template.
    name String
    optional string → Name of the security policy template (e.g., k8sallowedrepos).
    region String
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    version String
    optional string → Version of the security policy template.

    getKubernetesSecurityPolicyTemplateV2 Result

    The following output properties are available:

    Description string
    string → Brief description of the template's purpose.
    Id string
    Name string
    Region string
    SettingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    Version string
    Description string
    string → Brief description of the template's purpose.
    Id string
    Name string
    Region string
    SettingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    Version string
    description string
    string → Brief description of the template's purpose.
    id string
    name string
    region string
    settings_description string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version string
    description String
    string → Brief description of the template's purpose.
    id String
    name String
    region String
    settingsDescription String
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version String
    description string
    string → Brief description of the template's purpose.
    id string
    name string
    region string
    settingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version string
    description str
    string → Brief description of the template's purpose.
    id str
    name str
    region str
    settings_description str
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version str
    description String
    string → Brief description of the template's purpose.
    id String
    name String
    region String
    settingsDescription String
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    Viewing docs for vkcs 0.17.0
    published on Thursday, Jun 25, 2026 by vk-cs

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial