Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of cloud monitor contacts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.getContacts({
ids: [
"17******516",
"1712**********0",
],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.get_contacts(ids=[
"17******516",
"1712**********0",
])
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.GetContacts(ctx, &cloud_monitor.GetContactsArgs{
Ids: []string{
"17******516",
"1712**********0",
},
}, 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.GetContacts.Invoke(new()
{
Ids = new[]
{
"17******516",
"1712**********0",
},
});
});
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.GetContactsArgs;
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.getContacts(GetContactsArgs.builder()
.ids(
"17******516",
"1712**********0")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:cloud_monitor:getContacts
Arguments:
ids:
- 17******516
- 1712**********0
Using getContacts
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 getContacts(args: GetContactsArgs, opts?: InvokeOptions): Promise<GetContactsResult>
function getContactsOutput(args: GetContactsOutputArgs, opts?: InvokeOptions): Output<GetContactsResult>def get_contacts(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContactsResult
def get_contacts_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContactsResult]func GetContacts(ctx *Context, args *GetContactsArgs, opts ...InvokeOption) (*GetContactsResult, error)
func GetContactsOutput(ctx *Context, args *GetContactsOutputArgs, opts ...InvokeOption) GetContactsResultOutput> Note: This function is named GetContacts in the Go SDK.
public static class GetContacts
{
public static Task<GetContactsResult> InvokeAsync(GetContactsArgs args, InvokeOptions? opts = null)
public static Output<GetContactsResult> Invoke(GetContactsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContactsResult> getContacts(GetContactsArgs args, InvokeOptions options)
public static Output<GetContactsResult> getContacts(GetContactsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cloud_monitor/getContacts:getContacts
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Contact IDs.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of Contact IDs.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of Contact IDs.
- output
File String - File name where to save data source results.
- ids string[]
- A list of Contact IDs.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of Contact IDs.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of Contact IDs.
- output
File String - File name where to save data source results.
getContacts Result
The following output properties are available:
- Contacts
List<Get
Contacts Contact> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Total
Count int - The total count of query.
- Output
File string
- Contacts
[]Get
Contacts Contact - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Total
Count int - The total count of query.
- Output
File string
- contacts
List<Get
Contacts Contact> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- total
Count Integer - The total count of query.
- output
File String
- contacts
Get
Contacts Contact[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- total
Count number - The total count of query.
- output
File string
- contacts
Sequence[Get
Contacts Contact] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- total_
count int - The total count of query.
- output_
file str
- contacts List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- total
Count Number - The total count of query.
- output
File String
Supporting Types
GetContactsContact
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
