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

tencentcloud.getTcrWebhookTriggerLogs

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 tencentcloud.getTcrWebhookTriggerLogs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const myLogs = tencentcloud.getTcrWebhookTriggerLogs({
        registryId: local.tcr_id,
        namespace: _var.tcr_namespace,
        triggerId: _var.trigger_id,
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    my_logs = tencentcloud.get_tcr_webhook_trigger_logs(registry_id=local["tcr_id"],
        namespace=var["tcr_namespace"],
        trigger_id=var["trigger_id"],
        tags={
            "createdBy": "terraform",
        })
    
    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.GetTcrWebhookTriggerLogs(ctx, &tencentcloud.GetTcrWebhookTriggerLogsArgs{
    			RegistryId: local.Tcr_id,
    			Namespace:  _var.Tcr_namespace,
    			TriggerId:  _var.Trigger_id,
    			Tags: map[string]interface{}{
    				"createdBy": "terraform",
    			},
    		}, 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 myLogs = Tencentcloud.GetTcrWebhookTriggerLogs.Invoke(new()
        {
            RegistryId = local.Tcr_id,
            Namespace = @var.Tcr_namespace,
            TriggerId = @var.Trigger_id,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    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.GetTcrWebhookTriggerLogsArgs;
    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 myLogs = TencentcloudFunctions.getTcrWebhookTriggerLogs(GetTcrWebhookTriggerLogsArgs.builder()
                .registryId(local.tcr_id())
                .namespace(var_.tcr_namespace())
                .triggerId(var_.trigger_id())
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    variables:
      myLogs:
        fn::invoke:
          function: tencentcloud:getTcrWebhookTriggerLogs
          arguments:
            registryId: ${local.tcr_id}
            namespace: ${var.tcr_namespace}
            triggerId: ${var.trigger_id}
            tags:
              createdBy: terraform
    

    Using getTcrWebhookTriggerLogs

    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 getTcrWebhookTriggerLogs(args: GetTcrWebhookTriggerLogsArgs, opts?: InvokeOptions): Promise<GetTcrWebhookTriggerLogsResult>
    function getTcrWebhookTriggerLogsOutput(args: GetTcrWebhookTriggerLogsOutputArgs, opts?: InvokeOptions): Output<GetTcrWebhookTriggerLogsResult>
    def get_tcr_webhook_trigger_logs(id: Optional[str] = None,
                                     namespace: Optional[str] = None,
                                     registry_id: Optional[str] = None,
                                     result_output_file: Optional[str] = None,
                                     tags: Optional[Mapping[str, str]] = None,
                                     trigger_id: Optional[float] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetTcrWebhookTriggerLogsResult
    def get_tcr_webhook_trigger_logs_output(id: Optional[pulumi.Input[str]] = None,
                                     namespace: Optional[pulumi.Input[str]] = None,
                                     registry_id: Optional[pulumi.Input[str]] = None,
                                     result_output_file: Optional[pulumi.Input[str]] = None,
                                     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                     trigger_id: Optional[pulumi.Input[float]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetTcrWebhookTriggerLogsResult]
    func GetTcrWebhookTriggerLogs(ctx *Context, args *GetTcrWebhookTriggerLogsArgs, opts ...InvokeOption) (*GetTcrWebhookTriggerLogsResult, error)
    func GetTcrWebhookTriggerLogsOutput(ctx *Context, args *GetTcrWebhookTriggerLogsOutputArgs, opts ...InvokeOption) GetTcrWebhookTriggerLogsResultOutput

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

    public static class GetTcrWebhookTriggerLogs 
    {
        public static Task<GetTcrWebhookTriggerLogsResult> InvokeAsync(GetTcrWebhookTriggerLogsArgs args, InvokeOptions? opts = null)
        public static Output<GetTcrWebhookTriggerLogsResult> Invoke(GetTcrWebhookTriggerLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTcrWebhookTriggerLogsResult> getTcrWebhookTriggerLogs(GetTcrWebhookTriggerLogsArgs args, InvokeOptions options)
    public static Output<GetTcrWebhookTriggerLogsResult> getTcrWebhookTriggerLogs(GetTcrWebhookTriggerLogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTcrWebhookTriggerLogs:getTcrWebhookTriggerLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    namespace.
    RegistryId string
    instance Id.
    TriggerId double
    trigger id.
    Id string
    log id.
    ResultOutputFile string
    Used to save results.
    Tags Dictionary<string, string>
    Tag description list.
    Namespace string
    namespace.
    RegistryId string
    instance Id.
    TriggerId float64
    trigger id.
    Id string
    log id.
    ResultOutputFile string
    Used to save results.
    Tags map[string]string
    Tag description list.
    namespace String
    namespace.
    registryId String
    instance Id.
    triggerId Double
    trigger id.
    id String
    log id.
    resultOutputFile String
    Used to save results.
    tags Map<String,String>
    Tag description list.
    namespace string
    namespace.
    registryId string
    instance Id.
    triggerId number
    trigger id.
    id string
    log id.
    resultOutputFile string
    Used to save results.
    tags {[key: string]: string}
    Tag description list.
    namespace str
    namespace.
    registry_id str
    instance Id.
    trigger_id float
    trigger id.
    id str
    log id.
    result_output_file str
    Used to save results.
    tags Mapping[str, str]
    Tag description list.
    namespace String
    namespace.
    registryId String
    instance Id.
    triggerId Number
    trigger id.
    id String
    log id.
    resultOutputFile String
    Used to save results.
    tags Map<String>
    Tag description list.

    getTcrWebhookTriggerLogs Result

    The following output properties are available:

    Id string
    log id.
    Logs List<GetTcrWebhookTriggerLogsLog>
    log list.
    Namespace string
    RegistryId string
    TriggerId double
    trigger Id.
    ResultOutputFile string
    Tags Dictionary<string, string>
    Id string
    log id.
    Logs []GetTcrWebhookTriggerLogsLog
    log list.
    Namespace string
    RegistryId string
    TriggerId float64
    trigger Id.
    ResultOutputFile string
    Tags map[string]string
    id String
    log id.
    logs List<GetTcrWebhookTriggerLogsLog>
    log list.
    namespace String
    registryId String
    triggerId Double
    trigger Id.
    resultOutputFile String
    tags Map<String,String>
    id string
    log id.
    logs GetTcrWebhookTriggerLogsLog[]
    log list.
    namespace string
    registryId string
    triggerId number
    trigger Id.
    resultOutputFile string
    tags {[key: string]: string}
    id str
    log id.
    logs Sequence[GetTcrWebhookTriggerLogsLog]
    log list.
    namespace str
    registry_id str
    trigger_id float
    trigger Id.
    result_output_file str
    tags Mapping[str, str]
    id String
    log id.
    logs List<Property Map>
    log list.
    namespace String
    registryId String
    triggerId Number
    trigger Id.
    resultOutputFile String
    tags Map<String>

    Supporting Types

    GetTcrWebhookTriggerLogsLog

    CreationTime string
    creation time.
    Detail string
    webhook trigger detail.
    EventType string
    event type.
    Id double
    log id.
    NotifyType string
    notification type.
    Status string
    status.
    TriggerId double
    trigger id.
    UpdateTime string
    update time.
    CreationTime string
    creation time.
    Detail string
    webhook trigger detail.
    EventType string
    event type.
    Id float64
    log id.
    NotifyType string
    notification type.
    Status string
    status.
    TriggerId float64
    trigger id.
    UpdateTime string
    update time.
    creationTime String
    creation time.
    detail String
    webhook trigger detail.
    eventType String
    event type.
    id Double
    log id.
    notifyType String
    notification type.
    status String
    status.
    triggerId Double
    trigger id.
    updateTime String
    update time.
    creationTime string
    creation time.
    detail string
    webhook trigger detail.
    eventType string
    event type.
    id number
    log id.
    notifyType string
    notification type.
    status string
    status.
    triggerId number
    trigger id.
    updateTime string
    update time.
    creation_time str
    creation time.
    detail str
    webhook trigger detail.
    event_type str
    event type.
    id float
    log id.
    notify_type str
    notification type.
    status str
    status.
    trigger_id float
    trigger id.
    update_time str
    update time.
    creationTime String
    creation time.
    detail String
    webhook trigger detail.
    eventType String
    event type.
    id Number
    log id.
    notifyType String
    notification type.
    status String
    status.
    triggerId Number
    trigger id.
    updateTime String
    update time.

    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