Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.vmp.getNotifyGroupPolicies
Explore with Pulumi AI
Use this data source to query detailed information of vmp notify group policies
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooNotifyGroupPolicy = new volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", {
description: "acc-test-1",
levels: [
{
level: "P2",
groupBies: ["__rule__"],
groupWait: "35",
groupInterval: "30",
repeatInterval: "30",
},
{
level: "P0",
groupBies: ["__rule__"],
groupWait: "30",
groupInterval: "30",
repeatInterval: "30",
},
{
level: "P1",
groupBies: ["__rule__"],
groupWait: "40",
groupInterval: "45",
repeatInterval: "30",
},
],
});
const fooNotifyGroupPolicies = volcengine.vmp.getNotifyGroupPoliciesOutput({
ids: [fooNotifyGroupPolicy.id],
});
import pulumi
import pulumi_volcengine as volcengine
foo_notify_group_policy = volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy",
description="acc-test-1",
levels=[
volcengine.vmp.NotifyGroupPolicyLevelArgs(
level="P2",
group_bies=["__rule__"],
group_wait="35",
group_interval="30",
repeat_interval="30",
),
volcengine.vmp.NotifyGroupPolicyLevelArgs(
level="P0",
group_bies=["__rule__"],
group_wait="30",
group_interval="30",
repeat_interval="30",
),
volcengine.vmp.NotifyGroupPolicyLevelArgs(
level="P1",
group_bies=["__rule__"],
group_wait="40",
group_interval="45",
repeat_interval="30",
),
])
foo_notify_group_policies = volcengine.vmp.get_notify_group_policies_output(ids=[foo_notify_group_policy.id])
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 {
fooNotifyGroupPolicy, err := vmp.NewNotifyGroupPolicy(ctx, "fooNotifyGroupPolicy", &vmp.NotifyGroupPolicyArgs{
Description: pulumi.String("acc-test-1"),
Levels: vmp.NotifyGroupPolicyLevelArray{
&vmp.NotifyGroupPolicyLevelArgs{
Level: pulumi.String("P2"),
GroupBies: pulumi.StringArray{
pulumi.String("__rule__"),
},
GroupWait: pulumi.String("35"),
GroupInterval: pulumi.String("30"),
RepeatInterval: pulumi.String("30"),
},
&vmp.NotifyGroupPolicyLevelArgs{
Level: pulumi.String("P0"),
GroupBies: pulumi.StringArray{
pulumi.String("__rule__"),
},
GroupWait: pulumi.String("30"),
GroupInterval: pulumi.String("30"),
RepeatInterval: pulumi.String("30"),
},
&vmp.NotifyGroupPolicyLevelArgs{
Level: pulumi.String("P1"),
GroupBies: pulumi.StringArray{
pulumi.String("__rule__"),
},
GroupWait: pulumi.String("40"),
GroupInterval: pulumi.String("45"),
RepeatInterval: pulumi.String("30"),
},
},
})
if err != nil {
return err
}
_ = vmp.GetNotifyGroupPoliciesOutput(ctx, vmp.GetNotifyGroupPoliciesOutputArgs{
Ids: pulumi.StringArray{
fooNotifyGroupPolicy.ID(),
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooNotifyGroupPolicy = new Volcengine.Vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", new()
{
Description = "acc-test-1",
Levels = new[]
{
new Volcengine.Vmp.Inputs.NotifyGroupPolicyLevelArgs
{
Level = "P2",
GroupBies = new[]
{
"__rule__",
},
GroupWait = "35",
GroupInterval = "30",
RepeatInterval = "30",
},
new Volcengine.Vmp.Inputs.NotifyGroupPolicyLevelArgs
{
Level = "P0",
GroupBies = new[]
{
"__rule__",
},
GroupWait = "30",
GroupInterval = "30",
RepeatInterval = "30",
},
new Volcengine.Vmp.Inputs.NotifyGroupPolicyLevelArgs
{
Level = "P1",
GroupBies = new[]
{
"__rule__",
},
GroupWait = "40",
GroupInterval = "45",
RepeatInterval = "30",
},
},
});
var fooNotifyGroupPolicies = Volcengine.Vmp.GetNotifyGroupPolicies.Invoke(new()
{
Ids = new[]
{
fooNotifyGroupPolicy.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.NotifyGroupPolicy;
import com.pulumi.volcengine.vmp.NotifyGroupPolicyArgs;
import com.pulumi.volcengine.vmp.inputs.NotifyGroupPolicyLevelArgs;
import com.pulumi.volcengine.vmp.VmpFunctions;
import com.pulumi.volcengine.vmp.inputs.GetNotifyGroupPoliciesArgs;
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 fooNotifyGroupPolicy = new NotifyGroupPolicy("fooNotifyGroupPolicy", NotifyGroupPolicyArgs.builder()
.description("acc-test-1")
.levels(
NotifyGroupPolicyLevelArgs.builder()
.level("P2")
.groupBies("__rule__")
.groupWait("35")
.groupInterval("30")
.repeatInterval("30")
.build(),
NotifyGroupPolicyLevelArgs.builder()
.level("P0")
.groupBies("__rule__")
.groupWait("30")
.groupInterval("30")
.repeatInterval("30")
.build(),
NotifyGroupPolicyLevelArgs.builder()
.level("P1")
.groupBies("__rule__")
.groupWait("40")
.groupInterval("45")
.repeatInterval("30")
.build())
.build());
final var fooNotifyGroupPolicies = VmpFunctions.getNotifyGroupPolicies(GetNotifyGroupPoliciesArgs.builder()
.ids(fooNotifyGroupPolicy.id())
.build());
}
}
resources:
fooNotifyGroupPolicy:
type: volcengine:vmp:NotifyGroupPolicy
properties:
description: acc-test-1
levels:
- level: P2
groupBies:
- __rule__
groupWait: '35'
groupInterval: '30'
repeatInterval: '30'
- level: P0
groupBies:
- __rule__
groupWait: '30'
groupInterval: '30'
repeatInterval: '30'
- level: P1
groupBies:
- __rule__
groupWait: '40'
groupInterval: '45'
repeatInterval: '30'
variables:
fooNotifyGroupPolicies:
fn::invoke:
Function: volcengine:vmp:getNotifyGroupPolicies
Arguments:
ids:
- ${fooNotifyGroupPolicy.id}
Using getNotifyGroupPolicies
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 getNotifyGroupPolicies(args: GetNotifyGroupPoliciesArgs, opts?: InvokeOptions): Promise<GetNotifyGroupPoliciesResult>
function getNotifyGroupPoliciesOutput(args: GetNotifyGroupPoliciesOutputArgs, opts?: InvokeOptions): Output<GetNotifyGroupPoliciesResult>
def get_notify_group_policies(ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNotifyGroupPoliciesResult
def get_notify_group_policies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNotifyGroupPoliciesResult]
func GetNotifyGroupPolicies(ctx *Context, args *GetNotifyGroupPoliciesArgs, opts ...InvokeOption) (*GetNotifyGroupPoliciesResult, error)
func GetNotifyGroupPoliciesOutput(ctx *Context, args *GetNotifyGroupPoliciesOutputArgs, opts ...InvokeOption) GetNotifyGroupPoliciesResultOutput
> Note: This function is named GetNotifyGroupPolicies
in the Go SDK.
public static class GetNotifyGroupPolicies
{
public static Task<GetNotifyGroupPoliciesResult> InvokeAsync(GetNotifyGroupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetNotifyGroupPoliciesResult> Invoke(GetNotifyGroupPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNotifyGroupPoliciesResult> getNotifyGroupPolicies(GetNotifyGroupPoliciesArgs args, InvokeOptions options)
public static Output<GetNotifyGroupPoliciesResult> getNotifyGroupPolicies(GetNotifyGroupPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp/getNotifyGroupPolicies:getNotifyGroupPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of notify group policy ids.
- Name string
- The name of notify group policy.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of notify group policy ids.
- Name string
- The name of notify group policy.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of notify group policy ids.
- name String
- The name of notify group policy.
- output
File String - File name where to save data source results.
- ids string[]
- A list of notify group policy ids.
- name string
- The name of notify group policy.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of notify group policy ids.
- name str
- The name of notify group policy.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of notify group policy ids.
- name String
- The name of notify group policy.
- output
File String - File name where to save data source results.
getNotifyGroupPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Policies List<GetNotify Group Policies Notify Policy> - The list of notify group policies.
- Total
Count int - The total count of query.
- Ids List<string>
- Name string
- The name of notify group policy.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Policies []GetNotify Group Policies Notify Policy - The list of notify group policies.
- Total
Count int - The total count of query.
- Ids []string
- Name string
- The name of notify group policy.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- notify
Policies List<GetNotify Group Policies Notify Policy> - The list of notify group policies.
- total
Count Integer - The total count of query.
- ids List<String>
- name String
- The name of notify group policy.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- notify
Policies GetNotify Group Policies Notify Policy[] - The list of notify group policies.
- total
Count number - The total count of query.
- ids string[]
- name string
- The name of notify group policy.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- notify_
policies Sequence[GetNotify Group Policies Notify Policy] - The list of notify group policies.
- total_
count int - The total count of query.
- ids Sequence[str]
- name str
- The name of notify group policy.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- notify
Policies List<Property Map> - The list of notify group policies.
- total
Count Number - The total count of query.
- ids List<String>
- name String
- The name of notify group policy.
- output
File String
Supporting Types
GetNotifyGroupPoliciesNotifyPolicy
- Create
Time string - The create time of notify group policy.
- Description string
- The description of notify group policy.
- Id string
- The id of the notify group policy.
- Levels
List<Get
Notify Group Policies Notify Policy Level> - The levels of the notify group policy.
- Name string
- The name of notify group policy.
- Create
Time string - The create time of notify group policy.
- Description string
- The description of notify group policy.
- Id string
- The id of the notify group policy.
- Levels
[]Get
Notify Group Policies Notify Policy Level - The levels of the notify group policy.
- Name string
- The name of notify group policy.
- create
Time String - The create time of notify group policy.
- description String
- The description of notify group policy.
- id String
- The id of the notify group policy.
- levels
List<Get
Notify Group Policies Notify Policy Level> - The levels of the notify group policy.
- name String
- The name of notify group policy.
- create
Time string - The create time of notify group policy.
- description string
- The description of notify group policy.
- id string
- The id of the notify group policy.
- levels
Get
Notify Group Policies Notify Policy Level[] - The levels of the notify group policy.
- name string
- The name of notify group policy.
- create_
time str - The create time of notify group policy.
- description str
- The description of notify group policy.
- id str
- The id of the notify group policy.
- levels
Sequence[Get
Notify Group Policies Notify Policy Level] - The levels of the notify group policy.
- name str
- The name of notify group policy.
- create
Time String - The create time of notify group policy.
- description String
- The description of notify group policy.
- id String
- The id of the notify group policy.
- levels List<Property Map>
- The levels of the notify group policy.
- name String
- The name of notify group policy.
GetNotifyGroupPoliciesNotifyPolicyLevel
- Group
Bies List<string> - The aggregate dimension.
- Group
Interval string - The aggregation cycle.
- Group
Wait string - The wait time.
- Level string
- The level of the policy.
- Repeat
Interval string - The notification cycle.
- Group
Bies []string - The aggregate dimension.
- Group
Interval string - The aggregation cycle.
- Group
Wait string - The wait time.
- Level string
- The level of the policy.
- Repeat
Interval string - The notification cycle.
- group
Bies List<String> - The aggregate dimension.
- group
Interval String - The aggregation cycle.
- group
Wait String - The wait time.
- level String
- The level of the policy.
- repeat
Interval String - The notification cycle.
- group
Bies string[] - The aggregate dimension.
- group
Interval string - The aggregation cycle.
- group
Wait string - The wait time.
- level string
- The level of the policy.
- repeat
Interval string - The notification cycle.
- group_
bies Sequence[str] - The aggregate dimension.
- group_
interval str - The aggregation cycle.
- group_
wait str - The wait time.
- level str
- The level of the policy.
- repeat_
interval str - The notification cycle.
- group
Bies List<String> - The aggregate dimension.
- group
Interval String - The aggregation cycle.
- group
Wait String - The wait time.
- level String
- The level of the policy.
- repeat
Interval String - The notification cycle.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.