Harness v0.3.2 published on Monday, Sep 16, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:autostopping/getRuleVm:getRuleVm
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Connector stringId - Id of the cloud connector
- Filter
Get
Rule Vm Filter - Name string
- Name of the rule
- Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Get
Rule Vm Depend> - Dependent rules
- Https
List<Get
Rule 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
List<Get
Rule Vm Tcp> - TCP routing configuration
- Use
Spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- Cloud
Connector stringId - Id of the cloud connector
- Filter
Get
Rule Vm Filter - Name string
- Name of the rule
- Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Get
Rule Vm Depend - Dependent rules
- Https
[]Get
Rule 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
[]Get
Rule Vm Tcp - TCP routing configuration
- Use
Spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector StringId - Id of the cloud connector
- filter
Get
Rule Vm Filter - name String
- Name of the rule
- custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Get
Rule Vm Depend> - Dependent rules
- https
List<Get
Rule Vm Http> - Http routing configuration
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
List<Get
Rule Vm Tcp> - TCP routing configuration
- use
Spot Boolean - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector stringId - Id of the cloud connector
- filter
Get
Rule Vm Filter - name string
- Name of the rule
- custom
Domains string[] - Custom URLs used to access the instances
- depends
Get
Rule Vm Depend[] - Dependent rules
- https
Get
Rule Vm Http[] - Http routing configuration
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
Get
Rule Vm Tcp[] - TCP routing configuration
- use
Spot boolean - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud_
connector_ strid - Id of the cloud connector
- filter
Get
Rule Vm Filter - name str
- Name of the rule
- custom_
domains Sequence[str] - Custom URLs used to access the instances
- depends
Sequence[Get
Rule Vm Depend] - Dependent rules
- https
Sequence[Get
Rule 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[Get
Rule Vm Tcp] - TCP routing configuration
- use_
spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector StringId - Id of the cloud connector
- filter Property Map
- name String
- Name of the rule
- custom
Domains List<String> - Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idle
Time 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
- use
Spot Boolean - Boolean that indicates whether the selected instances should be converted to spot vm
getRuleVm Result
The following output properties are available:
- Cloud
Connector stringId - Id of the cloud connector
- Filter
Get
Rule 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
- Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Get
Rule Vm Depend> - Dependent rules
- Https
List<Get
Rule 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
List<Get
Rule Vm Tcp> - TCP routing configuration
- Use
Spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- Cloud
Connector stringId - Id of the cloud connector
- Filter
Get
Rule 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
- Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Get
Rule Vm Depend - Dependent rules
- Https
[]Get
Rule 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
[]Get
Rule Vm Tcp - TCP routing configuration
- Use
Spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector StringId - Id of the cloud connector
- filter
Get
Rule 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
- custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Get
Rule Vm Depend> - Dependent rules
- https
List<Get
Rule Vm Http> - Http routing configuration
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
List<Get
Rule Vm Tcp> - TCP routing configuration
- use
Spot Boolean - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector stringId - Id of the cloud connector
- filter
Get
Rule 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
- custom
Domains string[] - Custom URLs used to access the instances
- depends
Get
Rule Vm Depend[] - Dependent rules
- https
Get
Rule Vm Http[] - Http routing configuration
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- tcps
Get
Rule Vm Tcp[] - TCP routing configuration
- use
Spot boolean - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud_
connector_ strid - Id of the cloud connector
- filter
Get
Rule 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[Get
Rule Vm Depend] - Dependent rules
- https
Sequence[Get
Rule 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[Get
Rule Vm Tcp] - TCP routing configuration
- use_
spot bool - Boolean that indicates whether the selected instances should be converted to spot vm
- cloud
Connector 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
- custom
Domains List<String> - Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idle
Time 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
- use
Spot Boolean - Boolean that indicates whether the selected instances should be converted to spot vm
Supporting Types
GetRuleVmDepend
- 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
GetRuleVmFilter
- Vm
Ids 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<Get
Rule 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
- Vm
Ids []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
- []Get
Rule 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 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<Get
Rule 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
- vm
Ids 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
- Get
Rule 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[Get
Rule 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
- vm
Ids 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
- Proxy
Id string - Id of the proxy
- Healths
List<Get
Rule Vm Http Health> - Health Check Details
- Routings
List<Get
Rule Vm Http Routing> - Routing configuration used to access the instances
- Proxy
Id string - Id of the proxy
- Healths
[]Get
Rule Vm Http Health - Health Check Details
- Routings
[]Get
Rule Vm Http Routing - Routing configuration used to access the instances
- proxy
Id String - Id of the proxy
- healths
List<Get
Rule Vm Http Health> - Health Check Details
- routings
List<Get
Rule Vm Http Routing> - Routing configuration used to access the instances
- proxy
Id string - Id of the proxy
- healths
Get
Rule Vm Http Health[] - Health Check Details
- routings
Get
Rule Vm Http Routing[] - Routing configuration used to access the instances
- proxy_
id str - Id of the proxy
- healths
Sequence[Get
Rule Vm Http Health] - Health Check Details
- routings
Sequence[Get
Rule Vm Http Routing] - Routing configuration used to access the instances
- proxy
Id 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
- Status
Code intFrom - Lower limit for acceptable status code
- Status
Code 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
- Status
Code intFrom - Lower limit for acceptable status code
- Status
Code 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
- status
Code IntegerFrom - Lower limit for acceptable status code
- status
Code 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
- status
Code numberFrom - Lower limit for acceptable status code
- status
Code 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
- status
Code NumberFrom - Lower limit for acceptable status code
- status
Code NumberTo - Upper limit for acceptable status code
- timeout Number
- Health check timeout
GetRuleVmHttpRouting
- Source
Protocol string - Source protocol of the proxy can be http or https
- Target
Protocol string - Target protocol of the instance can be http or https
- Action string
- Organization Identifier for the Entity
- Source
Port int - Port on the proxy
- Target
Port int - Port on the VM
- Source
Protocol string - Source protocol of the proxy can be http or https
- Target
Protocol string - Target protocol of the instance can be http or https
- Action string
- Organization Identifier for the Entity
- Source
Port int - Port on the proxy
- Target
Port int - Port on the VM
- source
Protocol String - Source protocol of the proxy can be http or https
- target
Protocol String - Target protocol of the instance can be http or https
- action String
- Organization Identifier for the Entity
- source
Port Integer - Port on the proxy
- target
Port Integer - Port on the VM
- source
Protocol string - Source protocol of the proxy can be http or https
- target
Protocol string - Target protocol of the instance can be http or https
- action string
- Organization Identifier for the Entity
- source
Port number - Port on the proxy
- target
Port 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
- source
Protocol String - Source protocol of the proxy can be http or https
- target
Protocol String - Target protocol of the instance can be http or https
- action String
- Organization Identifier for the Entity
- source
Port Number - Port on the proxy
- target
Port Number - Port on the VM
GetRuleVmTcp
- Proxy
Id string - Id of the Proxy
- Forward
Rules List<GetRule Vm Tcp Forward Rule> - Additional tcp forwarding rules
- Rdps
List<Get
Rule Vm Tcp Rdp> - RDP configuration
- Sshes
List<Get
Rule Vm Tcp Ssh> - SSH configuration
- Proxy
Id string - Id of the Proxy
- Forward
Rules []GetRule Vm Tcp Forward Rule - Additional tcp forwarding rules
- Rdps
[]Get
Rule Vm Tcp Rdp - RDP configuration
- Sshes
[]Get
Rule Vm Tcp Ssh - SSH configuration
- proxy
Id String - Id of the Proxy
- forward
Rules List<GetRule Vm Tcp Forward Rule> - Additional tcp forwarding rules
- rdps
List<Get
Rule Vm Tcp Rdp> - RDP configuration
- sshes
List<Get
Rule Vm Tcp Ssh> - SSH configuration
- proxy
Id string - Id of the Proxy
- forward
Rules GetRule Vm Tcp Forward Rule[] - Additional tcp forwarding rules
- rdps
Get
Rule Vm Tcp Rdp[] - RDP configuration
- sshes
Get
Rule 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[Get
Rule Vm Tcp Rdp] - RDP configuration
- sshes
Sequence[Get
Rule Vm Tcp Ssh] - SSH configuration
- proxy
Id String - Id of the Proxy
- forward
Rules 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
harness
Terraform Provider.