Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.cms.getMetricRuleBlackLists
Explore with Pulumi AI
This data source provides Cloud Monitor Service Metric Rule Black List available to the user.What is Metric Rule Black List
NOTE: Available in 1.194.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.cms.getMetricRuleBlackLists({
ids: [defaultAlicloudCmsMetricRuleBlackLists.id],
category: "ecs",
namespace: "acs_ecs_dashboard",
});
export const alicloudCmsRuleBlackListExampleId = lists[0].id;
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cms.get_metric_rule_black_lists(ids=[default_alicloud_cms_metric_rule_black_lists["id"]],
category="ecs",
namespace="acs_ecs_dashboard")
pulumi.export("alicloudCmsRuleBlackListExampleId", lists[0]["id"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cms.GetMetricRuleBlackLists(ctx, &cms.GetMetricRuleBlackListsArgs{
Ids: interface{}{
defaultAlicloudCmsMetricRuleBlackLists.Id,
},
Category: pulumi.StringRef("ecs"),
Namespace: pulumi.StringRef("acs_ecs_dashboard"),
}, nil);
if err != nil {
return err
}
ctx.Export("alicloudCmsRuleBlackListExampleId", lists[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Cms.GetMetricRuleBlackLists.Invoke(new()
{
Ids = new[]
{
defaultAlicloudCmsMetricRuleBlackLists.Id,
},
Category = "ecs",
Namespace = "acs_ecs_dashboard",
});
return new Dictionary<string, object?>
{
["alicloudCmsRuleBlackListExampleId"] = lists[0].Id,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.CmsFunctions;
import com.pulumi.alicloud.cms.inputs.GetMetricRuleBlackListsArgs;
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 default = CmsFunctions.getMetricRuleBlackLists(GetMetricRuleBlackListsArgs.builder()
.ids(defaultAlicloudCmsMetricRuleBlackLists.id())
.category("ecs")
.namespace("acs_ecs_dashboard")
.build());
ctx.export("alicloudCmsRuleBlackListExampleId", lists[0].id());
}
}
variables:
default:
fn::invoke:
function: alicloud:cms:getMetricRuleBlackLists
arguments:
ids:
- ${defaultAlicloudCmsMetricRuleBlackLists.id}
category: ecs
namespace: acs_ecs_dashboard
outputs:
alicloudCmsRuleBlackListExampleId: ${lists[0].id}
Using getMetricRuleBlackLists
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 getMetricRuleBlackLists(args: GetMetricRuleBlackListsArgs, opts?: InvokeOptions): Promise<GetMetricRuleBlackListsResult>
function getMetricRuleBlackListsOutput(args: GetMetricRuleBlackListsOutputArgs, opts?: InvokeOptions): Output<GetMetricRuleBlackListsResult>
def get_metric_rule_black_lists(category: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
metric_rule_black_list_id: Optional[str] = None,
name_regex: Optional[str] = None,
namespace: Optional[str] = None,
order: Optional[int] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricRuleBlackListsResult
def get_metric_rule_black_lists_output(category: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
metric_rule_black_list_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
order: Optional[pulumi.Input[int]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetricRuleBlackListsResult]
func GetMetricRuleBlackLists(ctx *Context, args *GetMetricRuleBlackListsArgs, opts ...InvokeOption) (*GetMetricRuleBlackListsResult, error)
func GetMetricRuleBlackListsOutput(ctx *Context, args *GetMetricRuleBlackListsOutputArgs, opts ...InvokeOption) GetMetricRuleBlackListsResultOutput
> Note: This function is named GetMetricRuleBlackLists
in the Go SDK.
public static class GetMetricRuleBlackLists
{
public static Task<GetMetricRuleBlackListsResult> InvokeAsync(GetMetricRuleBlackListsArgs args, InvokeOptions? opts = null)
public static Output<GetMetricRuleBlackListsResult> Invoke(GetMetricRuleBlackListsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetricRuleBlackListsResult> getMetricRuleBlackLists(GetMetricRuleBlackListsArgs args, InvokeOptions options)
public static Output<GetMetricRuleBlackListsResult> getMetricRuleBlackLists(GetMetricRuleBlackListsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists
arguments:
# arguments dictionary
The following arguments are supported:
- Category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Ids List<string>
- A list of Metric Rule Black List IDs.
- Metric
Rule Black List Id Changes to this property will trigger replacement.
- The first ID of the resource
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- Namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- Order
Changes to this property will trigger replacement.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Ids []string
- A list of Metric Rule Black List IDs.
- Metric
Rule Black List Id Changes to this property will trigger replacement.
- The first ID of the resource
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- Namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- Order
Changes to this property will trigger replacement.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- ids List<String>
- A list of Metric Rule Black List IDs.
- metric
Rule Black List Id Changes to this property will trigger replacement.
- The first ID of the resource
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- order
Changes to this property will trigger replacement.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- ids string[]
- A list of Metric Rule Black List IDs.
- metric
Rule Black List Id Changes to this property will trigger replacement.
- The first ID of the resource
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- order
Changes to this property will trigger replacement.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number
- category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- ids Sequence[str]
- A list of Metric Rule Black List IDs.
- metric_
rule_ black_ list_ id Changes to this property will trigger replacement.
- The first ID of the resource
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- order
Changes to this property will trigger replacement.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - page_
number int - page_
size int
- category
Changes to this property will trigger replacement.
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- ids List<String>
- A list of Metric Rule Black List IDs.
- metric
Rule Black List Id Changes to this property will trigger replacement.
- The first ID of the resource
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Group Metric Rule name.
- namespace
Changes to this property will trigger replacement.
- The data namespace of the cloud service.
- order
Changes to this property will trigger replacement.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number
getMetricRuleBlackLists Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Metric Rule Black List IDs.
- Lists
List<Pulumi.
Ali Cloud. Cms. Outputs. Get Metric Rule Black Lists List> - A list of Metric Rule Black List Entries. Each element contains the following attributes:
- Names List<string>
- A list of name of Metric Rule Black Lists.
- Category string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Metric
Rule stringBlack List Id - The first ID of the resource
- Name
Regex string - Namespace string
- The data namespace of the cloud service.
- Order int
- Output
File string - Page
Number int - Page
Size int
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Metric Rule Black List IDs.
- Lists
[]Get
Metric Rule Black Lists List - A list of Metric Rule Black List Entries. Each element contains the following attributes:
- Names []string
- A list of name of Metric Rule Black Lists.
- Category string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Metric
Rule stringBlack List Id - The first ID of the resource
- Name
Regex string - Namespace string
- The data namespace of the cloud service.
- Order int
- Output
File string - Page
Number int - Page
Size int
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Metric Rule Black List IDs.
- lists
List<Get
Metric Rule Black Lists List> - A list of Metric Rule Black List Entries. Each element contains the following attributes:
- names List<String>
- A list of name of Metric Rule Black Lists.
- category String
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- metric
Rule StringBlack List Id - The first ID of the resource
- name
Regex String - namespace String
- The data namespace of the cloud service.
- order Integer
- output
File String - page
Number Integer - page
Size Integer
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Metric Rule Black List IDs.
- lists
Get
Metric Rule Black Lists List[] - A list of Metric Rule Black List Entries. Each element contains the following attributes:
- names string[]
- A list of name of Metric Rule Black Lists.
- category string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- metric
Rule stringBlack List Id - The first ID of the resource
- name
Regex string - namespace string
- The data namespace of the cloud service.
- order number
- output
File string - page
Number number - page
Size number
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Metric Rule Black List IDs.
- lists
Sequence[Get
Metric Rule Black Lists List] - A list of Metric Rule Black List Entries. Each element contains the following attributes:
- names Sequence[str]
- A list of name of Metric Rule Black Lists.
- category str
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- metric_
rule_ strblack_ list_ id - The first ID of the resource
- name_
regex str - namespace str
- The data namespace of the cloud service.
- order int
- output_
file str - page_
number int - page_
size int
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Metric Rule Black List IDs.
- lists List<Property Map>
- A list of Metric Rule Black List Entries. Each element contains the following attributes:
- names List<String>
- A list of name of Metric Rule Black Lists.
- category String
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- metric
Rule StringBlack List Id - The first ID of the resource
- name
Regex String - namespace String
- The data namespace of the cloud service.
- order Number
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetMetricRuleBlackListsList
- Category
This property is required. string - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Create
Time This property is required. string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- Effective
Time This property is required. string - The effective time range of the alert blacklist policy.
- Enable
End Time This property is required. string - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- Enable
Start Time This property is required. string - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- Id
This property is required. string - Instances
This property is required. List<string> - The list of instances of cloud services specified in the alert blacklist policy.
- Is
Enable This property is required. bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- Metric
Rule Black List Id This property is required. string - The first ID of the resource
- Metric
Rule Black List Name This property is required. string - The name of the alert blacklist policy.
- Metrics
This property is required. List<Pulumi.Ali Cloud. Cms. Inputs. Get Metric Rule Black Lists List Metric> - Monitoring metrics in the instance.
- Namespace
This property is required. string - The data namespace of the cloud service.
- Scope
Type This property is required. string - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- Scope
Values This property is required. List<string> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- Category
This property is required. string - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Create
Time This property is required. string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- Effective
Time This property is required. string - The effective time range of the alert blacklist policy.
- Enable
End Time This property is required. string - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- Enable
Start Time This property is required. string - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- Id
This property is required. string - Instances
This property is required. []string - The list of instances of cloud services specified in the alert blacklist policy.
- Is
Enable This property is required. bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- Metric
Rule Black List Id This property is required. string - The first ID of the resource
- Metric
Rule Black List Name This property is required. string - The name of the alert blacklist policy.
- Metrics
This property is required. []GetMetric Rule Black Lists List Metric - Monitoring metrics in the instance.
- Namespace
This property is required. string - The data namespace of the cloud service.
- Scope
Type This property is required. string - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- Scope
Values This property is required. []string - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category
This property is required. String - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time This property is required. String - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time This property is required. String - The effective time range of the alert blacklist policy.
- enable
End Time This property is required. String - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start Time This property is required. String - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id
This property is required. String - instances
This property is required. List<String> - The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable This property is required. Boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule Black List Id This property is required. String - The first ID of the resource
- metric
Rule Black List Name This property is required. String - The name of the alert blacklist policy.
- metrics
This property is required. List<GetMetric Rule Black Lists List Metric> - Monitoring metrics in the instance.
- namespace
This property is required. String - The data namespace of the cloud service.
- scope
Type This property is required. String - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- scope
Values This property is required. List<String> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category
This property is required. string - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time This property is required. string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time This property is required. string - The effective time range of the alert blacklist policy.
- enable
End Time This property is required. string - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start Time This property is required. string - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id
This property is required. string - instances
This property is required. string[] - The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable This property is required. boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule Black List Id This property is required. string - The first ID of the resource
- metric
Rule Black List Name This property is required. string - The name of the alert blacklist policy.
- metrics
This property is required. GetMetric Rule Black Lists List Metric[] - Monitoring metrics in the instance.
- namespace
This property is required. string - The data namespace of the cloud service.
- scope
Type This property is required. string - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- scope
Values This property is required. string[] - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category
This property is required. str - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create_
time This property is required. str - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective_
time This property is required. str - The effective time range of the alert blacklist policy.
- enable_
end_ time This property is required. str - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable_
start_ time This property is required. str - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id
This property is required. str - instances
This property is required. Sequence[str] - The list of instances of cloud services specified in the alert blacklist policy.
- is_
enable This property is required. bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric_
rule_ black_ list_ id This property is required. str - The first ID of the resource
- metric_
rule_ black_ list_ name This property is required. str - The name of the alert blacklist policy.
- metrics
This property is required. Sequence[GetMetric Rule Black Lists List Metric] - Monitoring metrics in the instance.
- namespace
This property is required. str - The data namespace of the cloud service.
- scope_
type This property is required. str - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- scope_
values This property is required. Sequence[str] - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category
This property is required. String - Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time This property is required. String - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time This property is required. String - The effective time range of the alert blacklist policy.
- enable
End Time This property is required. String - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start Time This property is required. String - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id
This property is required. String - instances
This property is required. List<String> - The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable This property is required. Boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule Black List Id This property is required. String - The first ID of the resource
- metric
Rule Black List Name This property is required. String - The name of the alert blacklist policy.
- metrics
This property is required. List<Property Map> - Monitoring metrics in the instance.
- namespace
This property is required. String - The data namespace of the cloud service.
- scope
Type This property is required. String - The effective range of the alert blacklist policy. Value:-USER: The alert blacklist policy only takes effect in the current Alibaba cloud account.-GROUP: The alert blacklist policy takes effect in the specified application GROUP.
- scope
Values This property is required. List<String> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
GetMetricRuleBlackListsListMetric
- Metric
Name This property is required. string - The name of the monitoring indicator.
- Resource
This property is required. string - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
- Metric
Name This property is required. string - The name of the monitoring indicator.
- Resource
This property is required. string - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
- metric
Name This property is required. String - The name of the monitoring indicator.
- resource
This property is required. String - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
- metric
Name This property is required. string - The name of the monitoring indicator.
- resource
This property is required. string - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
- metric_
name This property is required. str - The name of the monitoring indicator.
- resource
This property is required. str - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
- metric
Name This property is required. String - The name of the monitoring indicator.
- resource
This property is required. String - The extended dimension information of the instance. For example, '{"device":"C:"}' indicates that the blacklist policy is applied to all C disks under the ECS instance.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.