Viewing docs for Google Cloud v9.24.0
published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Viewing docs for Google Cloud v9.24.0
published on Friday, May 22, 2026 by Pulumi
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 dictionarydata "gcp_logging_getlogview" "name" {
# arguments
}The following arguments are supported:
getLogView Result
The following output properties are available:
- 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
- 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
- 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
- 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
- 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 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
- 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
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.24.0
published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi