Google Cloud (GCP) Classic

Pulumi Official
Package maintained by Pulumi
v6.32.0 published on Wednesday, Jul 20, 2022 by Pulumi

getBackendBucket

Get information about a BackendBucket.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var my_backend_bucket = Output.Create(Gcp.Compute.GetBackendBucket.InvokeAsync(new Gcp.Compute.GetBackendBucketArgs
        {
            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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var my-backend-bucket = Output.of(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 = pulumi.output(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>
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
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>
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[]
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
bucket_name str
cdn_policies Sequence[GetBackendBucketCdnPolicy]
creation_timestamp str
custom_response_headers Sequence[str]
description str
edge_security_policy str
enable_cdn bool
id str

The provider-assigned unique ID for this managed resource.

name str
self_link str
project str
bucketName String
cdnPolicies List<Property Map>
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

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
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.