1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getAudits
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getAudits

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of audits.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const audits = tencentcloud.getAudits({
        name: "test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    audits = tencentcloud.get_audits(name="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetAudits(ctx, &tencentcloud.GetAuditsArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var audits = Tencentcloud.GetAudits.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAuditsArgs;
    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 audits = TencentcloudFunctions.getAudits(GetAuditsArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      audits:
        fn::invoke:
          function: tencentcloud:getAudits
          arguments:
            name: test
    

    Using getAudits

    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 getAudits(args: GetAuditsArgs, opts?: InvokeOptions): Promise<GetAuditsResult>
    function getAuditsOutput(args: GetAuditsOutputArgs, opts?: InvokeOptions): Output<GetAuditsResult>
    def get_audits(id: Optional[str] = None,
                   name: Optional[str] = None,
                   result_output_file: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAuditsResult
    def get_audits_output(id: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   result_output_file: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAuditsResult]
    func GetAudits(ctx *Context, args *GetAuditsArgs, opts ...InvokeOption) (*GetAuditsResult, error)
    func GetAuditsOutput(ctx *Context, args *GetAuditsOutputArgs, opts ...InvokeOption) GetAuditsResultOutput

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

    public static class GetAudits 
    {
        public static Task<GetAuditsResult> InvokeAsync(GetAuditsArgs args, InvokeOptions? opts = null)
        public static Output<GetAuditsResult> Invoke(GetAuditsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAuditsResult> getAudits(GetAuditsArgs args, InvokeOptions options)
    public static Output<GetAuditsResult> getAudits(GetAuditsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getAudits:getAudits
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the audit.
    Name string
    Name of the audits.
    ResultOutputFile string
    Used to save results.
    Id string
    ID of the audit.
    Name string
    Name of the audits.
    ResultOutputFile string
    Used to save results.
    id String
    ID of the audit.
    name String
    Name of the audits.
    resultOutputFile String
    Used to save results.
    id string
    ID of the audit.
    name string
    Name of the audits.
    resultOutputFile string
    Used to save results.
    id str
    ID of the audit.
    name str
    Name of the audits.
    result_output_file str
    Used to save results.
    id String
    ID of the audit.
    name String
    Name of the audits.
    resultOutputFile String
    Used to save results.

    getAudits Result

    The following output properties are available:

    AuditLists List<GetAuditsAuditList>
    Information list of the dedicated audits.
    Id string
    ID of the audit.
    Name string
    Name of the audit.
    ResultOutputFile string
    AuditLists []GetAuditsAuditList
    Information list of the dedicated audits.
    Id string
    ID of the audit.
    Name string
    Name of the audit.
    ResultOutputFile string
    auditLists List<GetAuditsAuditList>
    Information list of the dedicated audits.
    id String
    ID of the audit.
    name String
    Name of the audit.
    resultOutputFile String
    auditLists GetAuditsAuditList[]
    Information list of the dedicated audits.
    id string
    ID of the audit.
    name string
    Name of the audit.
    resultOutputFile string
    audit_lists Sequence[GetAuditsAuditList]
    Information list of the dedicated audits.
    id str
    ID of the audit.
    name str
    Name of the audit.
    result_output_file str
    auditLists List<Property Map>
    Information list of the dedicated audits.
    id String
    ID of the audit.
    name String
    Name of the audit.
    resultOutputFile String

    Supporting Types

    GetAuditsAuditList

    AuditSwitch bool
    Indicate whether audit start logging or not.
    CosBucket string
    Cos bucket name where audit save logs.
    Id string
    ID of the audit.
    LogFilePrefix string
    Prefix of the log file of the audit.
    Name string
    Name of the audits.
    AuditSwitch bool
    Indicate whether audit start logging or not.
    CosBucket string
    Cos bucket name where audit save logs.
    Id string
    ID of the audit.
    LogFilePrefix string
    Prefix of the log file of the audit.
    Name string
    Name of the audits.
    auditSwitch Boolean
    Indicate whether audit start logging or not.
    cosBucket String
    Cos bucket name where audit save logs.
    id String
    ID of the audit.
    logFilePrefix String
    Prefix of the log file of the audit.
    name String
    Name of the audits.
    auditSwitch boolean
    Indicate whether audit start logging or not.
    cosBucket string
    Cos bucket name where audit save logs.
    id string
    ID of the audit.
    logFilePrefix string
    Prefix of the log file of the audit.
    name string
    Name of the audits.
    audit_switch bool
    Indicate whether audit start logging or not.
    cos_bucket str
    Cos bucket name where audit save logs.
    id str
    ID of the audit.
    log_file_prefix str
    Prefix of the log file of the audit.
    name str
    Name of the audits.
    auditSwitch Boolean
    Indicate whether audit start logging or not.
    cosBucket String
    Cos bucket name where audit save logs.
    id String
    ID of the audit.
    logFilePrefix String
    Prefix of the log file of the audit.
    name String
    Name of the audits.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack