1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. ContactGroups
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.cloud_monitor.ContactGroups

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of cloud monitor contact groups

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cloud_monitor.ContactGroups.Invoke(new()
        {
            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.ContactGroups(ctx, &cloud_monitor.ContactGroupsArgs{
    			Name: pulumi.StringRef("tftest"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.ContactGroupsArgs;
    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.ContactGroups(ContactGroupsArgs.builder()
                .name("tftest")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cloud_monitor.contact_groups(name="tftest")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cloud_monitor.ContactGroups({
        name: "tftest",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cloud_monitor:ContactGroups
          Arguments:
            name: tftest
    

    Using ContactGroups

    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 contactGroups(args: ContactGroupsArgs, opts?: InvokeOptions): Promise<ContactGroupsResult>
    function contactGroupsOutput(args: ContactGroupsOutputArgs, opts?: InvokeOptions): Output<ContactGroupsResult>
    def contact_groups(name: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> ContactGroupsResult
    def contact_groups_output(name: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[ContactGroupsResult]
    func ContactGroups(ctx *Context, args *ContactGroupsArgs, opts ...InvokeOption) (*ContactGroupsResult, error)
    func ContactGroupsOutput(ctx *Context, args *ContactGroupsOutputArgs, opts ...InvokeOption) ContactGroupsResultOutput
    public static class ContactGroups 
    {
        public static Task<ContactGroupsResult> InvokeAsync(ContactGroupsArgs args, InvokeOptions? opts = null)
        public static Output<ContactGroupsResult> Invoke(ContactGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ContactGroupsResult> contactGroups(ContactGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cloud_monitor:ContactGroups
      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.

    ContactGroups Result

    The following output properties are available:

    Groups List<ContactGroupsGroup>
    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 []ContactGroupsGroup
    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<ContactGroupsGroup>
    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 ContactGroupsGroup[]
    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[ContactGroupsGroup]
    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

    ContactGroupsGroup

    AccountId string
    The id of the account.
    Contacts List<ContactGroupsGroupContact>
    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 []ContactGroupsGroupContact
    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<ContactGroupsGroupContact>
    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 ContactGroupsGroupContact[]
    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[ContactGroupsGroupContact]
    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.

    ContactGroupsGroupContact

    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.24 published on Tuesday, Jun 25, 2024 by Volcengine