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({});
import pulumi
import pulumi_vkcs as vkcs
templates = vkcs.get_kubernetes_security_policy_templates()
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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() => 
{
    var templates = Vkcs.GetKubernetesSecurityPolicyTemplates.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.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();
    }
}
variables:
  templates:
    fn::invoke:
      function: vkcs:getKubernetesSecurityPolicyTemplates
      arguments: {}
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>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]func GetKubernetesSecurityPolicyTemplates(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesArgs, opts ...InvokeOption) (*GetKubernetesSecurityPolicyTemplatesResult, error)
func GetKubernetesSecurityPolicyTemplatesOutput(ctx *Context, args *GetKubernetesSecurityPolicyTemplatesOutputArgs, opts ...InvokeOption) GetKubernetesSecurityPolicyTemplatesResultOutput> 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)
}public static CompletableFuture<GetKubernetesSecurityPolicyTemplatesResult> getKubernetesSecurityPolicyTemplates(GetKubernetesSecurityPolicyTemplatesArgs args, InvokeOptions options)
public static Output<GetKubernetesSecurityPolicyTemplatesResult> getKubernetesSecurityPolicyTemplates(GetKubernetesSecurityPolicyTemplatesArgs args, InvokeOptions options)
fn::invoke:
  function: vkcs:index/getKubernetesSecurityPolicyTemplates:getKubernetesSecurityPolicyTemplates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Region string
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
- Region string
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
- region String
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
- region string
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
- region str
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
- region String
- optional string → The region in which to obtain the service client. If omitted, the regionargument of the provider is used.
getKubernetesSecurityPolicyTemplates Result
The following output properties are available:
- Id string
- string → ID of the template.
- Region string
- SecurityPolicy List<GetTemplates Kubernetes Security Policy Templates Security Policy Template> 
- list → Available kubernetes security policy templates.
- Id string
- string → ID of the template.
- Region string
- SecurityPolicy []GetTemplates Kubernetes Security Policy Templates Security Policy Template 
- list → Available kubernetes security policy templates.
- id String
- string → ID of the template.
- region String
- securityPolicy List<GetTemplates Kubernetes Security Policy Templates Security Policy Template> 
- list → Available kubernetes security policy templates.
- id string
- string → ID of the template.
- region string
- securityPolicy GetTemplates Kubernetes Security Policy Templates Security Policy Template[] 
- list → Available kubernetes security policy templates.
- id str
- string → ID of the template.
- region str
- security_policy_ Sequence[Gettemplates Kubernetes Security Policy Templates Security Policy Template] 
- list → Available kubernetes security policy templates.
- id String
- string → ID of the template.
- region String
- securityPolicy List<Property Map>Templates 
- list → Available kubernetes security policy templates.
Supporting Types
GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate       
- CreatedAt string
- string → Template creation timestamp
- Description string
- string → Description of the security policy template.
- Id string
- string → ID of the template.
- Name string
- string → Name of the security policy template.
- SettingsDescription string
- string → Security policy settings description.
- UpdatedAt string
- string → Template update timestamp.
- Version string
- string → Version of the security policy template.
- CreatedAt string
- string → Template creation timestamp
- Description string
- string → Description of the security policy template.
- Id string
- string → ID of the template.
- Name string
- string → Name of the security policy template.
- SettingsDescription string
- string → Security policy settings description.
- UpdatedAt string
- string → Template update timestamp.
- Version string
- string → Version of the security policy template.
- createdAt String
- string → Template creation timestamp
- description String
- string → Description of the security policy template.
- id String
- string → ID of the template.
- name String
- string → Name of the security policy template.
- settingsDescription String
- string → Security policy settings description.
- updatedAt String
- string → Template update timestamp.
- version String
- string → Version of the security policy template.
- createdAt string
- string → Template creation timestamp
- description string
- string → Description of the security policy template.
- id string
- string → ID of the template.
- name string
- string → Name of the security policy template.
- settingsDescription string
- string → Security policy settings description.
- updatedAt string
- string → Template update timestamp.
- version string
- string → Version of the security policy template.
- created_at str
- string → Template creation timestamp
- description str
- string → Description of the security policy template.
- id str
- string → ID of the template.
- name str
- string → Name of the security policy template.
- settings_description str
- string → Security policy settings description.
- updated_at str
- string → Template update timestamp.
- version str
- string → Version of the security policy template.
- createdAt String
- string → Template creation timestamp
- description String
- string → Description of the security policy template.
- id String
- string → ID of the template.
- name String
- string → Name of the security policy template.
- settingsDescription String
- string → Security policy settings description.
- updatedAt String
- string → Template update timestamp.
- 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 vkcsTerraform Provider.