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

vkcs.getKubernetesSecurityPolicyTemplate

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Provides a kubernetes security policy template datasource. This can be used to get information about an VKCS kubernetes security policy template.

    New since v0.7.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const replicalimits = vkcs.getKubernetesSecurityPolicyTemplate({
        name: "k8sreplicalimits",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    replicalimits = vkcs.get_kubernetes_security_policy_template(name="k8sreplicalimits")
    
    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.GetKubernetesSecurityPolicyTemplate(ctx, &vkcs.GetKubernetesSecurityPolicyTemplateArgs{
    			Name: "k8sreplicalimits",
    		}, 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.GetKubernetesSecurityPolicyTemplate.Invoke(new()
        {
            Name = "k8sreplicalimits",
        });
    
    });
    
    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.GetKubernetesSecurityPolicyTemplateArgs;
    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.getKubernetesSecurityPolicyTemplate(GetKubernetesSecurityPolicyTemplateArgs.builder()
                .name("k8sreplicalimits")
                .build());
    
        }
    }
    
    variables:
      replicalimits:
        fn::invoke:
          function: vkcs:getKubernetesSecurityPolicyTemplate
          arguments:
            name: k8sreplicalimits
    

    Using getKubernetesSecurityPolicyTemplate

    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 getKubernetesSecurityPolicyTemplate(args: GetKubernetesSecurityPolicyTemplateArgs, opts?: InvokeOptions): Promise<GetKubernetesSecurityPolicyTemplateResult>
    function getKubernetesSecurityPolicyTemplateOutput(args: GetKubernetesSecurityPolicyTemplateOutputArgs, opts?: InvokeOptions): Output<GetKubernetesSecurityPolicyTemplateResult>
    def get_kubernetes_security_policy_template(name: Optional[str] = None,
                                                region: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetKubernetesSecurityPolicyTemplateResult
    def get_kubernetes_security_policy_template_output(name: Optional[pulumi.Input[str]] = None,
                                                region: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesSecurityPolicyTemplateResult]
    func GetKubernetesSecurityPolicyTemplate(ctx *Context, args *GetKubernetesSecurityPolicyTemplateArgs, opts ...InvokeOption) (*GetKubernetesSecurityPolicyTemplateResult, error)
    func GetKubernetesSecurityPolicyTemplateOutput(ctx *Context, args *GetKubernetesSecurityPolicyTemplateOutputArgs, opts ...InvokeOption) GetKubernetesSecurityPolicyTemplateResultOutput

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

    public static class GetKubernetesSecurityPolicyTemplate 
    {
        public static Task<GetKubernetesSecurityPolicyTemplateResult> InvokeAsync(GetKubernetesSecurityPolicyTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesSecurityPolicyTemplateResult> Invoke(GetKubernetesSecurityPolicyTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesSecurityPolicyTemplateResult> getKubernetesSecurityPolicyTemplate(GetKubernetesSecurityPolicyTemplateArgs args, InvokeOptions options)
    public static Output<GetKubernetesSecurityPolicyTemplateResult> getKubernetesSecurityPolicyTemplate(GetKubernetesSecurityPolicyTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesSecurityPolicyTemplate:getKubernetesSecurityPolicyTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getKubernetesSecurityPolicyTemplate Result

    The following output properties are available:

    CreatedAt string
    string → Template creation timestamp
    Description string
    string → Description of the security policy template.
    Id string
    string → ID of the resource.
    Name string
    Region string
    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 resource.
    Name string
    Region string
    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 resource.
    name String
    region String
    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 resource.
    name string
    region string
    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 resource.
    name str
    region str
    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 resource.
    name String
    region String
    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 vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs