tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getAudits
Explore with Pulumi AI
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.
- Result
Output stringFile - Used to save results.
- Id string
- ID of the audit.
- Name string
- Name of the audits.
- Result
Output stringFile - Used to save results.
- id String
- ID of the audit.
- name String
- Name of the audits.
- result
Output StringFile - Used to save results.
- id string
- ID of the audit.
- name string
- Name of the audits.
- result
Output stringFile - Used to save results.
- id str
- ID of the audit.
- name str
- Name of the audits.
- result_
output_ strfile - Used to save results.
- id String
- ID of the audit.
- name String
- Name of the audits.
- result
Output StringFile - Used to save results.
getAudits Result
The following output properties are available:
- Audit
Lists List<GetAudits Audit List> - Information list of the dedicated audits.
- Id string
- ID of the audit.
- Name string
- Name of the audit.
- Result
Output stringFile
- Audit
Lists []GetAudits Audit List - Information list of the dedicated audits.
- Id string
- ID of the audit.
- Name string
- Name of the audit.
- Result
Output stringFile
- audit
Lists List<GetAudits Audit List> - Information list of the dedicated audits.
- id String
- ID of the audit.
- name String
- Name of the audit.
- result
Output StringFile
- audit
Lists GetAudits Audit List[] - Information list of the dedicated audits.
- id string
- ID of the audit.
- name string
- Name of the audit.
- result
Output stringFile
- audit_
lists Sequence[GetAudits Audit List] - Information list of the dedicated audits.
- id str
- ID of the audit.
- name str
- Name of the audit.
- result_
output_ strfile
- audit
Lists List<Property Map> - Information list of the dedicated audits.
- id String
- ID of the audit.
- name String
- Name of the audit.
- result
Output StringFile
Supporting Types
GetAuditsAuditList
- Audit
Switch bool - Indicate whether audit start logging or not.
- Cos
Bucket string - Cos bucket name where audit save logs.
- Id string
- ID of the audit.
- Log
File stringPrefix - 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 string - Cos bucket name where audit save logs.
- Id string
- ID of the audit.
- Log
File stringPrefix - Prefix of the log file of the audit.
- Name string
- Name of the audits.
- audit
Switch Boolean - Indicate whether audit start logging or not.
- cos
Bucket String - Cos bucket name where audit save logs.
- id String
- ID of the audit.
- log
File StringPrefix - Prefix of the log file of the audit.
- name String
- Name of the audits.
- audit
Switch boolean - Indicate whether audit start logging or not.
- cos
Bucket string - Cos bucket name where audit save logs.
- id string
- ID of the audit.
- log
File stringPrefix - 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_ strprefix - Prefix of the log file of the audit.
- name str
- Name of the audits.
- audit
Switch Boolean - Indicate whether audit start logging or not.
- cos
Bucket String - Cos bucket name where audit save logs.
- id String
- ID of the audit.
- log
File StringPrefix - 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack