tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getAsScalingPolicies
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of scaling policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const asScalingPolicies = tencentcloud.getAsScalingPolicies({
resultOutputFile: "mytestpath",
scalingPolicyId: "asg-mvyghxu7",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
as_scaling_policies = tencentcloud.get_as_scaling_policies(result_output_file="mytestpath",
scaling_policy_id="asg-mvyghxu7")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetAsScalingPolicies(ctx, &tencentcloud.GetAsScalingPoliciesArgs{
ResultOutputFile: pulumi.StringRef("mytestpath"),
ScalingPolicyId: pulumi.StringRef("asg-mvyghxu7"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var asScalingPolicies = Tencentcloud.GetAsScalingPolicies.Invoke(new()
{
ResultOutputFile = "mytestpath",
ScalingPolicyId = "asg-mvyghxu7",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAsScalingPoliciesArgs;
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 asScalingPolicies = TencentcloudFunctions.getAsScalingPolicies(GetAsScalingPoliciesArgs.builder()
.resultOutputFile("mytestpath")
.scalingPolicyId("asg-mvyghxu7")
.build());
}
}
variables:
asScalingPolicies:
fn::invoke:
function: tencentcloud:getAsScalingPolicies
arguments:
resultOutputFile: mytestpath
scalingPolicyId: asg-mvyghxu7
Using getAsScalingPolicies
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 getAsScalingPolicies(args: GetAsScalingPoliciesArgs, opts?: InvokeOptions): Promise<GetAsScalingPoliciesResult>
function getAsScalingPoliciesOutput(args: GetAsScalingPoliciesOutputArgs, opts?: InvokeOptions): Output<GetAsScalingPoliciesResult>
def get_as_scaling_policies(id: Optional[str] = None,
policy_name: Optional[str] = None,
result_output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scaling_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAsScalingPoliciesResult
def get_as_scaling_policies_output(id: Optional[pulumi.Input[str]] = None,
policy_name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
scaling_group_id: Optional[pulumi.Input[str]] = None,
scaling_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAsScalingPoliciesResult]
func GetAsScalingPolicies(ctx *Context, args *GetAsScalingPoliciesArgs, opts ...InvokeOption) (*GetAsScalingPoliciesResult, error)
func GetAsScalingPoliciesOutput(ctx *Context, args *GetAsScalingPoliciesOutputArgs, opts ...InvokeOption) GetAsScalingPoliciesResultOutput
> Note: This function is named GetAsScalingPolicies
in the Go SDK.
public static class GetAsScalingPolicies
{
public static Task<GetAsScalingPoliciesResult> InvokeAsync(GetAsScalingPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetAsScalingPoliciesResult> Invoke(GetAsScalingPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAsScalingPoliciesResult> getAsScalingPolicies(GetAsScalingPoliciesArgs args, InvokeOptions options)
public static Output<GetAsScalingPoliciesResult> getAsScalingPolicies(GetAsScalingPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getAsScalingPolicies:getAsScalingPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Policy
Name string - Scaling policy name.
- Result
Output stringFile - Used to save results.
- Scaling
Group stringId - Scaling group ID.
- Scaling
Policy stringId - Scaling policy ID.
- Id string
- Policy
Name string - Scaling policy name.
- Result
Output stringFile - Used to save results.
- Scaling
Group stringId - Scaling group ID.
- Scaling
Policy stringId - Scaling policy ID.
- id String
- policy
Name String - Scaling policy name.
- result
Output StringFile - Used to save results.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringId - Scaling policy ID.
- id string
- policy
Name string - Scaling policy name.
- result
Output stringFile - Used to save results.
- scaling
Group stringId - Scaling group ID.
- scaling
Policy stringId - Scaling policy ID.
- id str
- policy_
name str - Scaling policy name.
- result_
output_ strfile - Used to save results.
- scaling_
group_ strid - Scaling group ID.
- scaling_
policy_ strid - Scaling policy ID.
- id String
- policy
Name String - Scaling policy name.
- result
Output StringFile - Used to save results.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringId - Scaling policy ID.
getAsScalingPolicies Result
The following output properties are available:
- Id string
- Scaling
Policy List<GetLists As Scaling Policies Scaling Policy List> - A list of scaling policy. Each element contains the following attributes:
- Policy
Name string - Scaling policy name.
- Result
Output stringFile - Scaling
Group stringId - Scaling policy ID.
- Scaling
Policy stringId
- Id string
- Scaling
Policy []GetLists As Scaling Policies Scaling Policy List - A list of scaling policy. Each element contains the following attributes:
- Policy
Name string - Scaling policy name.
- Result
Output stringFile - Scaling
Group stringId - Scaling policy ID.
- Scaling
Policy stringId
- id String
- scaling
Policy List<GetLists As Scaling Policies Scaling Policy List> - A list of scaling policy. Each element contains the following attributes:
- policy
Name String - Scaling policy name.
- result
Output StringFile - scaling
Group StringId - Scaling policy ID.
- scaling
Policy StringId
- id string
- scaling
Policy GetLists As Scaling Policies Scaling Policy List[] - A list of scaling policy. Each element contains the following attributes:
- policy
Name string - Scaling policy name.
- result
Output stringFile - scaling
Group stringId - Scaling policy ID.
- scaling
Policy stringId
- id str
- scaling_
policy_ Sequence[Getlists As Scaling Policies Scaling Policy List] - A list of scaling policy. Each element contains the following attributes:
- policy_
name str - Scaling policy name.
- result_
output_ strfile - scaling_
group_ strid - Scaling policy ID.
- scaling_
policy_ strid
- id String
- scaling
Policy List<Property Map>Lists - A list of scaling policy. Each element contains the following attributes:
- policy
Name String - Scaling policy name.
- result
Output StringFile - scaling
Group StringId - Scaling policy ID.
- scaling
Policy StringId
Supporting Types
GetAsScalingPoliciesScalingPolicyList
- Adjustment
Type string - Adjustment type of the scaling rule.
- Adjustment
Value double - Adjustment value of the scaling rule.
- Comparison
Operator string - Comparison operator.
- Continuous
Time double - Retry times.
- Cooldown double
- Cool down time of the scaling rule.
- Metric
Name string - Name of an indicator.
- Notification
User List<string>Group Ids - Users need to be notified when an alarm is triggered.
- Period double
- Time period in second.
- Policy
Name string - Scaling policy name.
- Scaling
Group stringId - Scaling group ID.
- Statistic string
- Statistic types.
- Threshold double
- Alarm threshold.
- Adjustment
Type string - Adjustment type of the scaling rule.
- Adjustment
Value float64 - Adjustment value of the scaling rule.
- Comparison
Operator string - Comparison operator.
- Continuous
Time float64 - Retry times.
- Cooldown float64
- Cool down time of the scaling rule.
- Metric
Name string - Name of an indicator.
- Notification
User []stringGroup Ids - Users need to be notified when an alarm is triggered.
- Period float64
- Time period in second.
- Policy
Name string - Scaling policy name.
- Scaling
Group stringId - Scaling group ID.
- Statistic string
- Statistic types.
- Threshold float64
- Alarm threshold.
- adjustment
Type String - Adjustment type of the scaling rule.
- adjustment
Value Double - Adjustment value of the scaling rule.
- comparison
Operator String - Comparison operator.
- continuous
Time Double - Retry times.
- cooldown Double
- Cool down time of the scaling rule.
- metric
Name String - Name of an indicator.
- notification
User List<String>Group Ids - Users need to be notified when an alarm is triggered.
- period Double
- Time period in second.
- policy
Name String - Scaling policy name.
- scaling
Group StringId - Scaling group ID.
- statistic String
- Statistic types.
- threshold Double
- Alarm threshold.
- adjustment
Type string - Adjustment type of the scaling rule.
- adjustment
Value number - Adjustment value of the scaling rule.
- comparison
Operator string - Comparison operator.
- continuous
Time number - Retry times.
- cooldown number
- Cool down time of the scaling rule.
- metric
Name string - Name of an indicator.
- notification
User string[]Group Ids - Users need to be notified when an alarm is triggered.
- period number
- Time period in second.
- policy
Name string - Scaling policy name.
- scaling
Group stringId - Scaling group ID.
- statistic string
- Statistic types.
- threshold number
- Alarm threshold.
- adjustment_
type str - Adjustment type of the scaling rule.
- adjustment_
value float - Adjustment value of the scaling rule.
- comparison_
operator str - Comparison operator.
- continuous_
time float - Retry times.
- cooldown float
- Cool down time of the scaling rule.
- metric_
name str - Name of an indicator.
- notification_
user_ Sequence[str]group_ ids - Users need to be notified when an alarm is triggered.
- period float
- Time period in second.
- policy_
name str - Scaling policy name.
- scaling_
group_ strid - Scaling group ID.
- statistic str
- Statistic types.
- threshold float
- Alarm threshold.
- adjustment
Type String - Adjustment type of the scaling rule.
- adjustment
Value Number - Adjustment value of the scaling rule.
- comparison
Operator String - Comparison operator.
- continuous
Time Number - Retry times.
- cooldown Number
- Cool down time of the scaling rule.
- metric
Name String - Name of an indicator.
- notification
User List<String>Group Ids - Users need to be notified when an alarm is triggered.
- period Number
- Time period in second.
- policy
Name String - Scaling policy name.
- scaling
Group StringId - Scaling group ID.
- statistic String
- Statistic types.
- threshold Number
- Alarm threshold.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack