tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMonitorPolicyConditions
Start a Neo task
Explain and create a tencentcloud.getMonitorPolicyConditions resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query monitor policy conditions(There is a lot of data and it is recommended to output to a file)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const monitorPolicyConditions = tencentcloud.getMonitorPolicyConditions({
name: "Cloud Virtual Machine",
resultOutputFile: "./tencentcloud_monitor_policy_conditions.txt",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
monitor_policy_conditions = tencentcloud.get_monitor_policy_conditions(name="Cloud Virtual Machine",
result_output_file="./tencentcloud_monitor_policy_conditions.txt")
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.GetMonitorPolicyConditions(ctx, &tencentcloud.GetMonitorPolicyConditionsArgs{
Name: pulumi.StringRef("Cloud Virtual Machine"),
ResultOutputFile: pulumi.StringRef("./tencentcloud_monitor_policy_conditions.txt"),
}, 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 monitorPolicyConditions = Tencentcloud.GetMonitorPolicyConditions.Invoke(new()
{
Name = "Cloud Virtual Machine",
ResultOutputFile = "./tencentcloud_monitor_policy_conditions.txt",
});
});
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.GetMonitorPolicyConditionsArgs;
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 monitorPolicyConditions = TencentcloudFunctions.getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs.builder()
.name("Cloud Virtual Machine")
.resultOutputFile("./tencentcloud_monitor_policy_conditions.txt")
.build());
}
}
variables:
monitorPolicyConditions:
fn::invoke:
function: tencentcloud:getMonitorPolicyConditions
arguments:
name: Cloud Virtual Machine
resultOutputFile: ./tencentcloud_monitor_policy_conditions.txt
Using getMonitorPolicyConditions
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 getMonitorPolicyConditions(args: GetMonitorPolicyConditionsArgs, opts?: InvokeOptions): Promise<GetMonitorPolicyConditionsResult>
function getMonitorPolicyConditionsOutput(args: GetMonitorPolicyConditionsOutputArgs, opts?: InvokeOptions): Output<GetMonitorPolicyConditionsResult>def get_monitor_policy_conditions(id: Optional[str] = None,
name: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMonitorPolicyConditionsResult
def get_monitor_policy_conditions_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMonitorPolicyConditionsResult]func GetMonitorPolicyConditions(ctx *Context, args *GetMonitorPolicyConditionsArgs, opts ...InvokeOption) (*GetMonitorPolicyConditionsResult, error)
func GetMonitorPolicyConditionsOutput(ctx *Context, args *GetMonitorPolicyConditionsOutputArgs, opts ...InvokeOption) GetMonitorPolicyConditionsResultOutput> Note: This function is named GetMonitorPolicyConditions in the Go SDK.
public static class GetMonitorPolicyConditions
{
public static Task<GetMonitorPolicyConditionsResult> InvokeAsync(GetMonitorPolicyConditionsArgs args, InvokeOptions? opts = null)
public static Output<GetMonitorPolicyConditionsResult> Invoke(GetMonitorPolicyConditionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitorPolicyConditionsResult> getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs args, InvokeOptions options)
public static Output<GetMonitorPolicyConditionsResult> getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMonitorPolicyConditions:getMonitorPolicyConditions
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - Result
Output stringFile - Used to store results.
- Id string
- Name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - Result
Output stringFile - Used to store results.
- id String
- name String
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - result
Output StringFile - Used to store results.
- id string
- name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - result
Output stringFile - Used to store results.
- id str
- name str
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - result_
output_ strfile - Used to store results.
- id String
- name String
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - result
Output StringFile - Used to store results.
getMonitorPolicyConditions Result
The following output properties are available:
- Id string
- Lists
List<Get
Monitor Policy Conditions List> - A list policy condition. Each element contains the following attributes:
- Name string
- Name of this policy name.
- Result
Output stringFile
- Id string
- Lists
[]Get
Monitor Policy Conditions List - A list policy condition. Each element contains the following attributes:
- Name string
- Name of this policy name.
- Result
Output stringFile
- id String
- lists
List<Get
Monitor Policy Conditions List> - A list policy condition. Each element contains the following attributes:
- name String
- Name of this policy name.
- result
Output StringFile
- id string
- lists
Get
Monitor Policy Conditions List[] - A list policy condition. Each element contains the following attributes:
- name string
- Name of this policy name.
- result
Output stringFile
- id str
- lists
Sequence[Get
Monitor Policy Conditions List] - A list policy condition. Each element contains the following attributes:
- name str
- Name of this policy name.
- result_
output_ strfile
- id String
- lists List<Property Map>
- A list policy condition. Each element contains the following attributes:
- name String
- Name of this policy name.
- result
Output StringFile
Supporting Types
GetMonitorPolicyConditionsList
- Event
Metrics List<GetMonitor Policy Conditions List Event Metric> - A list of event condition metrics. Each element contains the following attributes:
- Is
Support boolMulti Region - Whether to support multi region.
- Metrics
List<Get
Monitor Policy Conditions List Metric> - A list of event condition metrics. Each element contains the following attributes:
- Name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - Policy
View stringName - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - Support
Regions List<string> - Support regions of this policy view.
- Event
Metrics []GetMonitor Policy Conditions List Event Metric - A list of event condition metrics. Each element contains the following attributes:
- Is
Support boolMulti Region - Whether to support multi region.
- Metrics
[]Get
Monitor Policy Conditions List Metric - A list of event condition metrics. Each element contains the following attributes:
- Name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - Policy
View stringName - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - Support
Regions []string - Support regions of this policy view.
- event
Metrics List<GetMonitor Policy Conditions List Event Metric> - A list of event condition metrics. Each element contains the following attributes:
- is
Support BooleanMulti Region - Whether to support multi region.
- metrics
List<Get
Monitor Policy Conditions List Metric> - A list of event condition metrics. Each element contains the following attributes:
- name String
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - policy
View StringName - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - support
Regions List<String> - Support regions of this policy view.
- event
Metrics GetMonitor Policy Conditions List Event Metric[] - A list of event condition metrics. Each element contains the following attributes:
- is
Support booleanMulti Region - Whether to support multi region.
- metrics
Get
Monitor Policy Conditions List Metric[] - A list of event condition metrics. Each element contains the following attributes:
- name string
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - policy
View stringName - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - support
Regions string[] - Support regions of this policy view.
- event_
metrics Sequence[GetMonitor Policy Conditions List Event Metric] - A list of event condition metrics. Each element contains the following attributes:
- is_
support_ boolmulti_ region - Whether to support multi region.
- metrics
Sequence[Get
Monitor Policy Conditions List Metric] - A list of event condition metrics. Each element contains the following attributes:
- name str
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - policy_
view_ strname - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - support_
regions Sequence[str] - Support regions of this policy view.
- event
Metrics List<Property Map> - A list of event condition metrics. Each element contains the following attributes:
- is
Support BooleanMulti Region - Whether to support multi region.
- metrics List<Property Map>
- A list of event condition metrics. Each element contains the following attributes:
- name String
- Name of the policy name, support partial matching, eg:
Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener. - policy
View StringName - Policy view name, eg:
cvm_device,BANDWIDTHPACKAGE, refer todata.tencentcloud_monitor_policy_conditions(policy_view_name). - support
Regions List<String> - Support regions of this policy view.
GetMonitorPolicyConditionsListEventMetric
- Event
Id double - The ID of this event metric.
- Event
Show stringName - The name of this event metric.
- Need
Recovered bool - Whether to recover.
- Event
Id float64 - The ID of this event metric.
- Event
Show stringName - The name of this event metric.
- Need
Recovered bool - Whether to recover.
- event
Id Double - The ID of this event metric.
- event
Show StringName - The name of this event metric.
- need
Recovered Boolean - Whether to recover.
- event
Id number - The ID of this event metric.
- event
Show stringName - The name of this event metric.
- need
Recovered boolean - Whether to recover.
- event_
id float - The ID of this event metric.
- event_
show_ strname - The name of this event metric.
- need_
recovered bool - Whether to recover.
- event
Id Number - The ID of this event metric.
- event
Show StringName - The name of this event metric.
- need
Recovered Boolean - Whether to recover.
GetMonitorPolicyConditionsListMetric
- Calc
Type List<double>Keys - Calculate type of this metric.
- Calc
Type boolNeed - Whether
calc_typerequired in the configuration. - Calc
Value stringDefault - The default calculate value of this metric.
- Calc
Value stringFixed - The fixed calculate value of this metric.
- Calc
Value stringMax - The max calculate value of this metric.
- Calc
Value stringMin - The min calculate value of this metric.
- Calc
Value boolNeed - Whether
calc_valuerequired in the configuration. - Continue
Time doubleDefault - The default continue time(seconds) config for this metric.
- Continue
Time List<double>Keys - The continue time(seconds) keys for this metric.
- Continue
Time boolNeed - Whether
continue_timerequired in the configuration. - Metric
Id double - The ID of this metric.
- Metric
Show stringName - The name of this metric.
- Metric
Unit string - The unit of this metric.
- Period
Default double - The default data time(seconds) config for this metric.
- Period
Keys List<double> - The data time(seconds) keys for this metric.
- Period
Need bool - Whether
periodrequired in the configuration. - Period
Num doubleDefault - The default period number config for this metric.
- Period
Num List<double>Keys - The period number keys for this metric.
- Period
Num boolNeed - Whether
period_numrequired in the configuration. - Stat
Type stringP10 - Data aggregation mode, cycle of 10 seconds.
- Stat
Type stringP1800 - Data aggregation mode, cycle of 1800 seconds.
- Stat
Type stringP300 - Data aggregation mode, cycle of 300 seconds.
- Stat
Type stringP3600 - Data aggregation mode, cycle of 3600 seconds.
- Stat
Type stringP5 - Data aggregation mode, cycle of 5 seconds.
- Stat
Type stringP60 - Data aggregation mode, cycle of 60 seconds.
- Stat
Type stringP600 - Data aggregation mode, cycle of 600 seconds.
- Stat
Type stringP86400 - Data aggregation mode, cycle of 86400 seconds.
- Calc
Type []float64Keys - Calculate type of this metric.
- Calc
Type boolNeed - Whether
calc_typerequired in the configuration. - Calc
Value stringDefault - The default calculate value of this metric.
- Calc
Value stringFixed - The fixed calculate value of this metric.
- Calc
Value stringMax - The max calculate value of this metric.
- Calc
Value stringMin - The min calculate value of this metric.
- Calc
Value boolNeed - Whether
calc_valuerequired in the configuration. - Continue
Time float64Default - The default continue time(seconds) config for this metric.
- Continue
Time []float64Keys - The continue time(seconds) keys for this metric.
- Continue
Time boolNeed - Whether
continue_timerequired in the configuration. - Metric
Id float64 - The ID of this metric.
- Metric
Show stringName - The name of this metric.
- Metric
Unit string - The unit of this metric.
- Period
Default float64 - The default data time(seconds) config for this metric.
- Period
Keys []float64 - The data time(seconds) keys for this metric.
- Period
Need bool - Whether
periodrequired in the configuration. - Period
Num float64Default - The default period number config for this metric.
- Period
Num []float64Keys - The period number keys for this metric.
- Period
Num boolNeed - Whether
period_numrequired in the configuration. - Stat
Type stringP10 - Data aggregation mode, cycle of 10 seconds.
- Stat
Type stringP1800 - Data aggregation mode, cycle of 1800 seconds.
- Stat
Type stringP300 - Data aggregation mode, cycle of 300 seconds.
- Stat
Type stringP3600 - Data aggregation mode, cycle of 3600 seconds.
- Stat
Type stringP5 - Data aggregation mode, cycle of 5 seconds.
- Stat
Type stringP60 - Data aggregation mode, cycle of 60 seconds.
- Stat
Type stringP600 - Data aggregation mode, cycle of 600 seconds.
- Stat
Type stringP86400 - Data aggregation mode, cycle of 86400 seconds.
- calc
Type List<Double>Keys - Calculate type of this metric.
- calc
Type BooleanNeed - Whether
calc_typerequired in the configuration. - calc
Value StringDefault - The default calculate value of this metric.
- calc
Value StringFixed - The fixed calculate value of this metric.
- calc
Value StringMax - The max calculate value of this metric.
- calc
Value StringMin - The min calculate value of this metric.
- calc
Value BooleanNeed - Whether
calc_valuerequired in the configuration. - continue
Time DoubleDefault - The default continue time(seconds) config for this metric.
- continue
Time List<Double>Keys - The continue time(seconds) keys for this metric.
- continue
Time BooleanNeed - Whether
continue_timerequired in the configuration. - metric
Id Double - The ID of this metric.
- metric
Show StringName - The name of this metric.
- metric
Unit String - The unit of this metric.
- period
Default Double - The default data time(seconds) config for this metric.
- period
Keys List<Double> - The data time(seconds) keys for this metric.
- period
Need Boolean - Whether
periodrequired in the configuration. - period
Num DoubleDefault - The default period number config for this metric.
- period
Num List<Double>Keys - The period number keys for this metric.
- period
Num BooleanNeed - Whether
period_numrequired in the configuration. - stat
Type StringP10 - Data aggregation mode, cycle of 10 seconds.
- stat
Type StringP1800 - Data aggregation mode, cycle of 1800 seconds.
- stat
Type StringP300 - Data aggregation mode, cycle of 300 seconds.
- stat
Type StringP3600 - Data aggregation mode, cycle of 3600 seconds.
- stat
Type StringP5 - Data aggregation mode, cycle of 5 seconds.
- stat
Type StringP60 - Data aggregation mode, cycle of 60 seconds.
- stat
Type StringP600 - Data aggregation mode, cycle of 600 seconds.
- stat
Type StringP86400 - Data aggregation mode, cycle of 86400 seconds.
- calc
Type number[]Keys - Calculate type of this metric.
- calc
Type booleanNeed - Whether
calc_typerequired in the configuration. - calc
Value stringDefault - The default calculate value of this metric.
- calc
Value stringFixed - The fixed calculate value of this metric.
- calc
Value stringMax - The max calculate value of this metric.
- calc
Value stringMin - The min calculate value of this metric.
- calc
Value booleanNeed - Whether
calc_valuerequired in the configuration. - continue
Time numberDefault - The default continue time(seconds) config for this metric.
- continue
Time number[]Keys - The continue time(seconds) keys for this metric.
- continue
Time booleanNeed - Whether
continue_timerequired in the configuration. - metric
Id number - The ID of this metric.
- metric
Show stringName - The name of this metric.
- metric
Unit string - The unit of this metric.
- period
Default number - The default data time(seconds) config for this metric.
- period
Keys number[] - The data time(seconds) keys for this metric.
- period
Need boolean - Whether
periodrequired in the configuration. - period
Num numberDefault - The default period number config for this metric.
- period
Num number[]Keys - The period number keys for this metric.
- period
Num booleanNeed - Whether
period_numrequired in the configuration. - stat
Type stringP10 - Data aggregation mode, cycle of 10 seconds.
- stat
Type stringP1800 - Data aggregation mode, cycle of 1800 seconds.
- stat
Type stringP300 - Data aggregation mode, cycle of 300 seconds.
- stat
Type stringP3600 - Data aggregation mode, cycle of 3600 seconds.
- stat
Type stringP5 - Data aggregation mode, cycle of 5 seconds.
- stat
Type stringP60 - Data aggregation mode, cycle of 60 seconds.
- stat
Type stringP600 - Data aggregation mode, cycle of 600 seconds.
- stat
Type stringP86400 - Data aggregation mode, cycle of 86400 seconds.
- calc_
type_ Sequence[float]keys - Calculate type of this metric.
- calc_
type_ boolneed - Whether
calc_typerequired in the configuration. - calc_
value_ strdefault - The default calculate value of this metric.
- calc_
value_ strfixed - The fixed calculate value of this metric.
- calc_
value_ strmax - The max calculate value of this metric.
- calc_
value_ strmin - The min calculate value of this metric.
- calc_
value_ boolneed - Whether
calc_valuerequired in the configuration. - continue_
time_ floatdefault - The default continue time(seconds) config for this metric.
- continue_
time_ Sequence[float]keys - The continue time(seconds) keys for this metric.
- continue_
time_ boolneed - Whether
continue_timerequired in the configuration. - metric_
id float - The ID of this metric.
- metric_
show_ strname - The name of this metric.
- metric_
unit str - The unit of this metric.
- period_
default float - The default data time(seconds) config for this metric.
- period_
keys Sequence[float] - The data time(seconds) keys for this metric.
- period_
need bool - Whether
periodrequired in the configuration. - period_
num_ floatdefault - The default period number config for this metric.
- period_
num_ Sequence[float]keys - The period number keys for this metric.
- period_
num_ boolneed - Whether
period_numrequired in the configuration. - stat_
type_ strp10 - Data aggregation mode, cycle of 10 seconds.
- stat_
type_ strp1800 - Data aggregation mode, cycle of 1800 seconds.
- stat_
type_ strp300 - Data aggregation mode, cycle of 300 seconds.
- stat_
type_ strp3600 - Data aggregation mode, cycle of 3600 seconds.
- stat_
type_ strp5 - Data aggregation mode, cycle of 5 seconds.
- stat_
type_ strp60 - Data aggregation mode, cycle of 60 seconds.
- stat_
type_ strp600 - Data aggregation mode, cycle of 600 seconds.
- stat_
type_ strp86400 - Data aggregation mode, cycle of 86400 seconds.
- calc
Type List<Number>Keys - Calculate type of this metric.
- calc
Type BooleanNeed - Whether
calc_typerequired in the configuration. - calc
Value StringDefault - The default calculate value of this metric.
- calc
Value StringFixed - The fixed calculate value of this metric.
- calc
Value StringMax - The max calculate value of this metric.
- calc
Value StringMin - The min calculate value of this metric.
- calc
Value BooleanNeed - Whether
calc_valuerequired in the configuration. - continue
Time NumberDefault - The default continue time(seconds) config for this metric.
- continue
Time List<Number>Keys - The continue time(seconds) keys for this metric.
- continue
Time BooleanNeed - Whether
continue_timerequired in the configuration. - metric
Id Number - The ID of this metric.
- metric
Show StringName - The name of this metric.
- metric
Unit String - The unit of this metric.
- period
Default Number - The default data time(seconds) config for this metric.
- period
Keys List<Number> - The data time(seconds) keys for this metric.
- period
Need Boolean - Whether
periodrequired in the configuration. - period
Num NumberDefault - The default period number config for this metric.
- period
Num List<Number>Keys - The period number keys for this metric.
- period
Num BooleanNeed - Whether
period_numrequired in the configuration. - stat
Type StringP10 - Data aggregation mode, cycle of 10 seconds.
- stat
Type StringP1800 - Data aggregation mode, cycle of 1800 seconds.
- stat
Type StringP300 - Data aggregation mode, cycle of 300 seconds.
- stat
Type StringP3600 - Data aggregation mode, cycle of 3600 seconds.
- stat
Type StringP5 - Data aggregation mode, cycle of 5 seconds.
- stat
Type StringP60 - Data aggregation mode, cycle of 60 seconds.
- stat
Type StringP600 - Data aggregation mode, cycle of 600 seconds.
- stat
Type StringP86400 - Data aggregation mode, cycle of 86400 seconds.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
