1. Packages
  2. Volcengine
  3. API Docs
  4. vmp
  5. SilencePolicy
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
volcengine logo
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine

    Provides a resource to manage vmp silence policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const example = new volcengine.vmp.SilencePolicy("example", {
        description: "terraform silence policy",
        metricLabelMatchers: [{
            matchers: [
                {
                    label: "app",
                    operator: "NotEqual",
                    value: "test",
                },
                {
                    label: "env",
                    operator: "Equal",
                    value: "prod",
                },
            ],
        }],
        timeRangeMatchers: [{
            location: "Asia/Shanghai",
            periodicDate: {
                time: "20:00~21:12",
                weekday: "1,5",
            },
        }],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.vmp.SilencePolicy("example",
        description="terraform silence policy",
        metric_label_matchers=[volcengine.vmp.SilencePolicyMetricLabelMatcherArgs(
            matchers=[
                volcengine.vmp.SilencePolicyMetricLabelMatcherMatcherArgs(
                    label="app",
                    operator="NotEqual",
                    value="test",
                ),
                volcengine.vmp.SilencePolicyMetricLabelMatcherMatcherArgs(
                    label="env",
                    operator="Equal",
                    value="prod",
                ),
            ],
        )],
        time_range_matchers=[volcengine.vmp.SilencePolicyTimeRangeMatcherArgs(
            location="Asia/Shanghai",
            periodic_date=volcengine.vmp.SilencePolicyTimeRangeMatcherPeriodicDateArgs(
                time="20:00~21:12",
                weekday="1,5",
            ),
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vmp.NewSilencePolicy(ctx, "example", &vmp.SilencePolicyArgs{
    			Description: pulumi.String("terraform silence policy"),
    			MetricLabelMatchers: vmp.SilencePolicyMetricLabelMatcherArray{
    				&vmp.SilencePolicyMetricLabelMatcherArgs{
    					Matchers: vmp.SilencePolicyMetricLabelMatcherMatcherArray{
    						&vmp.SilencePolicyMetricLabelMatcherMatcherArgs{
    							Label:    pulumi.String("app"),
    							Operator: pulumi.String("NotEqual"),
    							Value:    pulumi.String("test"),
    						},
    						&vmp.SilencePolicyMetricLabelMatcherMatcherArgs{
    							Label:    pulumi.String("env"),
    							Operator: pulumi.String("Equal"),
    							Value:    pulumi.String("prod"),
    						},
    					},
    				},
    			},
    			TimeRangeMatchers: vmp.SilencePolicyTimeRangeMatcherArray{
    				&vmp.SilencePolicyTimeRangeMatcherArgs{
    					Location: pulumi.String("Asia/Shanghai"),
    					PeriodicDate: &vmp.SilencePolicyTimeRangeMatcherPeriodicDateArgs{
    						Time:    pulumi.String("20:00~21:12"),
    						Weekday: pulumi.String("1,5"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Volcengine.Vmp.SilencePolicy("example", new()
        {
            Description = "terraform silence policy",
            MetricLabelMatchers = new[]
            {
                new Volcengine.Vmp.Inputs.SilencePolicyMetricLabelMatcherArgs
                {
                    Matchers = new[]
                    {
                        new Volcengine.Vmp.Inputs.SilencePolicyMetricLabelMatcherMatcherArgs
                        {
                            Label = "app",
                            Operator = "NotEqual",
                            Value = "test",
                        },
                        new Volcengine.Vmp.Inputs.SilencePolicyMetricLabelMatcherMatcherArgs
                        {
                            Label = "env",
                            Operator = "Equal",
                            Value = "prod",
                        },
                    },
                },
            },
            TimeRangeMatchers = new[]
            {
                new Volcengine.Vmp.Inputs.SilencePolicyTimeRangeMatcherArgs
                {
                    Location = "Asia/Shanghai",
                    PeriodicDate = new Volcengine.Vmp.Inputs.SilencePolicyTimeRangeMatcherPeriodicDateArgs
                    {
                        Time = "20:00~21:12",
                        Weekday = "1,5",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vmp.SilencePolicy;
    import com.pulumi.volcengine.vmp.SilencePolicyArgs;
    import com.pulumi.volcengine.vmp.inputs.SilencePolicyMetricLabelMatcherArgs;
    import com.pulumi.volcengine.vmp.inputs.SilencePolicyTimeRangeMatcherArgs;
    import com.pulumi.volcengine.vmp.inputs.SilencePolicyTimeRangeMatcherPeriodicDateArgs;
    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) {
            var example = new SilencePolicy("example", SilencePolicyArgs.builder()        
                .description("terraform silence policy")
                .metricLabelMatchers(SilencePolicyMetricLabelMatcherArgs.builder()
                    .matchers(                
                        SilencePolicyMetricLabelMatcherMatcherArgs.builder()
                            .label("app")
                            .operator("NotEqual")
                            .value("test")
                            .build(),
                        SilencePolicyMetricLabelMatcherMatcherArgs.builder()
                            .label("env")
                            .operator("Equal")
                            .value("prod")
                            .build())
                    .build())
                .timeRangeMatchers(SilencePolicyTimeRangeMatcherArgs.builder()
                    .location("Asia/Shanghai")
                    .periodicDate(SilencePolicyTimeRangeMatcherPeriodicDateArgs.builder()
                        .time("20:00~21:12")
                        .weekday("1,5")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: volcengine:vmp:SilencePolicy
        properties:
          description: terraform silence policy
          metricLabelMatchers:
            - matchers:
                - label: app
                  operator: NotEqual
                  value: test
                - label: env
                  operator: Equal
                  value: prod
          timeRangeMatchers:
            - location: Asia/Shanghai
              periodicDate:
                time: 20:00~21:12
                weekday: 1,5
    

    Create SilencePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SilencePolicy(name: string, args: SilencePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def SilencePolicy(resource_name: str,
                      args: SilencePolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SilencePolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      metric_label_matchers: Optional[Sequence[SilencePolicyMetricLabelMatcherArgs]] = None,
                      time_range_matchers: Optional[Sequence[SilencePolicyTimeRangeMatcherArgs]] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None)
    func NewSilencePolicy(ctx *Context, name string, args SilencePolicyArgs, opts ...ResourceOption) (*SilencePolicy, error)
    public SilencePolicy(string name, SilencePolicyArgs args, CustomResourceOptions? opts = null)
    public SilencePolicy(String name, SilencePolicyArgs args)
    public SilencePolicy(String name, SilencePolicyArgs args, CustomResourceOptions options)
    
    type: volcengine:vmp:SilencePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SilencePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SilencePolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SilencePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SilencePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SilencePolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var silencePolicyResource = new Volcengine.Vmp.SilencePolicy("silencePolicyResource", new()
    {
        MetricLabelMatchers = new[]
        {
            new Volcengine.Vmp.Inputs.SilencePolicyMetricLabelMatcherArgs
            {
                Matchers = new[]
                {
                    new Volcengine.Vmp.Inputs.SilencePolicyMetricLabelMatcherMatcherArgs
                    {
                        Label = "string",
                        Value = "string",
                        Operator = "string",
                    },
                },
            },
        },
        TimeRangeMatchers = new[]
        {
            new Volcengine.Vmp.Inputs.SilencePolicyTimeRangeMatcherArgs
            {
                Location = "string",
                Date = "string",
                PeriodicDate = new Volcengine.Vmp.Inputs.SilencePolicyTimeRangeMatcherPeriodicDateArgs
                {
                    DayOfMonth = "string",
                    Time = "string",
                    Weekday = "string",
                },
            },
        },
        Description = "string",
        Name = "string",
    });
    
    example, err := vmp.NewSilencePolicy(ctx, "silencePolicyResource", &vmp.SilencePolicyArgs{
    	MetricLabelMatchers: vmp.SilencePolicyMetricLabelMatcherArray{
    		&vmp.SilencePolicyMetricLabelMatcherArgs{
    			Matchers: vmp.SilencePolicyMetricLabelMatcherMatcherArray{
    				&vmp.SilencePolicyMetricLabelMatcherMatcherArgs{
    					Label:    pulumi.String("string"),
    					Value:    pulumi.String("string"),
    					Operator: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	TimeRangeMatchers: vmp.SilencePolicyTimeRangeMatcherArray{
    		&vmp.SilencePolicyTimeRangeMatcherArgs{
    			Location: pulumi.String("string"),
    			Date:     pulumi.String("string"),
    			PeriodicDate: &vmp.SilencePolicyTimeRangeMatcherPeriodicDateArgs{
    				DayOfMonth: pulumi.String("string"),
    				Time:       pulumi.String("string"),
    				Weekday:    pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var silencePolicyResource = new SilencePolicy("silencePolicyResource", SilencePolicyArgs.builder()
        .metricLabelMatchers(SilencePolicyMetricLabelMatcherArgs.builder()
            .matchers(SilencePolicyMetricLabelMatcherMatcherArgs.builder()
                .label("string")
                .value("string")
                .operator("string")
                .build())
            .build())
        .timeRangeMatchers(SilencePolicyTimeRangeMatcherArgs.builder()
            .location("string")
            .date("string")
            .periodicDate(SilencePolicyTimeRangeMatcherPeriodicDateArgs.builder()
                .dayOfMonth("string")
                .time("string")
                .weekday("string")
                .build())
            .build())
        .description("string")
        .name("string")
        .build());
    
    silence_policy_resource = volcengine.vmp.SilencePolicy("silencePolicyResource",
        metric_label_matchers=[{
            "matchers": [{
                "label": "string",
                "value": "string",
                "operator": "string",
            }],
        }],
        time_range_matchers=[{
            "location": "string",
            "date": "string",
            "periodic_date": {
                "day_of_month": "string",
                "time": "string",
                "weekday": "string",
            },
        }],
        description="string",
        name="string")
    
    const silencePolicyResource = new volcengine.vmp.SilencePolicy("silencePolicyResource", {
        metricLabelMatchers: [{
            matchers: [{
                label: "string",
                value: "string",
                operator: "string",
            }],
        }],
        timeRangeMatchers: [{
            location: "string",
            date: "string",
            periodicDate: {
                dayOfMonth: "string",
                time: "string",
                weekday: "string",
            },
        }],
        description: "string",
        name: "string",
    });
    
    type: volcengine:vmp:SilencePolicy
    properties:
        description: string
        metricLabelMatchers:
            - matchers:
                - label: string
                  operator: string
                  value: string
        name: string
        timeRangeMatchers:
            - date: string
              location: string
              periodicDate:
                dayOfMonth: string
                time: string
                weekday: string
    

    SilencePolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SilencePolicy resource accepts the following input properties:

    MetricLabelMatchers List<SilencePolicyMetricLabelMatcher>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    TimeRangeMatchers List<SilencePolicyTimeRangeMatcher>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    Description string
    The description of the silence policy.
    Name string
    The name of the silence policy.
    MetricLabelMatchers []SilencePolicyMetricLabelMatcherArgs
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    TimeRangeMatchers []SilencePolicyTimeRangeMatcherArgs
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    Description string
    The description of the silence policy.
    Name string
    The name of the silence policy.
    metricLabelMatchers List<SilencePolicyMetricLabelMatcher>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    timeRangeMatchers List<SilencePolicyTimeRangeMatcher>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    description String
    The description of the silence policy.
    name String
    The name of the silence policy.
    metricLabelMatchers SilencePolicyMetricLabelMatcher[]
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    timeRangeMatchers SilencePolicyTimeRangeMatcher[]
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    description string
    The description of the silence policy.
    name string
    The name of the silence policy.
    metric_label_matchers Sequence[SilencePolicyMetricLabelMatcherArgs]
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    time_range_matchers Sequence[SilencePolicyTimeRangeMatcherArgs]
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    description str
    The description of the silence policy.
    name str
    The name of the silence policy.
    metricLabelMatchers List<Property Map>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    timeRangeMatchers List<Property Map>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    description String
    The description of the silence policy.
    name String
    The name of the silence policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SilencePolicy resource produces the following output properties:

    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Source string
    The source of the silence policy.
    Status string
    The status of the silence policy.
    UpdateTime string
    The update time of the silence policy.
    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Source string
    The source of the silence policy.
    Status string
    The status of the silence policy.
    UpdateTime string
    The update time of the silence policy.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy.
    id String
    The provider-assigned unique ID for this managed resource.
    source String
    The source of the silence policy.
    status String
    The status of the silence policy.
    updateTime String
    The update time of the silence policy.
    autoDeleteTime string
    The auto delete time of the silence policy.
    createTime string
    The create time of the silence policy.
    id string
    The provider-assigned unique ID for this managed resource.
    source string
    The source of the silence policy.
    status string
    The status of the silence policy.
    updateTime string
    The update time of the silence policy.
    auto_delete_time str
    The auto delete time of the silence policy.
    create_time str
    The create time of the silence policy.
    id str
    The provider-assigned unique ID for this managed resource.
    source str
    The source of the silence policy.
    status str
    The status of the silence policy.
    update_time str
    The update time of the silence policy.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy.
    id String
    The provider-assigned unique ID for this managed resource.
    source String
    The source of the silence policy.
    status String
    The status of the silence policy.
    updateTime String
    The update time of the silence policy.

    Look up Existing SilencePolicy Resource

    Get an existing SilencePolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SilencePolicyState, opts?: CustomResourceOptions): SilencePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_delete_time: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            metric_label_matchers: Optional[Sequence[SilencePolicyMetricLabelMatcherArgs]] = None,
            name: Optional[str] = None,
            source: Optional[str] = None,
            status: Optional[str] = None,
            time_range_matchers: Optional[Sequence[SilencePolicyTimeRangeMatcherArgs]] = None,
            update_time: Optional[str] = None) -> SilencePolicy
    func GetSilencePolicy(ctx *Context, name string, id IDInput, state *SilencePolicyState, opts ...ResourceOption) (*SilencePolicy, error)
    public static SilencePolicy Get(string name, Input<string> id, SilencePolicyState? state, CustomResourceOptions? opts = null)
    public static SilencePolicy get(String name, Output<String> id, SilencePolicyState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:vmp:SilencePolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy.
    Description string
    The description of the silence policy.
    MetricLabelMatchers List<SilencePolicyMetricLabelMatcher>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    Name string
    The name of the silence policy.
    Source string
    The source of the silence policy.
    Status string
    The status of the silence policy.
    TimeRangeMatchers List<SilencePolicyTimeRangeMatcher>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    UpdateTime string
    The update time of the silence policy.
    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy.
    Description string
    The description of the silence policy.
    MetricLabelMatchers []SilencePolicyMetricLabelMatcherArgs
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    Name string
    The name of the silence policy.
    Source string
    The source of the silence policy.
    Status string
    The status of the silence policy.
    TimeRangeMatchers []SilencePolicyTimeRangeMatcherArgs
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    UpdateTime string
    The update time of the silence policy.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy.
    description String
    The description of the silence policy.
    metricLabelMatchers List<SilencePolicyMetricLabelMatcher>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    name String
    The name of the silence policy.
    source String
    The source of the silence policy.
    status String
    The status of the silence policy.
    timeRangeMatchers List<SilencePolicyTimeRangeMatcher>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    updateTime String
    The update time of the silence policy.
    autoDeleteTime string
    The auto delete time of the silence policy.
    createTime string
    The create time of the silence policy.
    description string
    The description of the silence policy.
    metricLabelMatchers SilencePolicyMetricLabelMatcher[]
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    name string
    The name of the silence policy.
    source string
    The source of the silence policy.
    status string
    The status of the silence policy.
    timeRangeMatchers SilencePolicyTimeRangeMatcher[]
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    updateTime string
    The update time of the silence policy.
    auto_delete_time str
    The auto delete time of the silence policy.
    create_time str
    The create time of the silence policy.
    description str
    The description of the silence policy.
    metric_label_matchers Sequence[SilencePolicyMetricLabelMatcherArgs]
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    name str
    The name of the silence policy.
    source str
    The source of the silence policy.
    status str
    The status of the silence policy.
    time_range_matchers Sequence[SilencePolicyTimeRangeMatcherArgs]
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    update_time str
    The update time of the silence policy.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy.
    description String
    The description of the silence policy.
    metricLabelMatchers List<Property Map>
    Alarm event Label matcher, allowing a maximum of 32 entries, with an "OR" relationship between different entries. Different label_matchers in the Matcher follow an "AND" relationship.
    name String
    The name of the silence policy.
    source String
    The source of the silence policy.
    status String
    The status of the silence policy.
    timeRangeMatchers List<Property Map>
    Alarm silence time. Case 1: Always effective. When the switch is turned on, the matched alarm events are always silenced, and only the location needs to be set. Case 2: Periodic effective. When the switch is turned on, the matched alarm events are silenced periodically, and the location and periodic_date need to be set. Case 3: Custom effective. When the switch is turned on, the matched alarm events are silenced in the specified time range, and the location and date need to be set.
    updateTime String
    The update time of the silence policy.

    Supporting Types

    SilencePolicyMetricLabelMatcher, SilencePolicyMetricLabelMatcherArgs

    Matchers List<SilencePolicyMetricLabelMatcherMatcher>
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
    Matchers []SilencePolicyMetricLabelMatcherMatcher
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
    matchers List<SilencePolicyMetricLabelMatcherMatcher>
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
    matchers SilencePolicyMetricLabelMatcherMatcher[]
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
    matchers Sequence[SilencePolicyMetricLabelMatcherMatcher]
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
    matchers List<Property Map>
    Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.

    SilencePolicyMetricLabelMatcherMatcher, SilencePolicyMetricLabelMatcherMatcherArgs

    Label string
    Label.
    Value string
    Label value.
    Operator string
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
    Label string
    Label.
    Value string
    Label value.
    Operator string
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
    label String
    Label.
    value String
    Label value.
    operator String
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
    label string
    Label.
    value string
    Label value.
    operator string
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
    label str
    Label.
    value str
    Label value.
    operator str
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
    label String
    Label.
    value String
    Label value.
    operator String
    Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.

    SilencePolicyTimeRangeMatcher, SilencePolicyTimeRangeMatcherArgs

    Location string
    Timezone, e.g. Asia/Shanghai.
    Date string
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    PeriodicDate SilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
    Location string
    Timezone, e.g. Asia/Shanghai.
    Date string
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    PeriodicDate SilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
    location String
    Timezone, e.g. Asia/Shanghai.
    date String
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    periodicDate SilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
    location string
    Timezone, e.g. Asia/Shanghai.
    date string
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    periodicDate SilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
    location str
    Timezone, e.g. Asia/Shanghai.
    date str
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    periodic_date SilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
    location String
    Timezone, e.g. Asia/Shanghai.
    date String
    Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
    periodicDate Property Map
    The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.

    SilencePolicyTimeRangeMatcherPeriodicDate, SilencePolicyTimeRangeMatcherPeriodicDateArgs

    DayOfMonth string
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    Time string
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    Weekday string
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
    DayOfMonth string
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    Time string
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    Weekday string
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
    dayOfMonth String
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    time String
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    weekday String
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
    dayOfMonth string
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    time string
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    weekday string
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
    day_of_month str
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    time str
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    weekday str
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
    dayOfMonth String
    Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
    time String
    Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
    weekday String
    Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.

    Import

    VmpSilencePolicy can be imported using the id, e.g.

    $ pulumi import volcengine:vmp/silencePolicy:SilencePolicy default resource_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate