Harness v0.5.7 published on Saturday, Mar 8, 2025 by Pulumi
harness.autostopping.getRuleVm
Explore with Pulumi AI
Data source for retrieving a Harness Variable.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.autostopping.AutostoppingFunctions;
import com.pulumi.harness.autostopping.inputs.GetRuleVmArgs;
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 example = AutostoppingFunctions.getRuleVm(GetRuleVmArgs.builder()
            .identifier("identifier")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: harness:autostopping:getRuleVm
      arguments:
        identifier: identifier
Using getRuleVm
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 getRuleVm(args: GetRuleVmArgs, opts?: InvokeOptions): Promise<GetRuleVmResult>
function getRuleVmOutput(args: GetRuleVmOutputArgs, opts?: InvokeOptions): Output<GetRuleVmResult>def get_rule_vm(cloud_connector_id: Optional[str] = None,
                custom_domains: Optional[Sequence[str]] = None,
                depends: Optional[Sequence[GetRuleVmDepend]] = None,
                filter: Optional[GetRuleVmFilter] = None,
                https: Optional[Sequence[GetRuleVmHttp]] = None,
                idle_time_mins: Optional[int] = None,
                name: Optional[str] = None,
                tcps: Optional[Sequence[GetRuleVmTcp]] = None,
                use_spot: Optional[bool] = None,
                opts: Optional[InvokeOptions] = None) -> GetRuleVmResult
def get_rule_vm_output(cloud_connector_id: Optional[pulumi.Input[str]] = None,
                custom_domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                depends: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleVmDependArgs]]]] = None,
                filter: Optional[pulumi.Input[GetRuleVmFilterArgs]] = None,
                https: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleVmHttpArgs]]]] = None,
                idle_time_mins: Optional[pulumi.Input[int]] = None,
                name: Optional[pulumi.Input[str]] = None,
                tcps: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleVmTcpArgs]]]] = None,
                use_spot: Optional[pulumi.Input[bool]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetRuleVmResult]func LookupRuleVm(ctx *Context, args *LookupRuleVmArgs, opts ...InvokeOption) (*LookupRuleVmResult, error)
