1. Packages
  2. Volcengine
  3. API Docs
  4. vmp
  5. SilencePolicies
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
    Deprecated: volcengine.vmp.SilencePolicies has been deprecated in favor of volcengine.vmp.getSilencePolicies

    Use this data source to query detailed information of vmp silence policies

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const example = volcengine.vmp.getSilencePolicies({
        ids: ["ea51e747-0ead-4e09-9187-76beba6400b7"],
        name: "tf-acc-silence",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.vmp.get_silence_policies(ids=["ea51e747-0ead-4e09-9187-76beba6400b7"],
        name="tf-acc-silence")
    
    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.GetSilencePolicies(ctx, &vmp.GetSilencePoliciesArgs{
    			Ids: []string{
    				"ea51e747-0ead-4e09-9187-76beba6400b7",
    			},
    			Name: pulumi.StringRef("tf-acc-silence"),
    		}, nil)
    		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 = Volcengine.Vmp.GetSilencePolicies.Invoke(new()
        {
            Ids = new[]
            {
                "ea51e747-0ead-4e09-9187-76beba6400b7",
            },
            Name = "tf-acc-silence",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vmp.VmpFunctions;
    import com.pulumi.volcengine.vmp.inputs.GetSilencePoliciesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = VmpFunctions.getSilencePolicies(GetSilencePoliciesArgs.builder()
                .ids("ea51e747-0ead-4e09-9187-76beba6400b7")
                .name("tf-acc-silence")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: volcengine:vmp:getSilencePolicies
          Arguments:
            ids:
              - ea51e747-0ead-4e09-9187-76beba6400b7
            name: tf-acc-silence
    

    Using SilencePolicies

    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 silencePolicies(args: SilencePoliciesArgs, opts?: InvokeOptions): Promise<SilencePoliciesResult>
    function silencePoliciesOutput(args: SilencePoliciesOutputArgs, opts?: InvokeOptions): Output<SilencePoliciesResult>
    def silence_policies(ids: Optional[Sequence[str]] = None,
                         name: Optional[str] = None,
                         output_file: Optional[str] = None,
                         sources: Optional[Sequence[str]] = None,
                         status: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> SilencePoliciesResult
    def silence_policies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         sources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         status: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[SilencePoliciesResult]
    func SilencePolicies(ctx *Context, args *SilencePoliciesArgs, opts ...InvokeOption) (*SilencePoliciesResult, error)
    func SilencePoliciesOutput(ctx *Context, args *SilencePoliciesOutputArgs, opts ...InvokeOption) SilencePoliciesResultOutput
    public static class SilencePolicies 
    {
        public static Task<SilencePoliciesResult> InvokeAsync(SilencePoliciesArgs args, InvokeOptions? opts = null)
        public static Output<SilencePoliciesResult> Invoke(SilencePoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<SilencePoliciesResult> silencePolicies(SilencePoliciesArgs args, InvokeOptions options)
    public static Output<SilencePoliciesResult> silencePolicies(SilencePoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vmp:SilencePolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of silence policy ids.
    Name string
    The name of silence policy.
    OutputFile string
    File name where to save data source results.
    Sources List<string>
    The sources of silence policy: General/LarkBot.
    Status string
    The status of silence policy: Active/Disabled/Expired.
    Ids []string
    A list of silence policy ids.
    Name string
    The name of silence policy.
    OutputFile string
    File name where to save data source results.
    Sources []string
    The sources of silence policy: General/LarkBot.
    Status string
    The status of silence policy: Active/Disabled/Expired.
    ids List<String>
    A list of silence policy ids.
    name String
    The name of silence policy.
    outputFile String
    File name where to save data source results.
    sources List<String>
    The sources of silence policy: General/LarkBot.
    status String
    The status of silence policy: Active/Disabled/Expired.
    ids string[]
    A list of silence policy ids.
    name string
    The name of silence policy.
    outputFile string
    File name where to save data source results.
    sources string[]
    The sources of silence policy: General/LarkBot.
    status string
    The status of silence policy: Active/Disabled/Expired.
    ids Sequence[str]
    A list of silence policy ids.
    name str
    The name of silence policy.
    output_file str
    File name where to save data source results.
    sources Sequence[str]
    The sources of silence policy: General/LarkBot.
    status str
    The status of silence policy: Active/Disabled/Expired.
    ids List<String>
    A list of silence policy ids.
    name String
    The name of silence policy.
    outputFile String
    File name where to save data source results.
    sources List<String>
    The sources of silence policy: General/LarkBot.
    status String
    The status of silence policy: Active/Disabled/Expired.

    SilencePolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SilencePolicies List<SilencePoliciesSilencePolicy>
    The list of silence policies.
    TotalCount int
    The total count of query.
    Ids List<string>
    Name string
    The name of the silence policy.
    OutputFile string
    Sources List<string>
    Status string
    The status of the silence policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    SilencePolicies []SilencePoliciesSilencePolicy
    The list of silence policies.
    TotalCount int
    The total count of query.
    Ids []string
    Name string
    The name of the silence policy.
    OutputFile string
    Sources []string
    Status string
    The status of the silence policy.
    id String
    The provider-assigned unique ID for this managed resource.
    silencePolicies List<SilencePoliciesSilencePolicy>
    The list of silence policies.
    totalCount Integer
    The total count of query.
    ids List<String>
    name String
    The name of the silence policy.
    outputFile String
    sources List<String>
    status String
    The status of the silence policy.
    id string
    The provider-assigned unique ID for this managed resource.
    silencePolicies SilencePoliciesSilencePolicy[]
    The list of silence policies.
    totalCount number
    The total count of query.
    ids string[]
    name string
    The name of the silence policy.
    outputFile string
    sources string[]
    status string
    The status of the silence policy.
    id str
    The provider-assigned unique ID for this managed resource.
    silence_policies Sequence[SilencePoliciesSilencePolicy]
    The list of silence policies.
    total_count int
    The total count of query.
    ids Sequence[str]
    name str
    The name of the silence policy.
    output_file str
    sources Sequence[str]
    status str
    The status of the silence policy.
    id String
    The provider-assigned unique ID for this managed resource.
    silencePolicies List<Property Map>
    The list of silence policies.
    totalCount Number
    The total count of query.
    ids List<String>
    name String
    The name of the silence policy.
    outputFile String
    sources List<String>
    status String
    The status of the silence policy.

    Supporting Types

    SilencePoliciesSilencePolicy

    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy, in RFC3339 format.
    Description string
    The description of the silence policy.
    Id string
    The id of the silence policy.
    Name string
    The name of silence policy.
    Source string
    The source of the silence policy.
    Status string
    The status of silence policy: Active/Disabled/Expired.
    TimeRangeMatchers List<SilencePoliciesSilencePolicyTimeRangeMatcher>
    The matching time in the alert silence policy.
    UpdateTime string
    The update time of the silence policy, in RFC3339 format.
    AutoDeleteTime string
    The auto delete time of the silence policy.
    CreateTime string
    The create time of the silence policy, in RFC3339 format.
    Description string
    The description of the silence policy.
    Id string
    The id of the silence policy.
    Name string
    The name of silence policy.
    Source string
    The source of the silence policy.
    Status string
    The status of silence policy: Active/Disabled/Expired.
    TimeRangeMatchers []SilencePoliciesSilencePolicyTimeRangeMatcher
    The matching time in the alert silence policy.
    UpdateTime string
    The update time of the silence policy, in RFC3339 format.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy, in RFC3339 format.
    description String
    The description of the silence policy.
    id String
    The id of the silence policy.
    name String
    The name of silence policy.
    source String
    The source of the silence policy.
    status String
    The status of silence policy: Active/Disabled/Expired.
    timeRangeMatchers List<SilencePoliciesSilencePolicyTimeRangeMatcher>
    The matching time in the alert silence policy.
    updateTime String
    The update time of the silence policy, in RFC3339 format.
    autoDeleteTime string
    The auto delete time of the silence policy.
    createTime string
    The create time of the silence policy, in RFC3339 format.
    description string
    The description of the silence policy.
    id string
    The id of the silence policy.
    name string
    The name of silence policy.
    source string
    The source of the silence policy.
    status string
    The status of silence policy: Active/Disabled/Expired.
    timeRangeMatchers SilencePoliciesSilencePolicyTimeRangeMatcher[]
    The matching time in the alert silence policy.
    updateTime string
    The update time of the silence policy, in RFC3339 format.
    auto_delete_time str
    The auto delete time of the silence policy.
    create_time str
    The create time of the silence policy, in RFC3339 format.
    description str
    The description of the silence policy.
    id str
    The id of the silence policy.
    name str
    The name of silence policy.
    source str
    The source of the silence policy.
    status str
    The status of silence policy: Active/Disabled/Expired.
    time_range_matchers Sequence[SilencePoliciesSilencePolicyTimeRangeMatcher]
    The matching time in the alert silence policy.
    update_time str
    The update time of the silence policy, in RFC3339 format.
    autoDeleteTime String
    The auto delete time of the silence policy.
    createTime String
    The create time of the silence policy, in RFC3339 format.
    description String
    The description of the silence policy.
    id String
    The id of the silence policy.
    name String
    The name of silence policy.
    source String
    The source of the silence policy.
    status String
    The status of silence policy: Active/Disabled/Expired.
    timeRangeMatchers List<Property Map>
    The matching time in the alert silence policy.
    updateTime String
    The update time of the silence policy, in RFC3339 format.

    SilencePoliciesSilencePolicyTimeRangeMatcher

    Date string
    The time period for alarm silence.
    Location string
    Time zone.
    PeriodicDates List<SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate>
    The cycle of alarm silence.
    Date string
    The time period for alarm silence.
    Location string
    Time zone.
    PeriodicDates []SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate
    The cycle of alarm silence.
    date String
    The time period for alarm silence.
    location String
    Time zone.
    periodicDates List<SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate>
    The cycle of alarm silence.
    date string
    The time period for alarm silence.
    location string
    Time zone.
    periodicDates SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate[]
    The cycle of alarm silence.
    date str
    The time period for alarm silence.
    location str
    Time zone.
    periodic_dates Sequence[SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate]
    The cycle of alarm silence.
    date String
    The time period for alarm silence.
    location String
    Time zone.
    periodicDates List<Property Map>
    The cycle of alarm silence.

    SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate

    DayOfMonth string
    Days of the month, e.g. 1,15,30.
    Time string
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    Weekday string
    Weekdays, e.g. 1,3,5.
    DayOfMonth string
    Days of the month, e.g. 1,15,30.
    Time string
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    Weekday string
    Weekdays, e.g. 1,3,5.
    dayOfMonth String
    Days of the month, e.g. 1,15,30.
    time String
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    weekday String
    Weekdays, e.g. 1,3,5.
    dayOfMonth string
    Days of the month, e.g. 1,15,30.
    time string
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    weekday string
    Weekdays, e.g. 1,3,5.
    day_of_month str
    Days of the month, e.g. 1,15,30.
    time str
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    weekday str
    Weekdays, e.g. 1,3,5.
    dayOfMonth String
    Days of the month, e.g. 1,15,30.
    time String
    Time periods, e.g. 20:00~21:12,22:00~23:12.
    weekday String
    Weekdays, e.g. 1,3,5.

    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