1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. getRuleK8s
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi

    Data source for retrieving a Harness AutoStopping rule for K8s services.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    variables:
      example:
        fn::invoke:
          function: harness:autostopping:getRuleK8s
          arguments:
            identifier: identifier
    

    Using getRuleK8s

    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 getRuleK8s(args: GetRuleK8sArgs, opts?: InvokeOptions): Promise<GetRuleK8sResult>
    function getRuleK8sOutput(args: GetRuleK8sOutputArgs, opts?: InvokeOptions): Output<GetRuleK8sResult>
    def get_rule_k8s(cloud_connector_id: Optional[str] = None,
                     depends: Optional[Sequence[GetRuleK8sDepend]] = None,
                     dry_run: Optional[bool] = None,
                     idle_time_mins: Optional[int] = None,
                     k8s_connector_id: Optional[str] = None,
                     k8s_namespace: Optional[str] = None,
                     name: Optional[str] = None,
                     rule_yaml: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRuleK8sResult
    def get_rule_k8s_output(cloud_connector_id: Optional[pulumi.Input[str]] = None,
                     depends: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleK8sDependArgs]]]] = None,
                     dry_run: Optional[pulumi.Input[bool]] = None,
                     idle_time_mins: Optional[pulumi.Input[int]] = None,
                     k8s_connector_id: Optional[pulumi.Input[str]] = None,
                     k8s_namespace: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     rule_yaml: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRuleK8sResult]
    func LookupRuleK8s(ctx *Context, args *LookupRuleK8sArgs, opts ...InvokeOption) (*LookupRuleK8sResult, error)
    func LookupRuleK8sOutput(ctx *Context, args *LookupRuleK8sOutputArgs, opts ...InvokeOption) LookupRuleK8sResultOutput

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

    public static class GetRuleK8s 
    {
        public static Task<GetRuleK8sResult> InvokeAsync(GetRuleK8sArgs args, InvokeOptions? opts = null)
        public static Output<GetRuleK8sResult> Invoke(GetRuleK8sInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuleK8sResult> getRuleK8s(GetRuleK8sArgs args, InvokeOptions options)
    public static Output<GetRuleK8sResult> getRuleK8s(GetRuleK8sArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:autostopping/getRuleK8s:getRuleK8s
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudConnectorId string
    Id of the cloud connector
    K8sConnectorId string
    Id of the K8s connector
    K8sNamespace string
    Namespace of the cluster
    Name string
    Name of the rule
    RuleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    Depends List<GetRuleK8sDepend>
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    CloudConnectorId string
    Id of the cloud connector
    K8sConnectorId string
    Id of the K8s connector
    K8sNamespace string
    Namespace of the cluster
    Name string
    Name of the rule
    RuleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    Depends []GetRuleK8sDepend
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId String
    Id of the cloud connector
    k8sConnectorId String
    Id of the K8s connector
    k8sNamespace String
    Namespace of the cluster
    name String
    Name of the rule
    ruleYaml String
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends List<GetRuleK8sDepend>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins Integer
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId string
    Id of the cloud connector
    k8sConnectorId string
    Id of the K8s connector
    k8sNamespace string
    Namespace of the cluster
    name string
    Name of the rule
    ruleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends GetRuleK8sDepend[]
    Dependent rules
    dryRun boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloud_connector_id str
    Id of the cloud connector
    k8s_connector_id str
    Id of the K8s connector
    k8s_namespace str
    Namespace of the cluster
    name str
    Name of the rule
    rule_yaml str
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends Sequence[GetRuleK8sDepend]
    Dependent rules
    dry_run bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idle_time_mins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId String
    Id of the cloud connector
    k8sConnectorId String
    Id of the K8s connector
    k8sNamespace String
    Namespace of the cluster
    name String
    Name of the rule
    ruleYaml String
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends List<Property Map>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins Number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

    getRuleK8s Result

    The following output properties are available:

    CloudConnectorId string
    Id of the cloud connector
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource
    K8sConnectorId string
    Id of the K8s connector
    K8sNamespace string
    Namespace of the cluster
    Name string
    Name of the rule
    RuleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    Depends List<GetRuleK8sDepend>
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    CloudConnectorId string
    Id of the cloud connector
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource
    K8sConnectorId string
    Id of the K8s connector
    K8sNamespace string
    Namespace of the cluster
    Name string
    Name of the rule
    RuleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    Depends []GetRuleK8sDepend
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId String
    Id of the cloud connector
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource
    k8sConnectorId String
    Id of the K8s connector
    k8sNamespace String
    Namespace of the cluster
    name String
    Name of the rule
    ruleYaml String
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends List<GetRuleK8sDepend>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins Integer
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId string
    Id of the cloud connector
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Unique identifier of the resource
    k8sConnectorId string
    Id of the K8s connector
    k8sNamespace string
    Namespace of the cluster
    name string
    Name of the rule
    ruleYaml string
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends GetRuleK8sDepend[]
    Dependent rules
    dryRun boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloud_connector_id str
    Id of the cloud connector
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Unique identifier of the resource
    k8s_connector_id str
    Id of the K8s connector
    k8s_namespace str
    Namespace of the cluster
    name str
    Name of the rule
    rule_yaml str
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends Sequence[GetRuleK8sDepend]
    Dependent rules
    dry_run bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idle_time_mins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    cloudConnectorId String
    Id of the cloud connector
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource
    k8sConnectorId String
    Id of the K8s connector
    k8sNamespace String
    Namespace of the cluster
    name String
    Name of the rule
    ruleYaml String
    YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
    depends List<Property Map>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    idleTimeMins Number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

    Supporting Types

    GetRuleK8sDepend

    RuleId int
    Rule id of the dependent rule
    DelayInSec int
    Number of seconds the rule should wait after warming up the dependent rule
    RuleId int
    Rule id of the dependent rule
    DelayInSec int
    Number of seconds the rule should wait after warming up the dependent rule
    ruleId Integer
    Rule id of the dependent rule
    delayInSec Integer
    Number of seconds the rule should wait after warming up the dependent rule
    ruleId number
    Rule id of the dependent rule
    delayInSec number
    Number of seconds the rule should wait after warming up the dependent rule
    rule_id int
    Rule id of the dependent rule
    delay_in_sec int
    Number of seconds the rule should wait after warming up the dependent rule
    ruleId Number
    Rule id of the dependent rule
    delayInSec Number
    Number of seconds the rule should wait after warming up the dependent rule

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.11.8
    published on Friday, Mar 27, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.