Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.cloud_monitor.getContactGroups
Explore with Pulumi AI
Use this data source to query detailed information of cloud monitor contact groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.getContactGroups({
name: "tftest",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.get_contact_groups(name="tftest")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloud_monitor.GetContactGroups(ctx, &cloud_monitor.GetContactGroupsArgs{
Name: pulumi.StringRef("tftest"),
}, 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 foo = Volcengine.Cloud_monitor.GetContactGroups.Invoke(new()
{
Name = "tftest",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_monitor.Cloud_monitorFunctions;
import com.pulumi.volcengine.cloud_monitor.inputs.GetContactGroupsArgs;
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 foo = Cloud_monitorFunctions.getContactGroups(GetContactGroupsArgs.builder()
.name("tftest")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:cloud_monitor:getContactGroups
Arguments:
name: tftest
Using getContactGroups
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 getContactGroups(args: GetContactGroupsArgs, opts?: InvokeOptions): Promise<GetContactGroupsResult>
function getContactGroupsOutput(args: GetContactGroupsOutputArgs, opts?: InvokeOptions): Output<GetContactGroupsResult>
def get_contact_groups(name: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContactGroupsResult
def get_contact_groups_output(name: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContactGroupsResult]
func GetContactGroups(ctx *Context, args *GetContactGroupsArgs, opts ...InvokeOption) (*GetContactGroupsResult, error)
func GetContactGroupsOutput(ctx *Context, args *GetContactGroupsOutputArgs, opts ...InvokeOption) GetContactGroupsResultOutput
> Note: This function is named GetContactGroups
in the Go SDK.
public static class GetContactGroups
{
public static Task<GetContactGroupsResult> InvokeAsync(GetContactGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetContactGroupsResult> Invoke(GetContactGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContactGroupsResult> getContactGroups(GetContactGroupsArgs args, InvokeOptions options)
public static Output<GetContactGroupsResult> getContactGroups(GetContactGroupsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cloud_monitor/getContactGroups:getContactGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Search for keywords in contact group names, supports fuzzy search.
- Output
File string - File name where to save data source results.
- Name string
- Search for keywords in contact group names, supports fuzzy search.
- Output
File string - File name where to save data source results.
- name String
- Search for keywords in contact group names, supports fuzzy search.
- output
File String - File name where to save data source results.
- name string
- Search for keywords in contact group names, supports fuzzy search.
- output
File string - File name where to save data source results.
- name str
- Search for keywords in contact group names, supports fuzzy search.
- output_
file str - File name where to save data source results.
- name String
- Search for keywords in contact group names, supports fuzzy search.
- output
File String - File name where to save data source results.
getContactGroups Result
The following output properties are available:
- Groups
List<Get
Contact Groups Group> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name string
- The name of the contact group.
- Output
File string
- Groups
[]Get
Contact Groups Group - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name string
- The name of the contact group.
- Output
File string
- groups
List<Get
Contact Groups Group> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- name String
- The name of the contact group.
- output
File String
- groups
Get
Contact Groups Group[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- name string
- The name of the contact group.
- output
File string
- groups
Sequence[Get
Contact Groups Group] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- name str
- The name of the contact group.
- output_
file str
- groups List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- name String
- The name of the contact group.
- output
File String
Supporting Types
GetContactGroupsGroup
- Account
Id string - The id of the account.
- Contacts
List<Get
Contact Groups Group Contact> - Contact information in the contact group.
- Created
At string - The create time.
- Description string
- The description of the contact group.
- Id string
- The id of the contact group.
- Name string
- Search for keywords in contact group names, supports fuzzy search.
- Updated
At string - The update time.
- Account
Id string - The id of the account.
- Contacts
[]Get
Contact Groups Group Contact - Contact information in the contact group.
- Created
At string - The create time.
- Description string
- The description of the contact group.
- Id string
- The id of the contact group.
- Name string
- Search for keywords in contact group names, supports fuzzy search.
- Updated
At string - The update time.
- account
Id String - The id of the account.
- contacts
List<Get
Contact Groups Group Contact> - Contact information in the contact group.
- created
At String - The create time.
- description String
- The description of the contact group.
- id String
- The id of the contact group.
- name String
- Search for keywords in contact group names, supports fuzzy search.
- updated
At String - The update time.
- account
Id string - The id of the account.
- contacts
Get
Contact Groups Group Contact[] - Contact information in the contact group.
- created
At string - The create time.
- description string
- The description of the contact group.
- id string
- The id of the contact group.
- name string
- Search for keywords in contact group names, supports fuzzy search.
- updated
At string - The update time.
- account_
id str - The id of the account.
- contacts
Sequence[Get
Contact Groups Group Contact] - Contact information in the contact group.
- created_
at str - The create time.
- description str
- The description of the contact group.
- id str
- The id of the contact group.
- name str
- Search for keywords in contact group names, supports fuzzy search.
- updated_
at str - The update time.
- account
Id String - The id of the account.
- contacts List<Property Map>
- Contact information in the contact group.
- created
At String - The create time.
- description String
- The description of the contact group.
- id String
- The id of the contact group.
- name String
- Search for keywords in contact group names, supports fuzzy search.
- updated
At String - The update time.
GetContactGroupsGroupContact
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.