gcp.compute.getBackendBucket

Explore with Pulumi AI

Get information about a BackendBucket.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new()
    {
        Name = "my-backend",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.LookupBackendBucket(ctx, &compute.LookupBackendBucketArgs{
			Name: "my-backend",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
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 my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
            .name("my-backend")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my-backend-bucket = gcp.compute.getBackendBucket({
    name: "my-backend",
});
variables:
  my-backend-bucket:
    fn::invoke:
      Function: gcp:compute:getBackendBucket
      Arguments:
        name: my-backend

Using getBackendBucket

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 getBackendBucket(args: GetBackendBucketArgs, opts?: InvokeOptions): Promise<GetBackendBucketResult>
function getBackendBucketOutput(args: GetBackendBucketOutputArgs, opts?: InvokeOptions): Output<GetBackendBucketResult>
def get_backend_bucket(name: Optional[str] = None,
                       project: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetBackendBucketResult
def get_backend_bucket_output(name: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetBackendBucketResult]
func LookupBackendBucket(ctx *Context, args *LookupBackendBucketArgs, opts ...InvokeOption) (*LookupBackendBucketResult, error)
func LookupBackendBucketOutput(ctx *Context, args *LookupBackendBucketOutputArgs, opts ...InvokeOption) LookupBackendBucketResultOutput

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

public static class GetBackendBucket 
{
    public static Task<GetBackendBucketResult> InvokeAsync(GetBackendBucketArgs args, InvokeOptions? opts = null)
    public static Output<GetBackendBucketResult> Invoke(GetBackendBucketInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackendBucketResult> getBackendBucket(GetBackendBucketArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gcp:compute/getBackendBucket:getBackendBucket
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

Name of the resource.


Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Name string

Name of the resource.


Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name String

Name of the resource.


project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name string

Name of the resource.


project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name str

Name of the resource.


project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name String

Name of the resource.


project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

getBackendBucket Result

The following output properties are available:

BucketName string
CdnPolicies List<GetBackendBucketCdnPolicy>
CompressionMode string
CreationTimestamp string
CustomResponseHeaders List<string>
Description string
EdgeSecurityPolicy string
EnableCdn bool
Id string

The provider-assigned unique ID for this managed resource.

Name string
SelfLink string
Project string
BucketName string
CdnPolicies []GetBackendBucketCdnPolicy
CompressionMode string
CreationTimestamp string
CustomResponseHeaders []string
Description string
EdgeSecurityPolicy string
EnableCdn bool
Id string

The provider-assigned unique ID for this managed resource.

Name string
SelfLink string
Project string
bucketName String
cdnPolicies List<GetBackendBucketCdnPolicy>
compressionMode String
creationTimestamp String
customResponseHeaders List<String>
description String
edgeSecurityPolicy String
enableCdn Boolean
id String

The provider-assigned unique ID for this managed resource.

name String
selfLink String
project String
bucketName string
cdnPolicies GetBackendBucketCdnPolicy[]
compressionMode string
creationTimestamp string
customResponseHeaders string[]
description string
edgeSecurityPolicy string
enableCdn boolean
id string

The provider-assigned unique ID for this managed resource.

name string
selfLink string
project string
bucketName String
cdnPolicies List<Property Map>
compressionMode String
creationTimestamp String
customResponseHeaders List<String>
description String
edgeSecurityPolicy String
enableCdn Boolean
id String

The provider-assigned unique ID for this managed resource.

name String
selfLink String
project String

Supporting Types

GetBackendBucketCdnPolicy

GetBackendBucketCdnPolicyBypassCacheOnRequestHeader

HeaderName string
HeaderName string
headerName String
headerName string
headerName String

GetBackendBucketCdnPolicyCacheKeyPolicy

IncludeHttpHeaders List<string>
QueryStringWhitelists List<string>
includeHttpHeaders List<String>
queryStringWhitelists List<String>
includeHttpHeaders List<String>
queryStringWhitelists List<String>

GetBackendBucketCdnPolicyNegativeCachingPolicy

Code int
Ttl int
Code int
Ttl int
code Integer
ttl Integer
code number
ttl number
code int
ttl int
code Number
ttl Number

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.