1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. getContactGroups
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.cloud_monitor.getContactGroups

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    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.
    OutputFile string
    File name where to save data source results.
    Name string
    Search for keywords in contact group names, supports fuzzy search.
    OutputFile string
    File name where to save data source results.
    name String
    Search for keywords in contact group names, supports fuzzy search.
    outputFile String
    File name where to save data source results.
    name string
    Search for keywords in contact group names, supports fuzzy search.
    outputFile 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.
    outputFile String
    File name where to save data source results.

    getContactGroups Result

    The following output properties are available:

    Groups List<GetContactGroupsGroup>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Name string
    The name of the contact group.
    OutputFile string
    Groups []GetContactGroupsGroup
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Name string
    The name of the contact group.
    OutputFile string
    groups List<GetContactGroupsGroup>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    name String
    The name of the contact group.
    outputFile String
    groups GetContactGroupsGroup[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    name string
    The name of the contact group.
    outputFile string
    groups Sequence[GetContactGroupsGroup]
    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.
    totalCount Number
    The total count of query.
    name String
    The name of the contact group.
    outputFile String

    Supporting Types

    GetContactGroupsGroup

    AccountId string
    The id of the account.
    Contacts List<GetContactGroupsGroupContact>
    Contact information in the contact group.
    CreatedAt 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.
    UpdatedAt string
    The update time.
    AccountId string
    The id of the account.
    Contacts []GetContactGroupsGroupContact
    Contact information in the contact group.
    CreatedAt 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.
    UpdatedAt string
    The update time.
    accountId String
    The id of the account.
    contacts List<GetContactGroupsGroupContact>
    Contact information in the contact group.
    createdAt 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.
    updatedAt String
    The update time.
    accountId string
    The id of the account.
    contacts GetContactGroupsGroupContact[]
    Contact information in the contact group.
    createdAt 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.
    updatedAt string
    The update time.
    account_id str
    The id of the account.
    contacts Sequence[GetContactGroupsGroupContact]
    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.
    accountId String
    The id of the account.
    contacts List<Property Map>
    Contact information in the contact group.
    createdAt 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.
    updatedAt String
    The update time.

    GetContactGroupsGroupContact

    Email string
    The email of contact.
    Id string
    The id of the contact group.
    Name string
    Search for keywords in contact group names, supports fuzzy search.
    Phone string
    The phone of contact.
    Email string
    The email of contact.
    Id string
    The id of the contact group.
    Name string
    Search for keywords in contact group names, supports fuzzy search.
    Phone string
    The phone of contact.
    email String
    The email of contact.
    id String
    The id of the contact group.
    name String
    Search for keywords in contact group names, supports fuzzy search.
    phone String
    The phone of contact.
    email string
    The email of contact.
    id string
    The id of the contact group.
    name string
    Search for keywords in contact group names, supports fuzzy search.
    phone string
    The phone of contact.
    email str
    The email of contact.
    id str
    The id of the contact group.
    name str
    Search for keywords in contact group names, supports fuzzy search.
    phone str
    The phone of contact.
    email String
    The email of contact.
    id String
    The id of the contact group.
    name String
    Search for keywords in contact group names, supports fuzzy search.
    phone String
    The phone of contact.

    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.31 published on Monday, May 12, 2025 by Volcengine