1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getKubernetesSecurityPolicyTemplates
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getKubernetesSecurityPolicyTemplates

Explore with Pulumi AI

Provides a kubernetes security policy templates datasource. This can be used to get information about all available VKCS kubernetes security policy templates.

New since v0.7.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";

const templates = vkcs.getKubernetesSecurityPolicyTemplates({});
Copy
import pulumi
import pulumi_vkcs as vkcs

templates = vkcs.get_kubernetes_security_policy_templates()
Copy
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.GetKubernetesSecurityPolicyTemplates(ctx, &vkcs.GetKubernetesSecurityPolicyTemplatesArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;

return await Deployment.RunAsync(() => 
{
    var templates = Vkcs.GetKubernetesSecurityPolicyTemplates.Invoke();

});
Copy
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.GetKubernetesSecurityPolicyTemplatesArgs;
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 templates = VkcsFunctions.getKubernetesSecurityPolicyTemplates();

    }
}
Copy
variables:
  templates:
    fn::invoke:
      function: vkcs:getKubernetesSecurityPolicyTemplates
      arguments: {}
Copy

Using getKubernetesSecurityPolicyTemplates

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 getKubernetesSecurityPolicyTemplates(args: GetKubernetesSecurityPolicyTemplatesArgs, opts?: InvokeOptions): Promise<GetKubernetesSecurityPolicyTemplatesResult>
function getKubernetesSecurityPolicyTemplatesOutput(args: GetKubernetesSecurityPolicyTemplatesOutputArgs, opts?: InvokeOptions): Output<GetKubernetesSecurityPolicyTemplatesResult>
Copy
def get_kubernetes_security_policy_templates(region: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetKubernetesSecurityPolicyTemplatesResult
def get_kubernetes_security_policy_templates_output(region: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesSecurityPolicyTemplatesResult]
Copy
func GetKubernetesSecurityPolicyTemplates(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesArgs, opts ...InvokeOption) (*GetKubernetesSecurityPolicyTemplatesResult, error)
func GetKubernetesSecurityPolicyTemplatesOutput(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesOutputArgs, opts ...InvokeOption) GetKubernetesSecurityPolicyTemplatesResultOutput
Copy

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

public static class GetKubernetesSecurityPolicyTemplates 
{
    public static Task<GetKubernetesSecurityPolicyTemplatesResult> InvokeAsync(GetKubernetesSecurityPolicyTemplatesArgs args, InvokeOptions? opts = null)
    public static Output<GetKubernetesSecurityPolicyTemplatesResult> Invoke(GetKubernetesSecurityPolicyTemplatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetKubernetesSecurityPolicyTemplatesResult> getKubernetesSecurityPolicyTemplates(GetKubernetesSecurityPolicyTemplatesArgs args, InvokeOptions options)
public static Output<GetKubernetesSecurityPolicyTemplatesResult> getKubernetesSecurityPolicyTemplates(GetKubernetesSecurityPolicyTemplatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vkcs:index/getKubernetesSecurityPolicyTemplates:getKubernetesSecurityPolicyTemplates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
Region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
region String
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
region str
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
region String
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.

getKubernetesSecurityPolicyTemplates Result

The following output properties are available:

Id string
string → ID of the template.
Region string
SecurityPolicyTemplates List<GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate>
list → Available kubernetes security policy templates.
Id string
string → ID of the template.
Region string
SecurityPolicyTemplates []GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate
list → Available kubernetes security policy templates.
id String
string → ID of the template.
region String
securityPolicyTemplates List<GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate>
list → Available kubernetes security policy templates.
id string
string → ID of the template.
region string
securityPolicyTemplates GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate[]
list → Available kubernetes security policy templates.
id str
string → ID of the template.
region str
security_policy_templates Sequence[GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate]
list → Available kubernetes security policy templates.
id String
string → ID of the template.
region String
securityPolicyTemplates List<Property Map>
list → Available kubernetes security policy templates.

Supporting Types

GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate

CreatedAt This property is required. string
string → Template creation timestamp
Description This property is required. string
string → Description of the security policy template.
Id This property is required. string
string → ID of the template.
Name This property is required. string
string → Name of the security policy template.
SettingsDescription This property is required. string
string → Security policy settings description.
UpdatedAt This property is required. string
string → Template update timestamp.
Version This property is required. string
string → Version of the security policy template.
CreatedAt This property is required. string
string → Template creation timestamp
Description This property is required. string
string → Description of the security policy template.
Id This property is required. string
string → ID of the template.
Name This property is required. string
string → Name of the security policy template.
SettingsDescription This property is required. string
string → Security policy settings description.
UpdatedAt This property is required. string
string → Template update timestamp.
Version This property is required. string
string → Version of the security policy template.
createdAt This property is required. String
string → Template creation timestamp
description This property is required. String
string → Description of the security policy template.
id This property is required. String
string → ID of the template.
name This property is required. String
string → Name of the security policy template.
settingsDescription This property is required. String
string → Security policy settings description.
updatedAt This property is required. String
string → Template update timestamp.
version This property is required. String
string → Version of the security policy template.
createdAt This property is required. string
string → Template creation timestamp
description This property is required. string
string → Description of the security policy template.
id This property is required. string
string → ID of the template.
name This property is required. string
string → Name of the security policy template.
settingsDescription This property is required. string
string → Security policy settings description.
updatedAt This property is required. string
string → Template update timestamp.
version This property is required. string
string → Version of the security policy template.
created_at This property is required. str
string → Template creation timestamp
description This property is required. str
string → Description of the security policy template.
id This property is required. str
string → ID of the template.
name This property is required. str
string → Name of the security policy template.
settings_description This property is required. str
string → Security policy settings description.
updated_at This property is required. str
string → Template update timestamp.
version This property is required. str
string → Version of the security policy template.
createdAt This property is required. String
string → Template creation timestamp
description This property is required. String
string → Description of the security policy template.
id This property is required. String
string → ID of the template.
name This property is required. String
string → Name of the security policy template.
settingsDescription This property is required. String
string → Security policy settings description.
updatedAt This property is required. String
string → Template update timestamp.
version This property is required. 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.