1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. logging
  6. getLogView
Viewing docs for Google Cloud v9.24.0
published on Friday, May 22, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.24.0
published on Friday, May 22, 2026 by Pulumi

    Get information about a Google Cloud Logging Log View. For more information, see the official documentation and API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = gcp.logging.getLogView({
        parent: "projects/my-project",
        location: "global",
        bucket: "_Default",
        name: "my-view",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.logging.get_log_view(parent="projects/my-project",
        location="global",
        bucket="_Default",
        name="my-view")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/logging"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := logging.LookupLogView(ctx, &logging.LookupLogViewArgs{
    			Parent:   "projects/my-project",
    			Location: "global",
    			Bucket:   "_Default",
    			Name:     "my-view",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Gcp.Logging.GetLogView.Invoke(new()
        {
            Parent = "projects/my-project",
            Location = "global",
            Bucket = "_Default",
            Name = "my-view",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.logging.LoggingFunctions;
    import com.pulumi.gcp.logging.inputs.GetLogViewArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 default = LoggingFunctions.getLogView(GetLogViewArgs.builder()
                .parent("projects/my-project")
                .location("global")
                .bucket("_Default")
                .name("my-view")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: gcp:logging:getLogView
          arguments:
            parent: projects/my-project
            location: global
            bucket: _Default
            name: my-view
    
    Example coming soon!
    

    Using getLogView

    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 getLogView(args: GetLogViewArgs, opts?: InvokeOptions): Promise<GetLogViewResult>
    function getLogViewOutput(args: GetLogViewOutputArgs, opts?: InvokeOptions): Output<GetLogViewResult>
    def get_log_view(bucket: Optional[str] = None,
                     location: Optional[str] = None,
                     name: Optional[str] = None,
                     parent: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLogViewResult
    def get_log_view_output(bucket: pulumi.Input[Optional[str]] = None,
                     location: pulumi.Input[Optional[str]] = None,
                     name: pulumi.Input[Optional[str]] = None,
                     parent: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLogViewResult]
    func LookupLogView(ctx *Context, args *LookupLogViewArgs, opts ...InvokeOption) (*LookupLogViewResult, error)
    func LookupLogViewOutput(ctx *Context, args *LookupLogViewOutputArgs, opts ...InvokeOption) LookupLogViewResultOutput

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

    public static class GetLogView 
    {
        public static Task<GetLogViewResult> InvokeAsync(GetLogViewArgs args, InvokeOptions? opts = null)
        public static Output<GetLogViewResult> Invoke(GetLogViewInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogViewResult> getLogView(GetLogViewArgs args, InvokeOptions options)
    public static Output<GetLogViewResult> getLogView(GetLogViewArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:logging/getLogView:getLogView
      arguments:
        # arguments dictionary
    data "gcp_logging_getlogview" "name" {
        # arguments
    }

    The following arguments are supported:

    Bucket string
    The bucket of the resource.
    Location string
    The location of the resource.
    Name string
    The resource name of the view.
    Parent string
    The parent of the resource.
    Bucket string
    The bucket of the resource.
    Location string
    The location of the resource.
    Name string
    The resource name of the view.
    Parent string
    The parent of the resource.
    bucket string
    The bucket of the resource.
    location string
    The location of the resource.
    name string
    The resource name of the view.
    parent string
    The parent of the resource.
    bucket String
    The bucket of the resource.
    location String
    The location of the resource.
    name String
    The resource name of the view.
    parent String
    The parent of the resource.
    bucket string
    The bucket of the resource.
    location string
    The location of the resource.
    name string
    The resource name of the view.
    parent string
    The parent of the resource.
    bucket str
    The bucket of the resource.
    location str
    The location of the resource.
    name str
    The resource name of the view.
    parent str
    The parent of the resource.
    bucket String
    The bucket of the resource.
    location String
    The location of the resource.
    name String
    The resource name of the view.
    parent String
    The parent of the resource.

    getLogView Result

    The following output properties are available:

    Bucket string
    CreateTime string
    DeletionPolicy string
    Description string
    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    Parent string
    UpdateTime string
    Bucket string
    CreateTime string
    DeletionPolicy string
    Description string
    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    Parent string
    UpdateTime string
    bucket string
    create_time string
    deletion_policy string
    description string
    filter string
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    parent string
    update_time string
    bucket String
    createTime String
    deletionPolicy String
    description String
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    parent String
    updateTime String
    bucket string
    createTime string
    deletionPolicy string
    description string
    filter string
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    parent string
    updateTime string
    bucket str
    create_time str
    deletion_policy str
    description str
    filter str
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    parent str
    update_time str
    bucket String
    createTime String
    deletionPolicy String
    description String
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    parent String
    updateTime String

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.24.0
    published on Friday, May 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial