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

tencentcloud.getDbbrainSecurityAuditLogDownloadUrls

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 dbbrain security_audit_log_download_urls

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const task = new tencentcloud.DbbrainSecurityAuditLogExportTask("task", {
        secAuditGroupId: "%s",
        startTime: "%s",
        endTime: "%s",
        product: "mysql",
        dangerLevels: [
            0,
            1,
            2,
        ],
    });
    const test = tencentcloud.getDbbrainSecurityAuditLogDownloadUrlsOutput({
        secAuditGroupId: "%s",
        asyncRequestId: task.asyncRequestId,
        product: "mysql",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    task = tencentcloud.DbbrainSecurityAuditLogExportTask("task",
        sec_audit_group_id="%s",
        start_time="%s",
        end_time="%s",
        product="mysql",
        danger_levels=[
            0,
            1,
            2,
        ])
    test = tencentcloud.get_dbbrain_security_audit_log_download_urls_output(sec_audit_group_id="%s",
        async_request_id=task.async_request_id,
        product="mysql")
    
    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 {
    		task, err := tencentcloud.NewDbbrainSecurityAuditLogExportTask(ctx, "task", &tencentcloud.DbbrainSecurityAuditLogExportTaskArgs{
    			SecAuditGroupId: pulumi.String("%s"),
    			StartTime:       pulumi.String("%s"),
    			EndTime:         pulumi.String("%s"),
    			Product:         pulumi.String("mysql"),
    			DangerLevels: pulumi.Float64Array{
    				pulumi.Float64(0),
    				pulumi.Float64(1),
    				pulumi.Float64(2),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetDbbrainSecurityAuditLogDownloadUrlsOutput(ctx, tencentcloud.GetDbbrainSecurityAuditLogDownloadUrlsOutputArgs{
    			SecAuditGroupId: pulumi.String("%s"),
    			AsyncRequestId:  task.AsyncRequestId,
    			Product:         pulumi.String("mysql"),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var task = new Tencentcloud.DbbrainSecurityAuditLogExportTask("task", new()
        {
            SecAuditGroupId = "%s",
            StartTime = "%s",
            EndTime = "%s",
            Product = "mysql",
            DangerLevels = new[]
            {
                0,
                1,
                2,
            },
        });
    
        var test = Tencentcloud.GetDbbrainSecurityAuditLogDownloadUrls.Invoke(new()
        {
            SecAuditGroupId = "%s",
            AsyncRequestId = task.AsyncRequestId,
            Product = "mysql",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DbbrainSecurityAuditLogExportTask;
    import com.pulumi.tencentcloud.DbbrainSecurityAuditLogExportTaskArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDbbrainSecurityAuditLogDownloadUrlsArgs;
    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) {
            var task = new DbbrainSecurityAuditLogExportTask("task", DbbrainSecurityAuditLogExportTaskArgs.builder()
                .secAuditGroupId("%s")
                .startTime("%s")
                .endTime("%s")
                .product("mysql")
                .dangerLevels(            
                    0,
                    1,
                    2)
                .build());
    
            final var test = TencentcloudFunctions.getDbbrainSecurityAuditLogDownloadUrls(GetDbbrainSecurityAuditLogDownloadUrlsArgs.builder()
                .secAuditGroupId("%s")
                .asyncRequestId(task.asyncRequestId())
                .product("mysql")
                .build());
    
        }
    }
    
    resources:
      task:
        type: tencentcloud:DbbrainSecurityAuditLogExportTask
        properties:
          secAuditGroupId: '%s'
          startTime: '%s'
          endTime: '%s'
          product: mysql
          dangerLevels:
            - 0
            - 1
            - 2
    variables:
      test:
        fn::invoke:
          function: tencentcloud:getDbbrainSecurityAuditLogDownloadUrls
          arguments:
            secAuditGroupId: '%s'
            asyncRequestId: ${task.asyncRequestId}
            product: mysql
    

    Using getDbbrainSecurityAuditLogDownloadUrls

    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 getDbbrainSecurityAuditLogDownloadUrls(args: GetDbbrainSecurityAuditLogDownloadUrlsArgs, opts?: InvokeOptions): Promise<GetDbbrainSecurityAuditLogDownloadUrlsResult>
    function getDbbrainSecurityAuditLogDownloadUrlsOutput(args: GetDbbrainSecurityAuditLogDownloadUrlsOutputArgs, opts?: InvokeOptions): Output<GetDbbrainSecurityAuditLogDownloadUrlsResult>
    def get_dbbrain_security_audit_log_download_urls(async_request_id: Optional[float] = None,
                                                     id: Optional[str] = None,
                                                     product: Optional[str] = None,
                                                     result_output_file: Optional[str] = None,
                                                     sec_audit_group_id: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetDbbrainSecurityAuditLogDownloadUrlsResult
    def get_dbbrain_security_audit_log_download_urls_output(async_request_id: Optional[pulumi.Input[float]] = None,
                                                     id: Optional[pulumi.Input[str]] = None,
                                                     product: Optional[pulumi.Input[str]] = None,
                                                     result_output_file: Optional[pulumi.Input[str]] = None,
                                                     sec_audit_group_id: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainSecurityAuditLogDownloadUrlsResult]
    func GetDbbrainSecurityAuditLogDownloadUrls(ctx *Context, args *GetDbbrainSecurityAuditLogDownloadUrlsArgs, opts ...InvokeOption) (*GetDbbrainSecurityAuditLogDownloadUrlsResult, error)
    func GetDbbrainSecurityAuditLogDownloadUrlsOutput(ctx *Context, args *GetDbbrainSecurityAuditLogDownloadUrlsOutputArgs, opts ...InvokeOption) GetDbbrainSecurityAuditLogDownloadUrlsResultOutput

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

    public static class GetDbbrainSecurityAuditLogDownloadUrls 
    {
        public static Task<GetDbbrainSecurityAuditLogDownloadUrlsResult> InvokeAsync(GetDbbrainSecurityAuditLogDownloadUrlsArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainSecurityAuditLogDownloadUrlsResult> Invoke(GetDbbrainSecurityAuditLogDownloadUrlsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainSecurityAuditLogDownloadUrlsResult> getDbbrainSecurityAuditLogDownloadUrls(GetDbbrainSecurityAuditLogDownloadUrlsArgs args, InvokeOptions options)
    public static Output<GetDbbrainSecurityAuditLogDownloadUrlsResult> getDbbrainSecurityAuditLogDownloadUrls(GetDbbrainSecurityAuditLogDownloadUrlsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainSecurityAuditLogDownloadUrls:getDbbrainSecurityAuditLogDownloadUrls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AsyncRequestId double
    Asynchronous task ID.
    Product string
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    SecAuditGroupId string
    Security audit group Id.
    Id string
    ResultOutputFile string
    Used to save results.
    AsyncRequestId float64
    Asynchronous task ID.
    Product string
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    SecAuditGroupId string
    Security audit group Id.
    Id string
    ResultOutputFile string
    Used to save results.
    asyncRequestId Double
    Asynchronous task ID.
    product String
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    secAuditGroupId String
    Security audit group Id.
    id String
    resultOutputFile String
    Used to save results.
    asyncRequestId number
    Asynchronous task ID.
    product string
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    secAuditGroupId string
    Security audit group Id.
    id string
    resultOutputFile string
    Used to save results.
    async_request_id float
    Asynchronous task ID.
    product str
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    sec_audit_group_id str
    Security audit group Id.
    id str
    result_output_file str
    Used to save results.
    asyncRequestId Number
    Asynchronous task ID.
    product String
    Service product type, supported values: mysql - ApsaraDB for MySQL.
    secAuditGroupId String
    Security audit group Id.
    id String
    resultOutputFile String
    Used to save results.

    getDbbrainSecurityAuditLogDownloadUrls Result

    The following output properties are available:

    AsyncRequestId double
    Id string
    Product string
    SecAuditGroupId string
    Urls List<string>
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    ResultOutputFile string
    AsyncRequestId float64
    Id string
    Product string
    SecAuditGroupId string
    Urls []string
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    ResultOutputFile string
    asyncRequestId Double
    id String
    product String
    secAuditGroupId String
    urls List<String>
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    resultOutputFile String
    asyncRequestId number
    id string
    product string
    secAuditGroupId string
    urls string[]
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    resultOutputFile string
    async_request_id float
    id str
    product str
    sec_audit_group_id str
    urls Sequence[str]
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    result_output_file str
    asyncRequestId Number
    id String
    product String
    secAuditGroupId String
    urls List<String>
    List of COS links to export results. When the result set is large, it may be divided into multiple urls for download.
    resultOutputFile String

    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