1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. mongodb
  6. getShardingAuditFilters
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi

    This data source provides the Mongodb Sharding Audit Filter of the current Alibaba Cloud user.

    NOTE: Available since v1.290.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.mongodb.getZones({});
    const defaultGetNetworks = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultGetSwitches = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
        vpcId: defaultGetNetworks.ids?.[0],
        zoneId: _default.zones?.[0]?.id,
    }));
    const defaultShardingInstance = new alicloud.mongodb.ShardingInstance("default", {
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
        engineVersion: "4.2",
        name: name,
        mongoLists: [
            {
                nodeClass: "dds.mongos.mid",
            },
            {
                nodeClass: "dds.mongos.mid",
            },
        ],
        shardLists: [
            {
                nodeClass: "dds.shard.mid",
                nodeStorage: 10,
            },
            {
                nodeClass: "dds.shard.mid",
                nodeStorage: 10,
            },
        ],
    });
    const defaultShardingAuditFilter = new alicloud.mongodb.ShardingAuditFilter("default", {
        dbInstanceId: defaultShardingInstance.id,
        auditStatus: "enable",
        filter: "admin,slow",
    });
    const defaultGetShardingAuditFilters = alicloud.mongodb.getShardingAuditFiltersOutput({
        dbInstanceId: defaultShardingAuditFilter.dbInstanceId,
    });
    export const shardingAuditFilterId = defaultGetShardingAuditFilters.apply(defaultGetShardingAuditFilters => defaultGetShardingAuditFilters.filters?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.mongodb.get_zones()
    default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
        zone_id=default.zones[0].id)
    default_sharding_instance = alicloud.mongodb.ShardingInstance("default",
        zone_id=default.zones[0].id,
        vswitch_id=default_get_switches.ids[0],
        engine_version="4.2",
        name=name,
        mongo_lists=[
            {
                "node_class": "dds.mongos.mid",
            },
            {
                "node_class": "dds.mongos.mid",
            },
        ],
        shard_lists=[
            {
                "node_class": "dds.shard.mid",
                "node_storage": 10,
            },
            {
                "node_class": "dds.shard.mid",
                "node_storage": 10,
            },
        ])
    default_sharding_audit_filter = alicloud.mongodb.ShardingAuditFilter("default",
        db_instance_id=default_sharding_instance.id,
        audit_status="enable",
        filter="admin,slow")
    default_get_sharding_audit_filters = alicloud.mongodb.get_sharding_audit_filters_output(db_instance_id=default_sharding_audit_filter.db_instance_id)
    pulumi.export("shardingAuditFilterId", default_get_sharding_audit_filters.filters[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mongodb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := mongodb.GetZones(ctx, &mongodb.GetZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    			NameRegex: pulumi.StringRef("^default-NODELETING$"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
    			ZoneId: pulumi.StringRef(_default.Zones[0].Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultShardingInstance, err := mongodb.NewShardingInstance(ctx, "default", &mongodb.ShardingInstanceArgs{
    			ZoneId:        pulumi.String(_default.Zones[0].Id),
    			VswitchId:     pulumi.String(defaultGetSwitches.Ids[0]),
    			EngineVersion: pulumi.String("4.2"),
    			Name:          pulumi.String(name),
    			MongoLists: mongodb.ShardingInstanceMongoListArray{
    				&mongodb.ShardingInstanceMongoListArgs{
    					NodeClass: pulumi.String("dds.mongos.mid"),
    				},
    				&mongodb.ShardingInstanceMongoListArgs{
    					NodeClass: pulumi.String("dds.mongos.mid"),
    				},
    			},
    			ShardLists: mongodb.ShardingInstanceShardListArray{
    				&mongodb.ShardingInstanceShardListArgs{
    					NodeClass:   pulumi.String("dds.shard.mid"),
    					NodeStorage: pulumi.Int(10),
    				},
    				&mongodb.ShardingInstanceShardListArgs{
    					NodeClass:   pulumi.String("dds.shard.mid"),
    					NodeStorage: pulumi.Int(10),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultShardingAuditFilter, err := mongodb.NewShardingAuditFilter(ctx, "default", &mongodb.ShardingAuditFilterArgs{
    			DbInstanceId: defaultShardingInstance.ID().ToIDOutput().ToStringOutput(),
    			AuditStatus:  pulumi.String("enable"),
    			Filter:       pulumi.String("admin,slow"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultGetShardingAuditFilters := mongodb.GetShardingAuditFiltersOutput(ctx, mongodb.GetShardingAuditFiltersOutputArgs{
    			DbInstanceId: defaultShardingAuditFilter.DbInstanceId,
    		}, nil)
    		ctx.Export("shardingAuditFilterId", defaultGetShardingAuditFilters.ApplyT(func(defaultGetShardingAuditFilters mongodb.GetShardingAuditFiltersResult) (*string, error) {
    			return defaultGetShardingAuditFilters.Filters[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.MongoDB.GetZones.Invoke();
    
        var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultShardingInstance = new AliCloud.MongoDB.ShardingInstance("default", new()
        {
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
            EngineVersion = "4.2",
            Name = name,
            MongoLists = new[]
            {
                new AliCloud.MongoDB.Inputs.ShardingInstanceMongoListArgs
                {
                    NodeClass = "dds.mongos.mid",
                },
                new AliCloud.MongoDB.Inputs.ShardingInstanceMongoListArgs
                {
                    NodeClass = "dds.mongos.mid",
                },
            },
            ShardLists = new[]
            {
                new AliCloud.MongoDB.Inputs.ShardingInstanceShardListArgs
                {
                    NodeClass = "dds.shard.mid",
                    NodeStorage = 10,
                },
                new AliCloud.MongoDB.Inputs.ShardingInstanceShardListArgs
                {
                    NodeClass = "dds.shard.mid",
                    NodeStorage = 10,
                },
            },
        });
    
        var defaultShardingAuditFilter = new AliCloud.MongoDB.ShardingAuditFilter("default", new()
        {
            DbInstanceId = defaultShardingInstance.Id,
            AuditStatus = "enable",
            Filter = "admin,slow",
        });
    
        var defaultGetShardingAuditFilters = AliCloud.MongoDB.GetShardingAuditFilters.Invoke(new()
        {
            DbInstanceId = defaultShardingAuditFilter.DbInstanceId,
        });
    
        return new Dictionary<string, object?>
        {
            ["shardingAuditFilterId"] = defaultGetShardingAuditFilters.Apply(getShardingAuditFiltersResult => getShardingAuditFiltersResult.Filters[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.mongodb.MongodbFunctions;
    import com.pulumi.alicloud.mongodb.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.mongodb.ShardingInstance;
    import com.pulumi.alicloud.mongodb.ShardingInstanceArgs;
    import com.pulumi.alicloud.mongodb.inputs.ShardingInstanceMongoListArgs;
    import com.pulumi.alicloud.mongodb.inputs.ShardingInstanceShardListArgs;
    import com.pulumi.alicloud.mongodb.ShardingAuditFilter;
    import com.pulumi.alicloud.mongodb.ShardingAuditFilterArgs;
    import com.pulumi.alicloud.mongodb.inputs.GetShardingAuditFiltersArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = MongodbFunctions.getZones(GetZonesArgs.builder()
                .build());
    
            final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(defaultGetNetworks.ids()[0])
                .zoneId(default_.zones()[0].id())
                .build());
    
            var defaultShardingInstance = new ShardingInstance("defaultShardingInstance", ShardingInstanceArgs.builder()
                .zoneId(default_.zones()[0].id())
                .vswitchId(defaultGetSwitches.ids()[0])
                .engineVersion("4.2")
                .name(name)
                .mongoLists(            
                    ShardingInstanceMongoListArgs.builder()
                        .nodeClass("dds.mongos.mid")
                        .build(),
                    ShardingInstanceMongoListArgs.builder()
                        .nodeClass("dds.mongos.mid")
                        .build())
                .shardLists(            
                    ShardingInstanceShardListArgs.builder()
                        .nodeClass("dds.shard.mid")
                        .nodeStorage(10)
                        .build(),
                    ShardingInstanceShardListArgs.builder()
                        .nodeClass("dds.shard.mid")
                        .nodeStorage(10)
                        .build())
                .build());
    
            var defaultShardingAuditFilter = new ShardingAuditFilter("defaultShardingAuditFilter", ShardingAuditFilterArgs.builder()
                .dbInstanceId(defaultShardingInstance.id())
                .auditStatus("enable")
                .filter("admin,slow")
                .build());
    
            final var defaultGetShardingAuditFilters = MongodbFunctions.getShardingAuditFilters(GetShardingAuditFiltersArgs.builder()
                .dbInstanceId(defaultShardingAuditFilter.dbInstanceId())
                .build());
    
            ctx.export("shardingAuditFilterId", defaultGetShardingAuditFilters.applyValue(_defaultGetShardingAuditFilters -> _defaultGetShardingAuditFilters.filters()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultShardingInstance:
        type: alicloud:mongodb:ShardingInstance
        name: default
        properties:
          zoneId: ${default.zones[0].id}
          vswitchId: ${defaultGetSwitches.ids[0]}
          engineVersion: '4.2'
          name: ${name}
          mongoLists:
            - nodeClass: dds.mongos.mid
            - nodeClass: dds.mongos.mid
          shardLists:
            - nodeClass: dds.shard.mid
              nodeStorage: 10
            - nodeClass: dds.shard.mid
              nodeStorage: 10
      defaultShardingAuditFilter:
        type: alicloud:mongodb:ShardingAuditFilter
        name: default
        properties:
          dbInstanceId: ${defaultShardingInstance.id}
          auditStatus: enable
          filter: admin,slow
    variables:
      default:
        fn::invoke:
          function: alicloud:mongodb:getZones
          arguments: {}
      defaultGetNetworks:
        fn::invoke:
          function: alicloud:vpc:getNetworks
          arguments:
            nameRegex: ^default-NODELETING$
      defaultGetSwitches:
        fn::invoke:
          function: alicloud:vpc:getSwitches
          arguments:
            vpcId: ${defaultGetNetworks.ids[0]}
            zoneId: ${default.zones[0].id}
      defaultGetShardingAuditFilters:
        fn::invoke:
          function: alicloud:mongodb:getShardingAuditFilters
          arguments:
            dbInstanceId: ${defaultShardingAuditFilter.dbInstanceId}
    outputs:
      shardingAuditFilterId: ${defaultGetShardingAuditFilters.filters[0].id}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_mongodb_getzones" "default" {
    }
    data "alicloud_vpc_getnetworks" "defaultGetNetworks" {
      name_regex = "^default-NODELETING$"
    }
    data "alicloud_vpc_getswitches" "defaultGetSwitches" {
      vpc_id  = data.alicloud_vpc_getnetworks.defaultGetNetworks.ids[0]
      zone_id = data.alicloud_mongodb_getzones.default.zones[0].id
    }
    data "alicloud_mongodb_getshardingauditfilters" "defaultGetShardingAuditFilters" {
      db_instance_id = alicloud_mongodb_shardingauditfilter.default.db_instance_id
    }
    
    resource "alicloud_mongodb_shardinginstance" "default" {
      zone_id        = data.alicloud_mongodb_getzones.default.zones[0].id
      vswitch_id     = data.alicloud_vpc_getswitches.defaultGetSwitches.ids[0]
      engine_version = "4.2"
      name           = var.name
      mongo_lists {
        node_class = "dds.mongos.mid"
      }
      mongo_lists {
        node_class = "dds.mongos.mid"
      }
      shard_lists {
        node_class   = "dds.shard.mid"
        node_storage = 10
      }
      shard_lists {
        node_class   = "dds.shard.mid"
        node_storage = 10
      }
    }
    resource "alicloud_mongodb_shardingauditfilter" "default" {
      db_instance_id = alicloud_mongodb_shardinginstance.default.id
      audit_status   = "enable"
      filter         = "admin,slow"
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    output "shardingAuditFilterId" {
      value = data.alicloud_mongodb_getshardingauditfilters.defaultGetShardingAuditFilters.filters[0].id
    }
    

    Using getShardingAuditFilters

    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 getShardingAuditFilters(args: GetShardingAuditFiltersArgs, opts?: InvokeOptions): Promise<GetShardingAuditFiltersResult>
    function getShardingAuditFiltersOutput(args: GetShardingAuditFiltersOutputArgs, opts?: InvokeOutputOptions): Output<GetShardingAuditFiltersResult>
    def get_sharding_audit_filters(db_instance_id: Optional[str] = None,
                                   output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetShardingAuditFiltersResult
    def get_sharding_audit_filters_output(db_instance_id: pulumi.Input[Optional[str]] = None,
                                   output_file: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetShardingAuditFiltersResult]
    func GetShardingAuditFilters(ctx *Context, args *GetShardingAuditFiltersArgs, opts ...InvokeOption) (*GetShardingAuditFiltersResult, error)
    func GetShardingAuditFiltersOutput(ctx *Context, args *GetShardingAuditFiltersOutputArgs, opts ...InvokeOption) GetShardingAuditFiltersResultOutput

    > Note: This function is named GetShardingAuditFilters in the Go SDK.

    public static class GetShardingAuditFilters 
    {
        public static Task<GetShardingAuditFiltersResult> InvokeAsync(GetShardingAuditFiltersArgs args, InvokeOptions? opts = null)
        public static Output<GetShardingAuditFiltersResult> Invoke(GetShardingAuditFiltersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetShardingAuditFiltersResult> Invoke(GetShardingAuditFiltersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetShardingAuditFiltersResult> getShardingAuditFilters(GetShardingAuditFiltersArgs args, InvokeOptions options)
    public static Output<GetShardingAuditFiltersResult> getShardingAuditFilters(GetShardingAuditFiltersArgs args, InvokeOptions options)
    public static Output<GetShardingAuditFiltersResult> getShardingAuditFilters(GetShardingAuditFiltersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:mongodb/getShardingAuditFilters:getShardingAuditFilters
      arguments:
        # arguments dictionary
    data "alicloud_mongodb_get_sharding_audit_filters" "name" {
        # arguments
    }

    The following arguments are supported:

    DbInstanceId string
    The ID of the sharding cluster instance.
    OutputFile string
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    DbInstanceId string
    The ID of the sharding cluster instance.
    OutputFile string
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    db_instance_id string
    The ID of the sharding cluster instance.
    output_file string
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    dbInstanceId String
    The ID of the sharding cluster instance.
    outputFile String
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    dbInstanceId string
    The ID of the sharding cluster instance.
    outputFile string
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    db_instance_id str
    The ID of the sharding cluster instance.
    output_file str
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).
    dbInstanceId String
    The ID of the sharding cluster instance.
    outputFile String
    File name where to write the output of the data source invocation (when set, the file is created before the resource is applied).

    getShardingAuditFilters Result

    The following output properties are available:

    DbInstanceId string
    The ID of the sharding cluster instance.
    Filters List<Pulumi.AliCloud.MongoDB.Outputs.GetShardingAuditFiltersFilter>
    A list of Sharding Audit Filter. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    DbInstanceId string
    The ID of the sharding cluster instance.
    Filters []GetShardingAuditFiltersFilter
    A list of Sharding Audit Filter. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    db_instance_id string
    The ID of the sharding cluster instance.
    filters list(object)
    A list of Sharding Audit Filter. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    output_file string
    dbInstanceId String
    The ID of the sharding cluster instance.
    filters List<GetShardingAuditFiltersFilter>
    A list of Sharding Audit Filter. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String
    dbInstanceId string
    The ID of the sharding cluster instance.
    filters GetShardingAuditFiltersFilter[]
    A list of Sharding Audit Filter. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    outputFile string
    db_instance_id str
    The ID of the sharding cluster instance.
    filters Sequence[GetShardingAuditFiltersFilter]
    A list of Sharding Audit Filter. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    output_file str
    dbInstanceId String
    The ID of the sharding cluster instance.
    filters List<Property Map>
    A list of Sharding Audit Filter. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String

    Supporting Types

    GetShardingAuditFiltersFilter

    AuditStatus string
    Audit state. Valid values: enable, disabled.
    DbInstanceId string
    The ID of the sharding cluster instance.
    Filter string
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    HotStoragePeriod int
    The hot storage duration of the audit log, in days.
    Id string
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    RegionId string
    The region ID of the sharding cluster instance.
    RoleType string
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    ServiceType string
    The edition of the audit log. Valid values: Standard, V2_Standard.
    StoragePeriod int
    Audit log retention duration, in days.
    AuditStatus string
    Audit state. Valid values: enable, disabled.
    DbInstanceId string
    The ID of the sharding cluster instance.
    Filter string
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    HotStoragePeriod int
    The hot storage duration of the audit log, in days.
    Id string
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    RegionId string
    The region ID of the sharding cluster instance.
    RoleType string
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    ServiceType string
    The edition of the audit log. Valid values: Standard, V2_Standard.
    StoragePeriod int
    Audit log retention duration, in days.
    audit_status string
    Audit state. Valid values: enable, disabled.
    db_instance_id string
    The ID of the sharding cluster instance.
    filter string
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    hot_storage_period number
    The hot storage duration of the audit log, in days.
    id string
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    region_id string
    The region ID of the sharding cluster instance.
    role_type string
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    service_type string
    The edition of the audit log. Valid values: Standard, V2_Standard.
    storage_period number
    Audit log retention duration, in days.
    auditStatus String
    Audit state. Valid values: enable, disabled.
    dbInstanceId String
    The ID of the sharding cluster instance.
    filter String
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    hotStoragePeriod Integer
    The hot storage duration of the audit log, in days.
    id String
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    regionId String
    The region ID of the sharding cluster instance.
    roleType String
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    serviceType String
    The edition of the audit log. Valid values: Standard, V2_Standard.
    storagePeriod Integer
    Audit log retention duration, in days.
    auditStatus string
    Audit state. Valid values: enable, disabled.
    dbInstanceId string
    The ID of the sharding cluster instance.
    filter string
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    hotStoragePeriod number
    The hot storage duration of the audit log, in days.
    id string
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    regionId string
    The region ID of the sharding cluster instance.
    roleType string
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    serviceType string
    The edition of the audit log. Valid values: Standard, V2_Standard.
    storagePeriod number
    Audit log retention duration, in days.
    audit_status str
    Audit state. Valid values: enable, disabled.
    db_instance_id str
    The ID of the sharding cluster instance.
    filter str
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    hot_storage_period int
    The hot storage duration of the audit log, in days.
    id str
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    region_id str
    The region ID of the sharding cluster instance.
    role_type str
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    service_type str
    The edition of the audit log. Valid values: Standard, V2_Standard.
    storage_period int
    Audit log retention duration, in days.
    auditStatus String
    Audit state. Valid values: enable, disabled.
    dbInstanceId String
    The ID of the sharding cluster instance.
    filter String
    The type of logs collected by the audit log feature of the instance. When every node role shares the same filter, this is that common value (for example admin,slow); otherwise it is the API's per-role merged view (for example mongos@admin,slow-db@admin).
    hotStoragePeriod Number
    The hot storage duration of the audit log, in days.
    id String
    The ID of the Sharding Audit Filter, same as dbInstanceId.
    regionId String
    The region ID of the sharding cluster instance.
    roleType String
    The node role scope of the returned filter. The data source reads every node role at once, so the API returns its merged-view marker logic rather than a single role.
    serviceType String
    The edition of the audit log. Valid values: Standard, V2_Standard.
    storagePeriod Number
    Audit log retention duration, in days.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.108.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial