1. Packages
  2. Packages
  3. Vkcs Provider
  4. API Docs
  5. getKubernetesSecurityPolicyTemplatesV2
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 available VKCS Kubernetes cluster security policy templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const policies = vkcs.getKubernetesSecurityPolicyTemplatesV2({});
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    policies = vkcs.get_kubernetes_security_policy_templates_v2()
    
    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.GetKubernetesSecurityPolicyTemplatesV2(ctx, &vkcs.GetKubernetesSecurityPolicyTemplatesV2Args{}, 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 policies = Vkcs.GetKubernetesSecurityPolicyTemplatesV2.Invoke();
    
    });
    
    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.GetKubernetesSecurityPolicyTemplatesV2Args;
    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 policies = VkcsFunctions.getKubernetesSecurityPolicyTemplatesV2(GetKubernetesSecurityPolicyTemplatesV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      policies:
        fn::invoke:
          function: vkcs:getKubernetesSecurityPolicyTemplatesV2
          arguments: {}
    
    Example coming soon!
    

    Using getKubernetesSecurityPolicyTemplatesV2

    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 getKubernetesSecurityPolicyTemplatesV2(args: GetKubernetesSecurityPolicyTemplatesV2Args, opts?: InvokeOptions): Promise<GetKubernetesSecurityPolicyTemplatesV2Result>
    function getKubernetesSecurityPolicyTemplatesV2Output(args: GetKubernetesSecurityPolicyTemplatesV2OutputArgs, opts?: InvokeOptions): Output<GetKubernetesSecurityPolicyTemplatesV2Result>
    def get_kubernetes_security_policy_templates_v2(region: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetKubernetesSecurityPolicyTemplatesV2Result
    def get_kubernetes_security_policy_templates_v2_output(region: pulumi.Input[Optional[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesSecurityPolicyTemplatesV2Result]
    func GetKubernetesSecurityPolicyTemplatesV2(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesV2Args, opts ...InvokeOption) (*GetKubernetesSecurityPolicyTemplatesV2Result, error)
    func GetKubernetesSecurityPolicyTemplatesV2Output(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesV2OutputArgs, opts ...InvokeOption) GetKubernetesSecurityPolicyTemplatesV2ResultOutput

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

    public static class GetKubernetesSecurityPolicyTemplatesV2 
    {
        public static Task<GetKubernetesSecurityPolicyTemplatesV2Result> InvokeAsync(GetKubernetesSecurityPolicyTemplatesV2Args args, InvokeOptions? opts = null)
        public static Output<GetKubernetesSecurityPolicyTemplatesV2Result> Invoke(GetKubernetesSecurityPolicyTemplatesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesSecurityPolicyTemplatesV2Result> getKubernetesSecurityPolicyTemplatesV2(GetKubernetesSecurityPolicyTemplatesV2Args args, InvokeOptions options)
    public static Output<GetKubernetesSecurityPolicyTemplatesV2Result> getKubernetesSecurityPolicyTemplatesV2(GetKubernetesSecurityPolicyTemplatesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesSecurityPolicyTemplatesV2:getKubernetesSecurityPolicyTemplatesV2
      arguments:
        # arguments dictionary
    data "vkcs_getkubernetessecuritypolicytemplatesv2" "name" {
        # arguments
    }

    The following arguments are supported:

    Region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    Region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    region String
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    region string
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    region str
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.
    region String
    optional string → The region for which to retrieve security policy templates. Defaults to provider's region.

    getKubernetesSecurityPolicyTemplatesV2 Result

    The following output properties are available:

    Id string
    string → Unique identifier of the security policy template.
    Region string
    SecurityPolicies List<GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy>
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    Id string
    string → Unique identifier of the security policy template.
    Region string
    SecurityPolicies []GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    id string
    string → Unique identifier of the security policy template.
    region string
    security_policies list(object)
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    id String
    string → Unique identifier of the security policy template.
    region String
    securityPolicies List<GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy>
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    id string
    string → Unique identifier of the security policy template.
    region string
    securityPolicies GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy[]
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    id str
    string → Unique identifier of the security policy template.
    region str
    security_policies Sequence[GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy]
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.
    id String
    string → Unique identifier of the security policy template.
    region String
    securityPolicies List<Property Map>
    set → A set of available security policy templates. Each template contains an id, name, description, settings_description, and version.

    Supporting Types

    GetKubernetesSecurityPolicyTemplatesV2SecurityPolicy

    Description string
    string → Brief description of the template's purpose.
    Id string
    string → Unique identifier of the security policy template.
    Name string
    string → Name of the security policy template (e.g., k8sallowedrepos).
    SettingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    Version string
    string → Version of the security policy template.
    Description string
    string → Brief description of the template's purpose.
    Id string
    string → Unique identifier of the security policy template.
    Name string
    string → Name of the security policy template (e.g., k8sallowedrepos).
    SettingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    Version string
    string → Version of the security policy template.
    description string
    string → Brief description of the template's purpose.
    id string
    string → Unique identifier of the security policy template.
    name string
    string → Name of the security policy template (e.g., k8sallowedrepos).
    settings_description string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version string
    string → Version of the security policy template.
    description String
    string → Brief description of the template's purpose.
    id String
    string → Unique identifier of the security policy template.
    name String
    string → Name of the security policy template (e.g., k8sallowedrepos).
    settingsDescription String
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version String
    string → Version of the security policy template.
    description string
    string → Brief description of the template's purpose.
    id string
    string → Unique identifier of the security policy template.
    name string
    string → Name of the security policy template (e.g., k8sallowedrepos).
    settingsDescription string
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version string
    string → Version of the security policy template.
    description str
    string → Brief description of the template's purpose.
    id str
    string → Unique identifier of the security policy template.
    name str
    string → Name of the security policy template (e.g., k8sallowedrepos).
    settings_description str
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version str
    string → Version of the security policy template.
    description String
    string → Brief description of the template's purpose.
    id String
    string → Unique identifier of the security policy template.
    name String
    string → Name of the security policy template (e.g., k8sallowedrepos).
    settingsDescription String
    string → Base64-encoded JSON schema defining the configurable parameters of the policy.
    version String
    string → Version of the security policy template.

    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