GetAuditing
mongodbatlas..Auditing describes a Auditing.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testMongodbatlasAuditing = new mongodbatlas.Auditing("test", {
auditAuthorizationSuccess: false,
auditFilter: "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
enabled: true,
projectId: "<project-id>",
});
const testAuditing = testMongodbatlasAuditing.id.apply(id => mongodbatlas.getAuditing({
projectId: id,
}, { async: true }));Using GetAuditing
function getAuditing(args: GetAuditingArgs, opts?: InvokeOptions): Promise<GetAuditingResult>function get_auditing(project_id=None, opts=None)func LookupAuditing(ctx *Context, args *LookupAuditingArgs, opts ...InvokeOption) (*LookupAuditingResult, error)Note: This function is named
LookupAuditingin the Go SDK.
public static class GetAuditing {
public static Task<GetAuditingResult> InvokeAsync(GetAuditingArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- project_
id str The unique ID for the project to create the database user.
GetAuditing Result
The following output properties are available:
- bool
JSON-formatted audit filter used by the project
- Audit
Filter string Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess
- Configuration
Type string Denotes the configuration method for the audit filter. Possible values are: NONE - auditing not configured for the project.m FILTER_BUILDER - auditing configured via Atlas UI filter builderm FILTER_JSON - auditing configured via Atlas custom filter or API.
- Enabled bool
Denotes whether or not the project associated with the {GROUP-ID} has database auditing enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string
- bool
JSON-formatted audit filter used by the project
- Audit
Filter string Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess
- Configuration
Type string Denotes the configuration method for the audit filter. Possible values are: NONE - auditing not configured for the project.m FILTER_BUILDER - auditing configured via Atlas UI filter builderm FILTER_JSON - auditing configured via Atlas custom filter or API.
- Enabled bool
Denotes whether or not the project associated with the {GROUP-ID} has database auditing enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string
- boolean
JSON-formatted audit filter used by the project
- audit
Filter string Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess
- configuration
Type string Denotes the configuration method for the audit filter. Possible values are: NONE - auditing not configured for the project.m FILTER_BUILDER - auditing configured via Atlas UI filter builderm FILTER_JSON - auditing configured via Atlas custom filter or API.
- enabled boolean
Denotes whether or not the project associated with the {GROUP-ID} has database auditing enabled.
- id string
The provider-assigned unique ID for this managed resource.
- project
Id string
- bool
JSON-formatted audit filter used by the project
- audit_
filter str Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess
- configuration_
type str Denotes the configuration method for the audit filter. Possible values are: NONE - auditing not configured for the project.m FILTER_BUILDER - auditing configured via Atlas UI filter builderm FILTER_JSON - auditing configured via Atlas custom filter or API.
- enabled bool
Denotes whether or not the project associated with the {GROUP-ID} has database auditing enabled.
- id str
The provider-assigned unique ID for this managed resource.
- project_
id str
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.