Google Cloud Classic v6.57.0, May 30 23
Google Cloud Classic v6.57.0, May 30 23
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:
getBackendBucket Result
The following output properties are available:
- Bucket
Name string - Cdn
Policies List<GetBackend Bucket Cdn Policy> - Compression
Mode string - Creation
Timestamp string - Custom
Response List<string>Headers - Description string
- Edge
Security stringPolicy - Enable
Cdn bool - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Self
Link string - Project string
- Bucket
Name string - Cdn
Policies []GetBackend Bucket Cdn Policy - Compression
Mode string - Creation
Timestamp string - Custom
Response []stringHeaders - Description string
- Edge
Security stringPolicy - Enable
Cdn bool - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Self
Link string - Project string
- bucket
Name String - cdn
Policies List<GetBackend Bucket Cdn Policy> - compression
Mode String - creation
Timestamp String - custom
Response List<String>Headers - description String
- edge
Security StringPolicy - enable
Cdn Boolean - id String
The provider-assigned unique ID for this managed resource.
- name String
- self
Link String - project String
- bucket
Name string - cdn
Policies GetBackend Bucket Cdn Policy[] - compression
Mode string - creation
Timestamp string - custom
Response string[]Headers - description string
- edge
Security stringPolicy - enable
Cdn boolean - id string
The provider-assigned unique ID for this managed resource.
- name string
- self
Link string - project string
- bucket_
name str - cdn_
policies Sequence[GetBackend Bucket Cdn Policy] - compression_
mode str - creation_
timestamp str - custom_
response_ Sequence[str]headers - description str
- edge_
security_ strpolicy - enable_
cdn bool - id str
The provider-assigned unique ID for this managed resource.
- name str
- self_
link str - project str
- bucket
Name String - cdn
Policies List<Property Map> - compression
Mode String - creation
Timestamp String - custom
Response List<String>Headers - description String
- edge
Security StringPolicy - enable
Cdn Boolean - id String
The provider-assigned unique ID for this managed resource.
- name String
- self
Link String - project String
Supporting Types
GetBackendBucketCdnPolicy
- Bypass
Cache List<GetOn Request Headers Backend Bucket Cdn Policy Bypass Cache On Request Header> - Cache
Key List<GetPolicies Backend Bucket Cdn Policy Cache Key Policy> - Cache
Mode string - Client
Ttl int - Default
Ttl int - Max
Ttl int - Negative
Caching bool - Negative
Caching List<GetPolicies Backend Bucket Cdn Policy Negative Caching Policy> - Request
Coalescing bool - Serve
While intStale - Signed
Url intCache Max Age Sec
- Bypass
Cache []GetOn Request Headers Backend Bucket Cdn Policy Bypass Cache On Request Header - Cache
Key []GetPolicies Backend Bucket Cdn Policy Cache Key Policy - Cache
Mode string - Client
Ttl int - Default
Ttl int - Max
Ttl int - Negative
Caching bool - Negative
Caching []GetPolicies Backend Bucket Cdn Policy Negative Caching Policy - Request
Coalescing bool - Serve
While intStale - Signed
Url intCache Max Age Sec
- bypass
Cache List<GetOn Request Headers Backend Bucket Cdn Policy Bypass Cache On Request Header> - cache
Key List<GetPolicies Backend Bucket Cdn Policy Cache Key Policy> - cache
Mode String - client
Ttl Integer - default
Ttl Integer - max
Ttl Integer - negative
Caching Boolean - negative
Caching List<GetPolicies Backend Bucket Cdn Policy Negative Caching Policy> - request
Coalescing Boolean - serve
While IntegerStale - signed
Url IntegerCache Max Age Sec
- bypass
Cache GetOn Request Headers Backend Bucket Cdn Policy Bypass Cache On Request Header[] - cache
Key GetPolicies Backend Bucket Cdn Policy Cache Key Policy[] - cache
Mode string - client
Ttl number - default
Ttl number - max
Ttl number - negative
Caching boolean - negative
Caching GetPolicies Backend Bucket Cdn Policy Negative Caching Policy[] - request
Coalescing boolean - serve
While numberStale - signed
Url numberCache Max Age Sec
- bypass_
cache_ Sequence[Geton_ request_ headers Backend Bucket Cdn Policy Bypass Cache On Request Header] - cache_
key_ Sequence[Getpolicies Backend Bucket Cdn Policy Cache Key Policy] - cache_
mode str - client_
ttl int - default_
ttl int - max_
ttl int - negative_
caching bool - negative_
caching_ Sequence[Getpolicies Backend Bucket Cdn Policy Negative Caching Policy] - request_
coalescing bool - serve_
while_ intstale - signed_
url_ intcache_ max_ age_ sec
- bypass
Cache List<Property Map>On Request Headers - cache
Key List<Property Map>Policies - cache
Mode String - client
Ttl Number - default
Ttl Number - max
Ttl Number - negative
Caching Boolean - negative
Caching List<Property Map>Policies - request
Coalescing Boolean - serve
While NumberStale - signed
Url NumberCache Max Age Sec
GetBackendBucketCdnPolicyBypassCacheOnRequestHeader
- Header
Name string
- Header
Name string
- header
Name String
- header
Name string
- header_
name str
- header
Name String
GetBackendBucketCdnPolicyCacheKeyPolicy
- Include
Http List<string>Headers - Query
String List<string>Whitelists
- Include
Http []stringHeaders - Query
String []stringWhitelists
- include
Http List<String>Headers - query
String List<String>Whitelists
- include
Http string[]Headers - query
String string[]Whitelists
- include_
http_ Sequence[str]headers - query_
string_ Sequence[str]whitelists
- include
Http List<String>Headers - query
String List<String>Whitelists
GetBackendBucketCdnPolicyNegativeCachingPolicy
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.