1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cdn
  5. getRealTimeLogDeliveries
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cdn.getRealTimeLogDeliveries

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user.

    NOTE: Available in v1.134.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.cdn.getRealTimeLogDeliveries({
        domain: "example_value",
    });
    export const cdnRealTimeLogDelivery1 = example.then(example => example.deliveries?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cdn.get_real_time_log_deliveries(domain="example_value")
    pulumi.export("cdnRealTimeLogDelivery1", example.deliveries[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := cdn.GetRealTimeLogDeliveries(ctx, &cdn.GetRealTimeLogDeliveriesArgs{
    			Domain: "example_value",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cdnRealTimeLogDelivery1", example.Deliveries[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Cdn.GetRealTimeLogDeliveries.Invoke(new()
        {
            Domain = "example_value",
        });
    
        return new Dictionary<string, object?>
        {
            ["cdnRealTimeLogDelivery1"] = example.Apply(getRealTimeLogDeliveriesResult => getRealTimeLogDeliveriesResult.Deliveries[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cdn.CdnFunctions;
    import com.pulumi.alicloud.cdn.inputs.GetRealTimeLogDeliveriesArgs;
    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 example = CdnFunctions.getRealTimeLogDeliveries(GetRealTimeLogDeliveriesArgs.builder()
                .domain("example_value")
                .build());
    
            ctx.export("cdnRealTimeLogDelivery1", example.applyValue(getRealTimeLogDeliveriesResult -> getRealTimeLogDeliveriesResult.deliveries()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:cdn:getRealTimeLogDeliveries
          Arguments:
            domain: example_value
    outputs:
      cdnRealTimeLogDelivery1: ${example.deliveries[0].id}
    

    Using getRealTimeLogDeliveries

    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 getRealTimeLogDeliveries(args: GetRealTimeLogDeliveriesArgs, opts?: InvokeOptions): Promise<GetRealTimeLogDeliveriesResult>
    function getRealTimeLogDeliveriesOutput(args: GetRealTimeLogDeliveriesOutputArgs, opts?: InvokeOptions): Output<GetRealTimeLogDeliveriesResult>
    def get_real_time_log_deliveries(domain: Optional[str] = None,
                                     output_file: Optional[str] = None,
                                     status: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetRealTimeLogDeliveriesResult
    def get_real_time_log_deliveries_output(domain: Optional[pulumi.Input[str]] = None,
                                     output_file: Optional[pulumi.Input[str]] = None,
                                     status: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetRealTimeLogDeliveriesResult]
    func GetRealTimeLogDeliveries(ctx *Context, args *GetRealTimeLogDeliveriesArgs, opts ...InvokeOption) (*GetRealTimeLogDeliveriesResult, error)
    func GetRealTimeLogDeliveriesOutput(ctx *Context, args *GetRealTimeLogDeliveriesOutputArgs, opts ...InvokeOption) GetRealTimeLogDeliveriesResultOutput

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

    public static class GetRealTimeLogDeliveries 
    {
        public static Task<GetRealTimeLogDeliveriesResult> InvokeAsync(GetRealTimeLogDeliveriesArgs args, InvokeOptions? opts = null)
        public static Output<GetRealTimeLogDeliveriesResult> Invoke(GetRealTimeLogDeliveriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRealTimeLogDeliveriesResult> getRealTimeLogDeliveries(GetRealTimeLogDeliveriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    Domain string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain string
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain str
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the real-time log delivery feature. Valid Values: online and offline.

    getRealTimeLogDeliveries Result

    The following output properties are available:

    Deliveries List<Pulumi.AliCloud.Cdn.Outputs.GetRealTimeLogDeliveriesDelivery>
    Domain string
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    Status string
    Deliveries []GetRealTimeLogDeliveriesDelivery
    Domain string
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    Status string
    deliveries List<GetRealTimeLogDeliveriesDelivery>
    domain String
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String
    status String
    deliveries GetRealTimeLogDeliveriesDelivery[]
    domain string
    id string
    The provider-assigned unique ID for this managed resource.
    outputFile string
    status string
    deliveries Sequence[GetRealTimeLogDeliveriesDelivery]
    domain str
    id str
    The provider-assigned unique ID for this managed resource.
    output_file str
    status str
    deliveries List<Property Map>
    domain String
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String
    status String

    Supporting Types

    GetRealTimeLogDeliveriesDelivery

    Domain string
    Real-Time Log Service Domain.
    Id string
    The ID of the Real Time Log Delivery.
    Logstore string
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    Project string
    The name of the Log Service project that is used for real-time log delivery.
    SlsRegion string
    The region where the Log Service project is deployed.
    Status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    Domain string
    Real-Time Log Service Domain.
    Id string
    The ID of the Real Time Log Delivery.
    Logstore string
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    Project string
    The name of the Log Service project that is used for real-time log delivery.
    SlsRegion string
    The region where the Log Service project is deployed.
    Status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain String
    Real-Time Log Service Domain.
    id String
    The ID of the Real Time Log Delivery.
    logstore String
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    project String
    The name of the Log Service project that is used for real-time log delivery.
    slsRegion String
    The region where the Log Service project is deployed.
    status String
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain string
    Real-Time Log Service Domain.
    id string
    The ID of the Real Time Log Delivery.
    logstore string
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    project string
    The name of the Log Service project that is used for real-time log delivery.
    slsRegion string
    The region where the Log Service project is deployed.
    status string
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain str
    Real-Time Log Service Domain.
    id str
    The ID of the Real Time Log Delivery.
    logstore str
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    project str
    The name of the Log Service project that is used for real-time log delivery.
    sls_region str
    The region where the Log Service project is deployed.
    status str
    The status of the real-time log delivery feature. Valid Values: online and offline.
    domain String
    Real-Time Log Service Domain.
    id String
    The ID of the Real Time Log Delivery.
    logstore String
    The name of the Logstore that collects log data from Alibaba Cloud Content Delivery Network (CDN) in real time.
    project String
    The name of the Log Service project that is used for real-time log delivery.
    slsRegion String
    The region where the Log Service project is deployed.
    status String
    The status of the real-time log delivery feature. Valid Values: online and offline.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi