1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. getRuleScaleGroup
Harness v0.9.1 published on Thursday, Nov 13, 2025 by Pulumi
harness logo
Harness v0.9.1 published on Thursday, Nov 13, 2025 by Pulumi

    Data source for retrieving a Harness Variable.

    Example Usage

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

    Using getRuleScaleGroup

    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 getRuleScaleGroup(args: GetRuleScaleGroupArgs, opts?: InvokeOptions): Promise<GetRuleScaleGroupResult>
    function getRuleScaleGroupOutput(args: GetRuleScaleGroupOutputArgs, opts?: InvokeOptions): Output<GetRuleScaleGroupResult>
    def get_rule_scale_group(cloud_connector_id: Optional[str] = None,
                             custom_domains: Optional[Sequence[str]] = None,
                             depends: Optional[Sequence[GetRuleScaleGroupDepend]] = None,
                             dry_run: Optional[bool] = None,
                             https: Optional[Sequence[GetRuleScaleGroupHttp]] = None,
                             idle_time_mins: Optional[int] = None,
                             name: Optional[str] = None,
                             scale_group: Optional[GetRuleScaleGroupScaleGroup] = None,
                             opts: Optional[InvokeOptions] = None) -> GetRuleScaleGroupResult
    def get_rule_scale_group_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[GetRuleScaleGroupDependArgs]]]] = None,
                             dry_run: Optional[pulumi.Input[bool]] = None,
                             https: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleScaleGroupHttpArgs]]]] = None,
                             idle_time_mins: Optional[pulumi.Input[int]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             scale_group: Optional[pulumi.Input[GetRuleScaleGroupScaleGroupArgs]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetRuleScaleGroupResult]
    func LookupRuleScaleGroup(ctx *Context, args *LookupRuleScaleGroupArgs, opts ...InvokeOption) (*LookupRuleScaleGroupResult, error)
    func LookupRuleScaleGroupOutput(ctx *Context, args *LookupRuleScaleGroupOutputArgs, opts ...InvokeOption) LookupRuleScaleGroupResultOutput

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

    public static class GetRuleScaleGroup 
    {
        public static Task<GetRuleScaleGroupResult> InvokeAsync(GetRuleScaleGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetRuleScaleGroupResult> Invoke(GetRuleScaleGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuleScaleGroupResult> getRuleScaleGroup(GetRuleScaleGroupArgs args, InvokeOptions options)
    public static Output<GetRuleScaleGroupResult> getRuleScaleGroup(GetRuleScaleGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:autostopping/getRuleScaleGroup:getRuleScaleGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudConnectorId string
    Id of the cloud connector
    Name string
    Name of the rule
    ScaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    CustomDomains List<string>
    Custom URLs used to access the instances
    Depends List<GetRuleScaleGroupDepend>
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    Https List<GetRuleScaleGroupHttp>
    Http routing configuration
    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
    Name string
    Name of the rule
    ScaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    CustomDomains []string
    Custom URLs used to access the instances
    Depends []GetRuleScaleGroupDepend
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    Https []GetRuleScaleGroupHttp
    Http routing configuration
    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
    name String
    Name of the rule
    scaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<GetRuleScaleGroupDepend>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https List<GetRuleScaleGroupHttp>
    Http routing configuration
    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
    name string
    Name of the rule
    scaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    customDomains string[]
    Custom URLs used to access the instances
    depends GetRuleScaleGroupDepend[]
    Dependent rules
    dryRun boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https GetRuleScaleGroupHttp[]
    Http routing configuration
    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
    name str
    Name of the rule
    scale_group GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    custom_domains Sequence[str]
    Custom URLs used to access the instances
    depends Sequence[GetRuleScaleGroupDepend]
    Dependent rules
    dry_run bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https Sequence[GetRuleScaleGroupHttp]
    Http routing configuration
    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
    name String
    Name of the rule
    scaleGroup Property Map
    Scaling Group configuration
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<Property Map>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https List<Property Map>
    Http routing configuration
    idleTimeMins Number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

    getRuleScaleGroup 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 double
    Unique identifier of the resource
    Name string
    Name of the rule
    ScaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    CustomDomains List<string>
    Custom URLs used to access the instances
    Depends List<GetRuleScaleGroupDepend>
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    Https List<GetRuleScaleGroupHttp>
    Http routing configuration
    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 float64
    Unique identifier of the resource
    Name string
    Name of the rule
    ScaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    CustomDomains []string
    Custom URLs used to access the instances
    Depends []GetRuleScaleGroupDepend
    Dependent rules
    DryRun bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    Https []GetRuleScaleGroupHttp
    Http routing configuration
    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 Double
    Unique identifier of the resource
    name String
    Name of the rule
    scaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<GetRuleScaleGroupDepend>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https List<GetRuleScaleGroupHttp>
    Http routing configuration
    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 number
    Unique identifier of the resource
    name string
    Name of the rule
    scaleGroup GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    customDomains string[]
    Custom URLs used to access the instances
    depends GetRuleScaleGroupDepend[]
    Dependent rules
    dryRun boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https GetRuleScaleGroupHttp[]
    Http routing configuration
    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 float
    Unique identifier of the resource
    name str
    Name of the rule
    scale_group GetRuleScaleGroupScaleGroup
    Scaling Group configuration
    custom_domains Sequence[str]
    Custom URLs used to access the instances
    depends Sequence[GetRuleScaleGroupDepend]
    Dependent rules
    dry_run bool
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https Sequence[GetRuleScaleGroupHttp]
    Http routing configuration
    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 Number
    Unique identifier of the resource
    name String
    Name of the rule
    scaleGroup Property Map
    Scaling Group configuration
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<Property Map>
    Dependent rules
    dryRun Boolean
    Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
    https List<Property Map>
    Http routing configuration
    idleTimeMins Number
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

    Supporting Types

    GetRuleScaleGroupDepend

    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

    GetRuleScaleGroupHttp

    ProxyId string
    Id of the proxy
    Healths List<GetRuleScaleGroupHttpHealth>
    Health Check Details
    Routings List<GetRuleScaleGroupHttpRouting>
    Routing configuration used to access the scaling group
    ProxyId string
    Id of the proxy
    Healths []GetRuleScaleGroupHttpHealth
    Health Check Details
    Routings []GetRuleScaleGroupHttpRouting
    Routing configuration used to access the scaling group
    proxyId String
    Id of the proxy
    healths List<GetRuleScaleGroupHttpHealth>
    Health Check Details
    routings List<GetRuleScaleGroupHttpRouting>
    Routing configuration used to access the scaling group
    proxyId string
    Id of the proxy
    healths GetRuleScaleGroupHttpHealth[]
    Health Check Details
    routings GetRuleScaleGroupHttpRouting[]
    Routing configuration used to access the scaling group
    proxy_id str
    Id of the proxy
    healths Sequence[GetRuleScaleGroupHttpHealth]
    Health Check Details
    routings Sequence[GetRuleScaleGroupHttpRouting]
    Routing configuration used to access the scaling group
    proxyId String
    Id of the proxy
    healths List<Property Map>
    Health Check Details
    routings List<Property Map>
    Routing configuration used to access the scaling group

    GetRuleScaleGroupHttpHealth

    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
    StatusCodeFrom int
    Lower limit for acceptable status code
    StatusCodeTo int
    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
    StatusCodeFrom int
    Lower limit for acceptable status code
    StatusCodeTo int
    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
    statusCodeFrom Integer
    Lower limit for acceptable status code
    statusCodeTo Integer
    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
    statusCodeFrom number
    Lower limit for acceptable status code
    statusCodeTo number
    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_from int
    Lower limit for acceptable status code
    status_code_to int
    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
    statusCodeFrom Number
    Lower limit for acceptable status code
    statusCodeTo Number
    Upper limit for acceptable status code
    timeout Number
    Health check timeout

    GetRuleScaleGroupHttpRouting

    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

    GetRuleScaleGroupScaleGroup

    Desired int
    Desired capacity of the Scaling Group
    Id string
    ID of the Scaling Group
    Max int
    Maximum capacity of the Scaling Group
    Min int
    Minimum capacity of the Scaling Group
    Name string
    Name of the Scaling Group
    OnDemand int
    On-demand capacity of the Scaling Group
    Region string
    Region of the Scaling Group
    Zone string
    Zone of the Scaling Group. Needed for GCP only
    Desired int
    Desired capacity of the Scaling Group
    Id string
    ID of the Scaling Group
    Max int
    Maximum capacity of the Scaling Group
    Min int
    Minimum capacity of the Scaling Group
    Name string
    Name of the Scaling Group
    OnDemand int
    On-demand capacity of the Scaling Group
    Region string
    Region of the Scaling Group
    Zone string
    Zone of the Scaling Group. Needed for GCP only
    desired Integer
    Desired capacity of the Scaling Group
    id String
    ID of the Scaling Group
    max Integer
    Maximum capacity of the Scaling Group
    min Integer
    Minimum capacity of the Scaling Group
    name String
    Name of the Scaling Group
    onDemand Integer
    On-demand capacity of the Scaling Group
    region String
    Region of the Scaling Group
    zone String
    Zone of the Scaling Group. Needed for GCP only
    desired number
    Desired capacity of the Scaling Group
    id string
    ID of the Scaling Group
    max number
    Maximum capacity of the Scaling Group
    min number
    Minimum capacity of the Scaling Group
    name string
    Name of the Scaling Group
    onDemand number
    On-demand capacity of the Scaling Group
    region string
    Region of the Scaling Group
    zone string
    Zone of the Scaling Group. Needed for GCP only
    desired int
    Desired capacity of the Scaling Group
    id str
    ID of the Scaling Group
    max int
    Maximum capacity of the Scaling Group
    min int
    Minimum capacity of the Scaling Group
    name str
    Name of the Scaling Group
    on_demand int
    On-demand capacity of the Scaling Group
    region str
    Region of the Scaling Group
    zone str
    Zone of the Scaling Group. Needed for GCP only
    desired Number
    Desired capacity of the Scaling Group
    id String
    ID of the Scaling Group
    max Number
    Maximum capacity of the Scaling Group
    min Number
    Minimum capacity of the Scaling Group
    name String
    Name of the Scaling Group
    onDemand Number
    On-demand capacity of the Scaling Group
    region String
    Region of the Scaling Group
    zone String
    Zone of the Scaling Group. Needed for GCP only

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.9.1 published on Thursday, Nov 13, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate