Get started with Pulumi in a free one hour introductory workshop. Register Now

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>
def get_auditing(project_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetAuditingResult
func LookupAuditing(ctx *Context, args *LookupAuditingArgs, opts ...InvokeOption) (*LookupAuditingResult, error)

Note: This function is named LookupAuditing in the Go SDK.

public static class GetAuditing {
    public static Task<GetAuditingResult> InvokeAsync(GetAuditingArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ProjectId string

The unique ID for the project to create the database user.

ProjectId string

The unique ID for the project to create the database user.

projectId string

The unique ID for the project to create the database user.

project_id str

The unique ID for the project to create the database user.

GetAuditing Result

The following output properties are available:

AuditAuthorizationSuccess bool

JSON-formatted audit filter used by the project

AuditFilter string

Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess

ConfigurationType 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.

ProjectId string
AuditAuthorizationSuccess bool

JSON-formatted audit filter used by the project

AuditFilter string

Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess

ConfigurationType 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.

ProjectId string
auditAuthorizationSuccess boolean

JSON-formatted audit filter used by the project

auditFilter string

Indicates whether the auditing system captures successful authentication attempts for audit filters using the “atype” : “authCheck” auditing event. For more information, see auditAuthorizationSuccess

configurationType 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.

projectId string
audit_authorization_success 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 mongodbatlas Terraform Provider.