Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
published on Friday, Mar 27, 2026 by Pulumi
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
- Cloud
Connector stringId - Id of the cloud connector
- K8s
Connector stringId - Id of the K8s connector
- K8s
Namespace string - Namespace of the cluster
- Name string
- Name of the rule
- Rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- Depends
List<Get
Rule K8s Depend> - Dependent rules
- Dry
Run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Cloud
Connector stringId - Id of the cloud connector
- K8s
Connector stringId - Id of the K8s connector
- K8s
Namespace string - Namespace of the cluster
- Name string
- Name of the rule
- Rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- Depends
[]Get
Rule K8s Depend - Dependent rules
- Dry
Run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- k8s
Connector StringId - Id of the K8s connector
- k8s
Namespace String - Namespace of the cluster
- name String
- Name of the rule
- rule
Yaml String - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends
List<Get
Rule K8s Depend> - Dependent rules
- dry
Run Boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector stringId - Id of the cloud connector
- k8s
Connector stringId - Id of the K8s connector
- k8s
Namespace string - Namespace of the cluster
- name string
- Name of the rule
- rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends
Get
Rule K8s Depend[] - Dependent rules
- dry
Run boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud_
connector_ strid - Id of the cloud connector
- k8s_
connector_ strid - 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[Get
Rule K8s Depend] - Dependent rules
- dry_
run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle_
time_ intmins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- k8s
Connector StringId - Id of the K8s connector
- k8s
Namespace String - Namespace of the cluster
- name String
- Name of the rule
- rule
Yaml String - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends List<Property Map>
- Dependent rules
- dry
Run Boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time NumberMins - 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:
- Cloud
Connector stringId - Id of the cloud connector
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource
- K8s
Connector stringId - Id of the K8s connector
- K8s
Namespace string - Namespace of the cluster
- Name string
- Name of the rule
- Rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- Depends
List<Get
Rule K8s Depend> - Dependent rules
- Dry
Run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Cloud
Connector stringId - Id of the cloud connector
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource
- K8s
Connector stringId - Id of the K8s connector
- K8s
Namespace string - Namespace of the cluster
- Name string
- Name of the rule
- Rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- Depends
[]Get
Rule K8s Depend - Dependent rules
- Dry
Run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource
- k8s
Connector StringId - Id of the K8s connector
- k8s
Namespace String - Namespace of the cluster
- name String
- Name of the rule
- rule
Yaml String - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends
List<Get
Rule K8s Depend> - Dependent rules
- dry
Run Boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector stringId - Id of the cloud connector
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource
- k8s
Connector stringId - Id of the K8s connector
- k8s
Namespace string - Namespace of the cluster
- name string
- Name of the rule
- rule
Yaml string - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends
Get
Rule K8s Depend[] - Dependent rules
- dry
Run boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud_
connector_ strid - 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_ strid - 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[Get
Rule K8s Depend] - Dependent rules
- dry_
run bool - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle_
time_ intmins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource
- k8s
Connector StringId - Id of the K8s connector
- k8s
Namespace String - Namespace of the cluster
- name String
- Name of the rule
- rule
Yaml String - YAML definition of the K8s AutoStopping rule (workload selector, ingress, etc.).
- depends List<Property Map>
- Dependent rules
- dry
Run Boolean - Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- idle
Time NumberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Supporting Types
GetRuleK8sDepend
- Rule
Id int - Rule id of the dependent rule
- Delay
In intSec - Number of seconds the rule should wait after warming up the dependent rule
- Rule
Id int - Rule id of the dependent rule
- Delay
In intSec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id Integer - Rule id of the dependent rule
- delay
In IntegerSec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id number - Rule id of the dependent rule
- delay
In numberSec - Number of seconds the rule should wait after warming up the dependent rule
- rule_
id int - Rule id of the dependent rule
- delay_
in_ intsec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id Number - Rule id of the dependent rule
- delay
In NumberSec - 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
harnessTerraform Provider.
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
published on Friday, Mar 27, 2026 by Pulumi