func LookupRuleVmOutput(ctx *Context, args *LookupRuleVmOutputArgs, opts ...InvokeOption) LookupRuleVmResultOutput> Note: This function is named LookupRuleVm in the Go SDK.
public static class GetRuleVm 
{
    public static Task<GetRuleVmResult> InvokeAsync(GetRuleVmArgs args, InvokeOptions? opts = null)
    public static Output<GetRuleVmResult> Invoke(GetRuleVmInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRuleVmResult> getRuleVm(GetRuleVmArgs args, InvokeOptions options)
public static Output<GetRuleVmResult> getRuleVm(GetRuleVmArgs args, InvokeOptions options)
fn::invoke:
  function: harness:autostopping/getRuleVm:getRuleVm
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CloudConnector stringId 
- Id of the cloud connector
- Filter
GetRule Vm Filter 
- Name string
- Name of the rule
- CustomDomains List<string>
- Custom URLs used to access the instances
- Depends
List<GetRule Vm Depend> 
- Dependent rules
- Https
List<GetRule Vm Http> 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Tcps
List<GetRule Vm Tcp> 
- TCP routing configuration
- UseSpot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- CloudConnector stringId 
- Id of the cloud connector
- Filter
GetRule Vm Filter 
- Name string
- Name of the rule
- CustomDomains []string
- Custom URLs used to access the instances
- Depends
[]GetRule Vm Depend 
- Dependent rules
- Https
[]GetRule Vm Http 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Tcps
[]GetRule Vm Tcp 
- TCP routing configuration
- UseSpot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector StringId 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- name String
- Name of the rule
- customDomains List<String>
- Custom URLs used to access the instances
- depends
List<GetRule Vm Depend> 
- Dependent rules
- https
List<GetRule Vm Http> 
- Http routing configuration
- idleTime IntegerMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
List<GetRule Vm Tcp> 
- TCP routing configuration
- useSpot Boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector stringId 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- name string
- Name of the rule
- customDomains string[]
- Custom URLs used to access the instances
- depends
GetRule Vm Depend[] 
- Dependent rules
- https
GetRule Vm Http[] 
- Http routing configuration
- idleTime numberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
GetRule Vm Tcp[] 
- TCP routing configuration
- useSpot boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloud_connector_ strid 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- name str
- Name of the rule
- custom_domains Sequence[str]
- Custom URLs used to access the instances
- depends
Sequence[GetRule Vm Depend] 
- Dependent rules
- https
Sequence[GetRule Vm Http] 
- Http routing configuration
- idle_time_ intmins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
Sequence[GetRule Vm Tcp] 
- TCP routing configuration
- use_spot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector StringId 
- Id of the cloud connector
- filter Property Map
- name String
- Name of the rule
- customDomains List<String>
- Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idleTime NumberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps List<Property Map>
- TCP routing configuration
- useSpot Boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
getRuleVm Result
The following output properties are available:
- CloudConnector stringId 
- Id of the cloud connector
- Filter
GetRule Vm Filter 
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier double
- Unique identifier of the resource
- Name string
- Name of the rule
- CustomDomains List<string>
- Custom URLs used to access the instances
- Depends
List<GetRule Vm Depend> 
- Dependent rules
- Https
List<GetRule Vm Http> 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Tcps
List<GetRule Vm Tcp> 
- TCP routing configuration
- UseSpot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- CloudConnector stringId 
- Id of the cloud connector
- Filter
GetRule Vm Filter 
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier float64
- Unique identifier of the resource
- Name string
- Name of the rule
- CustomDomains []string
- Custom URLs used to access the instances
- Depends
[]GetRule Vm Depend 
- Dependent rules
- Https
[]GetRule Vm Http 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Tcps
[]GetRule Vm Tcp 
- TCP routing configuration
- UseSpot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector StringId 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- identifier Double
- Unique identifier of the resource
- name String
- Name of the rule
- customDomains List<String>
- Custom URLs used to access the instances
- depends
List<GetRule Vm Depend> 
- Dependent rules
- https
List<GetRule Vm Http> 
- Http routing configuration
- idleTime IntegerMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
List<GetRule Vm Tcp> 
- TCP routing configuration
- useSpot Boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector stringId 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- id string
- The provider-assigned unique ID for this managed resource.
- identifier number
- Unique identifier of the resource
- name string
- Name of the rule
- customDomains string[]
- Custom URLs used to access the instances
- depends
GetRule Vm Depend[] 
- Dependent rules
- https
GetRule Vm Http[] 
- Http routing configuration
- idleTime numberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
GetRule Vm Tcp[] 
- TCP routing configuration
- useSpot boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloud_connector_ strid 
- Id of the cloud connector
- filter
GetRule Vm Filter 
- id str
- The provider-assigned unique ID for this managed resource.
- identifier float
- Unique identifier of the resource
- name str
- Name of the rule
- custom_domains Sequence[str]
- Custom URLs used to access the instances
- depends
Sequence[GetRule Vm Depend] 
- Dependent rules
- https
Sequence[GetRule Vm Http] 
- Http routing configuration
- idle_time_ intmins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
Sequence[GetRule Vm Tcp] 
- TCP routing configuration
- use_spot bool
- Boolean that indicates whether the selected instances should be converted to spot vm
- cloudConnector StringId 
- Id of the cloud connector
- filter Property Map
- id String
- The provider-assigned unique ID for this managed resource.
- identifier Number
- Unique identifier of the resource
- name String
- Name of the rule
- customDomains List<String>
- Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idleTime NumberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps List<Property Map>
- TCP routing configuration
- useSpot Boolean
- Boolean that indicates whether the selected instances should be converted to spot vm
Supporting Types
GetRuleVmDepend   
- RuleId int
- Rule id of the dependent rule
- DelayIn intSec 
- Number of seconds the rule should wait after warming up the dependent rule
- RuleId int
- Rule id of the dependent rule
- DelayIn intSec 
- Number of seconds the rule should wait after warming up the dependent rule
- ruleId Integer
- Rule id of the dependent rule
- delayIn IntegerSec 
- Number of seconds the rule should wait after warming up the dependent rule
- ruleId number
- Rule id of the dependent rule
- delayIn 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
- ruleId Number
- Rule id of the dependent rule
- delayIn NumberSec 
- Number of seconds the rule should wait after warming up the dependent rule
GetRuleVmFilter   
- VmIds List<string>
- Ids of instances that needs to be managed using the AutoStopping rules
- Regions List<string>
- Regions of instances that needs to be managed using the AutoStopping rules
- 
List<GetRule Vm Filter Tag> 
- Tags of instances that needs to be managed using the AutoStopping rules
- Zones List<string>
- Zones of instances that needs to be managed using the AutoStopping rules
- VmIds []string
- Ids of instances that needs to be managed using the AutoStopping rules
- Regions []string
- Regions of instances that needs to be managed using the AutoStopping rules
- 
[]GetRule Vm Filter Tag 
- Tags of instances that needs to be managed using the AutoStopping rules
- Zones []string
- Zones of instances that needs to be managed using the AutoStopping rules
- vmIds List<String>
- Ids of instances that needs to be managed using the AutoStopping rules
- regions List<String>
- Regions of instances that needs to be managed using the AutoStopping rules
- 
List<GetRule Vm Filter Tag> 
- Tags of instances that needs to be managed using the AutoStopping rules
- zones List<String>
- Zones of instances that needs to be managed using the AutoStopping rules
- vmIds string[]
- Ids of instances that needs to be managed using the AutoStopping rules
- regions string[]
- Regions of instances that needs to be managed using the AutoStopping rules
- 
GetRule Vm Filter Tag[] 
- Tags of instances that needs to be managed using the AutoStopping rules
- zones string[]
- Zones of instances that needs to be managed using the AutoStopping rules
- vm_ids Sequence[str]
- Ids of instances that needs to be managed using the AutoStopping rules
- regions Sequence[str]
- Regions of instances that needs to be managed using the AutoStopping rules
- 
Sequence[GetRule Vm Filter Tag] 
- Tags of instances that needs to be managed using the AutoStopping rules
- zones Sequence[str]
- Zones of instances that needs to be managed using the AutoStopping rules
- vmIds List<String>
- Ids of instances that needs to be managed using the AutoStopping rules
- regions List<String>
- Regions of instances that needs to be managed using the AutoStopping rules
- List<Property Map>
- Tags of instances that needs to be managed using the AutoStopping rules
- zones List<String>
- Zones of instances that needs to be managed using the AutoStopping rules
GetRuleVmFilterTag    
GetRuleVmHttp   
- ProxyId string
- Id of the proxy
- Healths
List<GetRule Vm Http Health> 
- Health Check Details
- Routings
List<GetRule Vm Http Routing> 
- Routing configuration used to access the instances
- ProxyId string
- Id of the proxy
- Healths
[]GetRule Vm Http Health 
- Health Check Details
- Routings
[]GetRule Vm Http Routing 
- Routing configuration used to access the instances
- proxyId String
- Id of the proxy
- healths
List<GetRule Vm Http Health> 
- Health Check Details
- routings
List<GetRule Vm Http Routing> 
- Routing configuration used to access the instances
- proxyId string
- Id of the proxy
- healths
GetRule Vm Http Health[] 
- Health Check Details
- routings
GetRule Vm Http Routing[] 
- Routing configuration used to access the instances
- proxy_id str
- Id of the proxy
- healths
Sequence[GetRule Vm Http Health] 
- Health Check Details
- routings
Sequence[GetRule Vm Http Routing] 
- Routing configuration used to access the instances
- proxyId String
- Id of the proxy
- healths List<Property Map>
- Health Check Details
- routings List<Property Map>
- Routing configuration used to access the instances
GetRuleVmHttpHealth    
- Port int
- Health check port on the VM
- Protocol string
- Protocol can be http or https
- Path string
- API path to use for health check
- StatusCode intFrom 
- Lower limit for acceptable status code
- StatusCode intTo 
- Upper limit for acceptable status code
- Timeout int
- Health check timeout
- Port int
- Health check port on the VM
- Protocol string
- Protocol can be http or https
- Path string
- API path to use for health check
- StatusCode intFrom 
- Lower limit for acceptable status code
- StatusCode intTo 
- Upper limit for acceptable status code
- Timeout int
- Health check timeout
- port Integer
- Health check port on the VM
- protocol String
- Protocol can be http or https
- path String
- API path to use for health check
- statusCode IntegerFrom 
- Lower limit for acceptable status code
- statusCode IntegerTo 
- Upper limit for acceptable status code
- timeout Integer
- Health check timeout
- port number
- Health check port on the VM
- protocol string
- Protocol can be http or https
- path string
- API path to use for health check
- statusCode numberFrom 
- Lower limit for acceptable status code
- statusCode numberTo 
- Upper limit for acceptable status code
- timeout number
- Health check timeout
- port int
- Health check port on the VM
- protocol str
- Protocol can be http or https
- path str
- API path to use for health check
- status_code_ intfrom 
- Lower limit for acceptable status code
- status_code_ intto 
- Upper limit for acceptable status code
- timeout int
- Health check timeout
- port Number
- Health check port on the VM
- protocol String
- Protocol can be http or https
- path String
- API path to use for health check
- statusCode NumberFrom 
- Lower limit for acceptable status code
- statusCode NumberTo 
- Upper limit for acceptable status code
- timeout Number
- Health check timeout
GetRuleVmHttpRouting    
- SourceProtocol string
- Source protocol of the proxy can be http or https
- TargetProtocol string
- Target protocol of the instance can be http or https
- Action string
- Organization Identifier for the Entity
- SourcePort int
- Port on the proxy
- TargetPort int
- Port on the VM
- SourceProtocol string
- Source protocol of the proxy can be http or https
- TargetProtocol string
- Target protocol of the instance can be http or https
- Action string
- Organization Identifier for the Entity
- SourcePort int
- Port on the proxy
- TargetPort int
- Port on the VM
- sourceProtocol String
- Source protocol of the proxy can be http or https
- targetProtocol String
- Target protocol of the instance can be http or https
- action String
- Organization Identifier for the Entity
- sourcePort Integer
- Port on the proxy
- targetPort Integer
- Port on the VM
- sourceProtocol string
- Source protocol of the proxy can be http or https
- targetProtocol string
- Target protocol of the instance can be http or https
- action string
- Organization Identifier for the Entity
- sourcePort number
- Port on the proxy
- targetPort number
- Port on the VM
- source_protocol str
- Source protocol of the proxy can be http or https
- target_protocol str
- Target protocol of the instance can be http or https
- action str
- Organization Identifier for the Entity
- source_port int
- Port on the proxy
- target_port int
- Port on the VM
- sourceProtocol String
- Source protocol of the proxy can be http or https
- targetProtocol String
- Target protocol of the instance can be http or https
- action String
- Organization Identifier for the Entity
- sourcePort Number
- Port on the proxy
- targetPort Number
- Port on the VM
GetRuleVmTcp   
- ProxyId string
- Id of the Proxy
- ForwardRules List<GetRule Vm Tcp Forward Rule> 
- Additional tcp forwarding rules
- Rdps
List<GetRule Vm Tcp Rdp> 
- RDP configuration
- Sshes
List<GetRule Vm Tcp Ssh> 
- SSH configuration
- ProxyId string
- Id of the Proxy
- ForwardRules []GetRule Vm Tcp Forward Rule 
- Additional tcp forwarding rules
- Rdps
[]GetRule Vm Tcp Rdp 
- RDP configuration
- Sshes
[]GetRule Vm Tcp Ssh 
- SSH configuration
- proxyId String
- Id of the Proxy
- forwardRules List<GetRule Vm Tcp Forward Rule> 
- Additional tcp forwarding rules
- rdps
List<GetRule Vm Tcp Rdp> 
- RDP configuration
- sshes
List<GetRule Vm Tcp Ssh> 
- SSH configuration
- proxyId string
- Id of the Proxy
- forwardRules GetRule Vm Tcp Forward Rule[] 
- Additional tcp forwarding rules
- rdps
GetRule Vm Tcp Rdp[] 
- RDP configuration
- sshes
GetRule Vm Tcp Ssh[] 
- SSH configuration
- proxy_id str
- Id of the Proxy
- forward_rules Sequence[GetRule Vm Tcp Forward Rule] 
- Additional tcp forwarding rules
- rdps
Sequence[GetRule Vm Tcp Rdp] 
- RDP configuration
- sshes
Sequence[GetRule Vm Tcp Ssh] 
- SSH configuration
- proxyId String
- Id of the Proxy
- forwardRules List<Property Map>
- Additional tcp forwarding rules
- rdps List<Property Map>
- RDP configuration
- sshes List<Property Map>
- SSH configuration
GetRuleVmTcpForwardRule     
- port int
- Port to listen on the vm
- connect_on int
- Port to listen on the proxy
GetRuleVmTcpRdp    
- connect_on int
- Port to listen on the proxy
- port int
- Port to listen on the vm
GetRuleVmTcpSsh    
- connect_on int
- Port to listen on the proxy
- port int
- Port to listen on the vm
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
