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 dictionary
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
- Security
Policy List<GetTemplates Kubernetes Security Policy Templates Security Policy Template> - list → Available kubernetes security policy templates.
- Id string
- string → ID of the template.
- Region string
- Security
Policy []GetTemplates Kubernetes Security Policy Templates Security Policy Template - list → Available kubernetes security policy templates.
- id String
- string → ID of the template.
- region String
- security
Policy List<GetTemplates Kubernetes Security Policy Templates Security Policy Template> - list → Available kubernetes security policy templates.
- id string
- string → ID of the template.
- region string
- security
Policy 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
- security
Policy List<Property Map>Templates - list → Available kubernetes security policy templates.
Supporting Types
GetKubernetesSecurityPolicyTemplatesSecurityPolicyTemplate
- Created
At 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.
- Settings
Description string - string → Security policy settings description.
- Updated
At string - string → Template update timestamp.
- Version string
- string → Version of the security policy template.
- Created
At 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.
- Settings
Description string - string → Security policy settings description.
- Updated
At string - string → Template update timestamp.
- Version string
- string → Version of the security policy template.
- created
At 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.
- settings
Description String - string → Security policy settings description.
- updated
At String - string → Template update timestamp.
- version String
- string → Version of the security policy template.
- created
At 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.
- settings
Description string - string → Security policy settings description.
- updated
At 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.
- created
At 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.
- settings
Description String - string → Security policy settings description.
- updated
At 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
vkcs
Terraform Provider.