tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMonitorBindingObjects
Start a Neo task
Explain and create a tencentcloud.getMonitorBindingObjects resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query policy group binding objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const name = tencentcloud.getMonitorPolicyGroups({
name: "test",
});
const objects = name.then(name => tencentcloud.getMonitorBindingObjects({
groupId: name.lists?.[0]?.groupId,
}));
import pulumi
import pulumi_tencentcloud as tencentcloud
name = tencentcloud.get_monitor_policy_groups(name="test")
objects = tencentcloud.get_monitor_binding_objects(group_id=name.lists[0].group_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
name, err := tencentcloud.GetMonitorPolicyGroups(ctx, &tencentcloud.GetMonitorPolicyGroupsArgs{
Name: pulumi.StringRef("test"),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetMonitorBindingObjects(ctx, &tencentcloud.GetMonitorBindingObjectsArgs{
GroupId: name.Lists[0].GroupId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var name = Tencentcloud.GetMonitorPolicyGroups.Invoke(new()
{
Name = "test",
});
var objects = Tencentcloud.GetMonitorBindingObjects.Invoke(new()
{
GroupId = name.Apply(getMonitorPolicyGroupsResult => getMonitorPolicyGroupsResult.Lists[0]?.GroupId),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetMonitorPolicyGroupsArgs;
import com.pulumi.tencentcloud.inputs.GetMonitorBindingObjectsArgs;
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 name = TencentcloudFunctions.getMonitorPolicyGroups(GetMonitorPolicyGroupsArgs.builder()
.name("test")
.build());
final var objects = TencentcloudFunctions.getMonitorBindingObjects(GetMonitorBindingObjectsArgs.builder()
.groupId(name.lists()[0].groupId())
.build());
}
}
variables:
name:
fn::invoke:
function: tencentcloud:getMonitorPolicyGroups
arguments:
name: test
objects:
fn::invoke:
function: tencentcloud:getMonitorBindingObjects
arguments:
groupId: ${name.lists[0].groupId}
Using getMonitorBindingObjects
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 getMonitorBindingObjects(args: GetMonitorBindingObjectsArgs, opts?: InvokeOptions): Promise<GetMonitorBindingObjectsResult>
function getMonitorBindingObjectsOutput(args: GetMonitorBindingObjectsOutputArgs, opts?: InvokeOptions): Output<GetMonitorBindingObjectsResult>def get_monitor_binding_objects(group_id: Optional[float] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMonitorBindingObjectsResult
def get_monitor_binding_objects_output(group_id: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMonitorBindingObjectsResult]func GetMonitorBindingObjects(ctx *Context, args *GetMonitorBindingObjectsArgs, opts ...InvokeOption) (*GetMonitorBindingObjectsResult, error)
func GetMonitorBindingObjectsOutput(ctx *Context, args *GetMonitorBindingObjectsOutputArgs, opts ...InvokeOption) GetMonitorBindingObjectsResultOutput> Note: This function is named GetMonitorBindingObjects in the Go SDK.
public static class GetMonitorBindingObjects
{
public static Task<GetMonitorBindingObjectsResult> InvokeAsync(GetMonitorBindingObjectsArgs args, InvokeOptions? opts = null)
public static Output<GetMonitorBindingObjectsResult> Invoke(GetMonitorBindingObjectsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitorBindingObjectsResult> getMonitorBindingObjects(GetMonitorBindingObjectsArgs args, InvokeOptions options)
public static Output<GetMonitorBindingObjectsResult> getMonitorBindingObjects(GetMonitorBindingObjectsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMonitorBindingObjects:getMonitorBindingObjects
arguments:
# arguments dictionaryThe following arguments are supported:
- Group
Id double - Policy group ID for query.
- Id string
- Result
Output stringFile - Used to store results.
- Group
Id float64 - Policy group ID for query.
- Id string
- Result
Output stringFile - Used to store results.
- group
Id Double - Policy group ID for query.
- id String
- result
Output StringFile - Used to store results.
- group
Id number - Policy group ID for query.
- id string
- result
Output stringFile - Used to store results.
- group_
id float - Policy group ID for query.
- id str
- result_
output_ strfile - Used to store results.
- group
Id Number - Policy group ID for query.
- id String
- result
Output StringFile - Used to store results.
getMonitorBindingObjects Result
The following output properties are available:
- Group
Id double - Id string
- Lists
List<Get
Monitor Binding Objects List> - A list objects. Each element contains the following attributes:
- Result
Output stringFile
- Group
Id float64 - Id string
- Lists
[]Get
Monitor Binding Objects List - A list objects. Each element contains the following attributes:
- Result
Output stringFile
- group
Id Double - id String
- lists
List<Get
Monitor Binding Objects List> - A list objects. Each element contains the following attributes:
- result
Output StringFile
- group
Id number - id string
- lists
Get
Monitor Binding Objects List[] - A list objects. Each element contains the following attributes:
- result
Output stringFile
- group_
id float - id str
- lists
Sequence[Get
Monitor Binding Objects List] - A list objects. Each element contains the following attributes:
- result_
output_ strfile
- group
Id Number - id String
- lists List<Property Map>
- A list objects. Each element contains the following attributes:
- result
Output StringFile
Supporting Types
GetMonitorBindingObjectsList
- Dimensions
Json string - Represents a collection of dimensions of an object instance, json format.
- Is
Shielded double - Whether the object is shielded or not,
0means unshielded and1means shielded. - Region string
- The region where the object is located.
- Unique
Id string - Object unique ID.
- Dimensions
Json string - Represents a collection of dimensions of an object instance, json format.
- Is
Shielded float64 - Whether the object is shielded or not,
0means unshielded and1means shielded. - Region string
- The region where the object is located.
- Unique
Id string - Object unique ID.
- dimensions
Json String - Represents a collection of dimensions of an object instance, json format.
- is
Shielded Double - Whether the object is shielded or not,
0means unshielded and1means shielded. - region String
- The region where the object is located.
- unique
Id String - Object unique ID.
- dimensions
Json string - Represents a collection of dimensions of an object instance, json format.
- is
Shielded number - Whether the object is shielded or not,
0means unshielded and1means shielded. - region string
- The region where the object is located.
- unique
Id string - Object unique ID.
- dimensions_
json str - Represents a collection of dimensions of an object instance, json format.
- is_
shielded float - Whether the object is shielded or not,
0means unshielded and1means shielded. - region str
- The region where the object is located.
- unique_
id str - Object unique ID.
- dimensions
Json String - Represents a collection of dimensions of an object instance, json format.
- is
Shielded Number - Whether the object is shielded or not,
0means unshielded and1means shielded. - region String
- The region where the object is located.
- unique
Id String - Object unique ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
