1. Packages
  2. Selectel Provider
  3. API Docs
  4. getMksFeatureGatesV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.getMksFeatureGatesV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Provides a list of available feature gates. For more information about feature gates in Managed Kubernetes, see the official Selectel documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const fg = selectel.getMksFeatureGatesV1({
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    fg = selectel.get_mks_feature_gates_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.GetMksFeatureGatesV1(ctx, &selectel.GetMksFeatureGatesV1Args{
    			ProjectId: selectel_vpc_project_v2.Project_1.Id,
    			Region:    "ru-3",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var fg = Selectel.GetMksFeatureGatesV1.Invoke(new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetMksFeatureGatesV1Args;
    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 fg = SelectelFunctions.getMksFeatureGatesV1(GetMksFeatureGatesV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .build());
    
        }
    }
    
    variables:
      fg:
        fn::invoke:
          function: selectel:getMksFeatureGatesV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            region: ru-3
    

    Using getMksFeatureGatesV1

    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 getMksFeatureGatesV1(args: GetMksFeatureGatesV1Args, opts?: InvokeOptions): Promise<GetMksFeatureGatesV1Result>
    function getMksFeatureGatesV1Output(args: GetMksFeatureGatesV1OutputArgs, opts?: InvokeOptions): Output<GetMksFeatureGatesV1Result>
    def get_mks_feature_gates_v1(filters: Optional[Sequence[GetMksFeatureGatesV1Filter]] = None,
                                 id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 region: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetMksFeatureGatesV1Result
    def get_mks_feature_gates_v1_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMksFeatureGatesV1FilterArgs]]]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 region: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetMksFeatureGatesV1Result]
    func GetMksFeatureGatesV1(ctx *Context, args *GetMksFeatureGatesV1Args, opts ...InvokeOption) (*GetMksFeatureGatesV1Result, error)
    func GetMksFeatureGatesV1Output(ctx *Context, args *GetMksFeatureGatesV1OutputArgs, opts ...InvokeOption) GetMksFeatureGatesV1ResultOutput

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

    public static class GetMksFeatureGatesV1 
    {
        public static Task<GetMksFeatureGatesV1Result> InvokeAsync(GetMksFeatureGatesV1Args args, InvokeOptions? opts = null)
        public static Output<GetMksFeatureGatesV1Result> Invoke(GetMksFeatureGatesV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMksFeatureGatesV1Result> getMksFeatureGatesV1(GetMksFeatureGatesV1Args args, InvokeOptions options)
    public static Output<GetMksFeatureGatesV1Result> getMksFeatureGatesV1(GetMksFeatureGatesV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getMksFeatureGatesV1:getMksFeatureGatesV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-3.
    Filters List<GetMksFeatureGatesV1Filter>
    Values to filter available feature gates:
    Id string
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-3.
    Filters []GetMksFeatureGatesV1Filter
    Values to filter available feature gates:
    Id string
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-3.
    filters List<GetMksFeatureGatesV1Filter>
    Values to filter available feature gates:
    id String
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the cluster is located, for example, ru-3.
    filters GetMksFeatureGatesV1Filter[]
    Values to filter available feature gates:
    id string
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the cluster is located, for example, ru-3.
    filters Sequence[GetMksFeatureGatesV1Filter]
    Values to filter available feature gates:
    id str
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-3.
    filters List<Property Map>
    Values to filter available feature gates:
    id String

    getMksFeatureGatesV1 Result

    The following output properties are available:

    featureGates List<Property Map>
    List of available feature gates.
    id String
    projectId String
    region String
    filters List<Property Map>

    Supporting Types

    GetMksFeatureGatesV1FeatureGate

    KubeVersion string
    Kubernetes version.
    Names List<string>
    Names of the feature gates available for the specified version.
    KubeVersion string
    Kubernetes version.
    Names []string
    Names of the feature gates available for the specified version.
    kubeVersion String
    Kubernetes version.
    names List<String>
    Names of the feature gates available for the specified version.
    kubeVersion string
    Kubernetes version.
    names string[]
    Names of the feature gates available for the specified version.
    kube_version str
    Kubernetes version.
    names Sequence[str]
    Names of the feature gates available for the specified version.
    kubeVersion String
    Kubernetes version.
    names List<String>
    Names of the feature gates available for the specified version.

    GetMksFeatureGatesV1Filter

    KubeVersion string
    Kubernetes version for which you get available feature gates.
    KubeVersion string
    Kubernetes version for which you get available feature gates.
    kubeVersion String
    Kubernetes version for which you get available feature gates.
    kubeVersion string
    Kubernetes version for which you get available feature gates.
    kube_version str
    Kubernetes version for which you get available feature gates.
    kubeVersion String
    Kubernetes version for which you get available feature gates.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel