Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.cms.getMetricRuleBlackLists
Start a Neo task
Explain and create an alicloud.cms.getMetricRuleBlackLists resource
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 dictionaryThe following arguments are supported:
- Category string
- 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 stringBlack List Id - The first ID of the resource
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Namespace string
- The data namespace of the cloud service.
- Order int
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Page
Size int
- Category string
- 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 stringBlack List Id - The first ID of the resource
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Namespace string
- The data namespace of the cloud service.
- Order int
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Page
Size int
- category String
- 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 StringBlack List Id - The first ID of the resource
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- namespace String
- The data namespace of the cloud service.
- order Integer
- output
File String - File name where to save data source results (after running
pulumi preview). - page
Number Integer - page
Size Integer
- category string
- 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 stringBlack List Id - The first ID of the resource
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- namespace string
- The data namespace of the cloud service.
- order number
- output
File string - File name where to save data source results (after running
pulumi preview). - page
Number number - page
Size number
- category str
- 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_ strblack_ list_ id - The first ID of the resource
- name_
regex str - A regex string to filter results by Group Metric Rule name.
- namespace str
- The data namespace of the cloud service.
- order int
- output_
file str - File name where to save data source results (after running
pulumi preview). - page_
number int - page_
size int
- category String
- 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 StringBlack List Id - The first ID of the resource
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- namespace String
- The data namespace of the cloud service.
- order Number
- 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 string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Create
Time string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- Effective
Time string - The effective time range of the alert blacklist policy.
- Enable
End stringTime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- Enable
Start stringTime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- Id string
- Instances List<string>
- The list of instances of cloud services specified in the alert blacklist policy.
- Is
Enable bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- Metric
Rule stringBlack List Id - The first ID of the resource
- Metric
Rule stringBlack List Name - The name of the alert blacklist policy.
- Metrics
List<Pulumi.
Ali Cloud. Cms. Inputs. Get Metric Rule Black Lists List Metric> - Monitoring metrics in the instance.
- Namespace string
- The data namespace of the cloud service.
- Scope
Type 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 List<string> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- Category string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- Create
Time string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- Effective
Time string - The effective time range of the alert blacklist policy.
- Enable
End stringTime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- Enable
Start stringTime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- Id string
- Instances []string
- The list of instances of cloud services specified in the alert blacklist policy.
- Is
Enable bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- Metric
Rule stringBlack List Id - The first ID of the resource
- Metric
Rule stringBlack List Name - The name of the alert blacklist policy.
- Metrics
[]Get
Metric Rule Black Lists List Metric - Monitoring metrics in the instance.
- Namespace string
- The data namespace of the cloud service.
- Scope
Type 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 []string - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category String
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time String - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time String - The effective time range of the alert blacklist policy.
- enable
End StringTime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start StringTime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id String
- instances List<String>
- The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable Boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule StringBlack List Id - The first ID of the resource
- metric
Rule StringBlack List Name - The name of the alert blacklist policy.
- metrics
List<Get
Metric Rule Black Lists List Metric> - Monitoring metrics in the instance.
- namespace String
- The data namespace of the cloud service.
- scope
Type 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 List<String> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category string
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time string - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time string - The effective time range of the alert blacklist policy.
- enable
End stringTime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start stringTime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id string
- instances string[]
- The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule stringBlack List Id - The first ID of the resource
- metric
Rule stringBlack List Name - The name of the alert blacklist policy.
- metrics
Get
Metric Rule Black Lists List Metric[] - Monitoring metrics in the instance.
- namespace string
- The data namespace of the cloud service.
- scope
Type 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 string[] - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category str
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create_
time str - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective_
time str - The effective time range of the alert blacklist policy.
- enable_
end_ strtime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable_
start_ strtime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id str
- instances Sequence[str]
- The list of instances of cloud services specified in the alert blacklist policy.
- is_
enable bool - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric_
rule_ strblack_ list_ id - The first ID of the resource
- metric_
rule_ strblack_ list_ name - The name of the alert blacklist policy.
- metrics
Sequence[Get
Metric Rule Black Lists List Metric] - Monitoring metrics in the instance.
- namespace str
- The data namespace of the cloud service.
- scope_
type 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 Sequence[str] - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
- category String
- Cloud service classification. For example, Redis includes kvstore_standard, kvstore_sharding, and kvstore_splitrw.
- create
Time String - The timestamp for creating an alert blacklist policy.Unit: milliseconds.
- effective
Time String - The effective time range of the alert blacklist policy.
- enable
End StringTime - The start timestamp of the alert blacklist policy.Unit: milliseconds.
- enable
Start StringTime - The end timestamp of the alert blacklist policy.Unit: milliseconds.
- id String
- instances List<String>
- The list of instances of cloud services specified in the alert blacklist policy.
- is
Enable Boolean - The status of the alert blacklist policy. Value:-true: enabled.-false: disabled.
- metric
Rule StringBlack List Id - The first ID of the resource
- metric
Rule StringBlack List Name - The name of the alert blacklist policy.
- metrics List<Property Map>
- Monitoring metrics in the instance.
- namespace String
- The data namespace of the cloud service.
- scope
Type 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 List<String> - Application Group ID list. The format is JSON Array.> This parameter is displayed only when 'ScopeType' is 'GROUP.
GetMetricRuleBlackListsListMetric
- Metric
Name string - The name of the monitoring indicator.
- Resource 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 string - The name of the monitoring indicator.
- Resource 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 String - The name of the monitoring indicator.
- resource 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 string - The name of the monitoring indicator.
- resource 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 str - The name of the monitoring indicator.
- resource 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 String - The name of the monitoring indicator.
- resource 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
alicloudTerraform Provider.
