Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.cloudfunctions.getFunction
Explore with Pulumi AI
Get information about a Google Cloud Function. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_function = gcp.cloudfunctions.getFunction({
    name: "function",
});
import pulumi
import pulumi_gcp as gcp
my_function = gcp.cloudfunctions.get_function(name="function")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudfunctions"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.LookupFunction(ctx, &cloudfunctions.LookupFunctionArgs{
			Name: "function",
		}, 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 my_function = Gcp.CloudFunctions.GetFunction.Invoke(new()
    {
        Name = "function",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudfunctions.CloudfunctionsFunctions;
import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionArgs;
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-function = CloudfunctionsFunctions.getFunction(GetFunctionArgs.builder()
            .name("function")
            .build());
    }
}
variables:
  my-function:
    fn::invoke:
      function: gcp:cloudfunctions:getFunction
      arguments:
        name: function
Using getFunction
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 getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOptions): Output<GetFunctionResult>def get_function(name: Optional[str] = None,
                 project: Optional[str] = None,
                 region: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFunctionResult
def get_function_output(name: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 region: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFunctionResult]func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput> Note: This function is named LookupFunction in the Go SDK.
public static class GetFunction 
{
    public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:cloudfunctions/getFunction:getFunction
  arguments:
    # arguments dictionaryThe following arguments are supported:
getFunction Result
The following output properties are available:
- AvailableMemory intMb 
- Available memory (in MB) to the function.
- BuildEnvironment Dictionary<string, string>Variables 
- BuildService stringAccount 
- BuildWorker stringPool 
- Description string
- Description of the function.
- DockerRegistry string
- DockerRepository string
- EffectiveLabels Dictionary<string, string>
- EntryPoint string
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- EnvironmentVariables Dictionary<string, string>
- EventTriggers List<GetFunction Event Trigger> 
- A source that fires events in response to a condition in another service. Structure is documented below.
- HttpsTrigger stringSecurity Level 
- HttpsTrigger stringUrl 
- If function is triggered by HTTP, trigger URL is set here.
- Id string
- The provider-assigned unique ID for this managed resource.
- IngressSettings string
- Controls what traffic can reach the function.
- KmsKey stringName 
- Labels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- MaxInstances int
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- MinInstances int
- Name string
- The name of the Cloud Function.
- PulumiLabels Dictionary<string, string>
- Runtime string
- The runtime in which the function is running.
- SecretEnvironment List<GetVariables Function Secret Environment Variable> 
- SecretVolumes List<GetFunction Secret Volume> 
- ServiceAccount stringEmail 
- The service account email to be assumed by the cloud function.
- SourceArchive stringBucket 
- The GCS bucket containing the zip archive which contains the function.
- SourceArchive stringObject 
- The source archive object (file) in archive bucket.
- SourceRepositories List<GetFunction Source Repository> 
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- Status string
- Timeout int
- Function execution timeout (in seconds).
- TriggerHttp bool
- If function is triggered by HTTP, this boolean is set.
- VersionId string
- VpcConnector string
- The VPC Network Connector that this cloud function can connect to.
- VpcConnector stringEgress Settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- Project string
- Region string
- AvailableMemory intMb 
- Available memory (in MB) to the function.
- BuildEnvironment map[string]stringVariables 
- BuildService stringAccount 
- BuildWorker stringPool 
- Description string
- Description of the function.
- DockerRegistry string
- DockerRepository string
- EffectiveLabels map[string]string
- EntryPoint string
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- EnvironmentVariables map[string]string
- EventTriggers []GetFunction Event Trigger 
- A source that fires events in response to a condition in another service. Structure is documented below.
- HttpsTrigger stringSecurity Level 
- HttpsTrigger stringUrl 
- If function is triggered by HTTP, trigger URL is set here.
- Id string
- The provider-assigned unique ID for this managed resource.
- IngressSettings string
- Controls what traffic can reach the function.
- KmsKey stringName 
- Labels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- MaxInstances int
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- MinInstances int
- Name string
- The name of the Cloud Function.
- PulumiLabels map[string]string
- Runtime string
- The runtime in which the function is running.
- SecretEnvironment []GetVariables Function Secret Environment Variable 
- SecretVolumes []GetFunction Secret Volume 
- ServiceAccount stringEmail 
- The service account email to be assumed by the cloud function.
- SourceArchive stringBucket 
- The GCS bucket containing the zip archive which contains the function.
- SourceArchive stringObject 
- The source archive object (file) in archive bucket.
- SourceRepositories []GetFunction Source Repository 
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- Status string
- Timeout int
- Function execution timeout (in seconds).
- TriggerHttp bool
- If function is triggered by HTTP, this boolean is set.
- VersionId string
- VpcConnector string
- The VPC Network Connector that this cloud function can connect to.
- VpcConnector stringEgress Settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- Project string
- Region string
- availableMemory IntegerMb 
- Available memory (in MB) to the function.
- buildEnvironment Map<String,String>Variables 
- buildService StringAccount 
- buildWorker StringPool 
- description String
- Description of the function.
- dockerRegistry String
- dockerRepository String
- effectiveLabels Map<String,String>
- entryPoint String
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environmentVariables Map<String,String>
- eventTriggers List<GetFunction Event Trigger> 
- A source that fires events in response to a condition in another service. Structure is documented below.
- httpsTrigger StringSecurity Level 
- httpsTrigger StringUrl 
- If function is triggered by HTTP, trigger URL is set here.
- id String
- The provider-assigned unique ID for this managed resource.
- ingressSettings String
- Controls what traffic can reach the function.
- kmsKey StringName 
- labels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- maxInstances Integer
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- minInstances Integer
- name String
- The name of the Cloud Function.
- pulumiLabels Map<String,String>
- runtime String
- The runtime in which the function is running.
- secretEnvironment List<GetVariables Function Secret Environment Variable> 
- secretVolumes List<GetFunction Secret Volume> 
- serviceAccount StringEmail 
- The service account email to be assumed by the cloud function.
- sourceArchive StringBucket 
- The GCS bucket containing the zip archive which contains the function.
- sourceArchive StringObject 
- The source archive object (file) in archive bucket.
- sourceRepositories List<GetFunction Source Repository> 
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- status String
- timeout Integer
- Function execution timeout (in seconds).
- triggerHttp Boolean
- If function is triggered by HTTP, this boolean is set.
- versionId String
- vpcConnector String
- The VPC Network Connector that this cloud function can connect to.
- vpcConnector StringEgress Settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- project String
- region String
- availableMemory numberMb 
- Available memory (in MB) to the function.
- buildEnvironment {[key: string]: string}Variables 
- buildService stringAccount 
- buildWorker stringPool 
- description string
- Description of the function.
- dockerRegistry string
- dockerRepository string
- effectiveLabels {[key: string]: string}
- entryPoint string
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environmentVariables {[key: string]: string}
- eventTriggers GetFunction Event Trigger[] 
- A source that fires events in response to a condition in another service. Structure is documented below.
- httpsTrigger stringSecurity Level 
- httpsTrigger stringUrl 
- If function is triggered by HTTP, trigger URL is set here.
- id string
- The provider-assigned unique ID for this managed resource.
- ingressSettings string
- Controls what traffic can reach the function.
- kmsKey stringName 
- labels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- maxInstances number
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- minInstances number
- name string
- The name of the Cloud Function.
- pulumiLabels {[key: string]: string}
- runtime string
- The runtime in which the function is running.
- secretEnvironment GetVariables Function Secret Environment Variable[] 
- secretVolumes GetFunction Secret Volume[] 
- serviceAccount stringEmail 
- The service account email to be assumed by the cloud function.
- sourceArchive stringBucket 
- The GCS bucket containing the zip archive which contains the function.
- sourceArchive stringObject 
- The source archive object (file) in archive bucket.
- sourceRepositories GetFunction Source Repository[] 
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- status string
- timeout number
- Function execution timeout (in seconds).
- triggerHttp boolean
- If function is triggered by HTTP, this boolean is set.
- versionId string
- vpcConnector string
- The VPC Network Connector that this cloud function can connect to.
- vpcConnector stringEgress Settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- project string
- region string
- available_memory_ intmb 
- Available memory (in MB) to the function.
- build_environment_ Mapping[str, str]variables 
- build_service_ straccount 
- build_worker_ strpool 
- description str
- Description of the function.
- docker_registry str
- docker_repository str
- effective_labels Mapping[str, str]
- entry_point str
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environment_variables Mapping[str, str]
- event_triggers Sequence[GetFunction Event Trigger] 
- A source that fires events in response to a condition in another service. Structure is documented below.
- https_trigger_ strsecurity_ level 
- https_trigger_ strurl 
- If function is triggered by HTTP, trigger URL is set here.
- id str
- The provider-assigned unique ID for this managed resource.
- ingress_settings str
- Controls what traffic can reach the function.
- kms_key_ strname 
- labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- max_instances int
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- min_instances int
- name str
- The name of the Cloud Function.
- pulumi_labels Mapping[str, str]
- runtime str
- The runtime in which the function is running.
- secret_environment_ Sequence[Getvariables Function Secret Environment Variable] 
- secret_volumes Sequence[GetFunction Secret Volume] 
- service_account_ stremail 
- The service account email to be assumed by the cloud function.
- source_archive_ strbucket 
- The GCS bucket containing the zip archive which contains the function.
- source_archive_ strobject 
- The source archive object (file) in archive bucket.
- source_repositories Sequence[GetFunction Source Repository] 
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- status str
- timeout int
- Function execution timeout (in seconds).
- trigger_http bool
- If function is triggered by HTTP, this boolean is set.
- version_id str
- vpc_connector str
- The VPC Network Connector that this cloud function can connect to.
- vpc_connector_ stregress_ settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- project str
- region str
- availableMemory NumberMb 
- Available memory (in MB) to the function.
- buildEnvironment Map<String>Variables 
- buildService StringAccount 
- buildWorker StringPool 
- description String
- Description of the function.
- dockerRegistry String
- dockerRepository String
- effectiveLabels Map<String>
- entryPoint String
- Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environmentVariables Map<String>
- eventTriggers List<Property Map>
- A source that fires events in response to a condition in another service. Structure is documented below.
- httpsTrigger StringSecurity Level 
- httpsTrigger StringUrl 
- If function is triggered by HTTP, trigger URL is set here.
- id String
- The provider-assigned unique ID for this managed resource.
- ingressSettings String
- Controls what traffic can reach the function.
- kmsKey StringName 
- labels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- maxInstances Number
- The limit on the maximum number of function instances that may coexist at a given time. If unset or set to 0, the API default will be used.
- minInstances Number
- name String
- The name of the Cloud Function.
- pulumiLabels Map<String>
- runtime String
- The runtime in which the function is running.
- secretEnvironment List<Property Map>Variables 
- secretVolumes List<Property Map>
- serviceAccount StringEmail 
- The service account email to be assumed by the cloud function.
- sourceArchive StringBucket 
- The GCS bucket containing the zip archive which contains the function.
- sourceArchive StringObject 
- The source archive object (file) in archive bucket.
- sourceRepositories List<Property Map>
- The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
- status String
- timeout Number
- Function execution timeout (in seconds).
- triggerHttp Boolean
- If function is triggered by HTTP, this boolean is set.
- versionId String
- vpcConnector String
- The VPC Network Connector that this cloud function can connect to.
- vpcConnector StringEgress Settings 
- The egress settings for the connector, controlling what traffic is diverted through it.
- project String
- region String
Supporting Types
GetFunctionEventTrigger   
- EventType string
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- FailurePolicies List<GetFunction Event Trigger Failure Policy> 
- Policy for failed executions. Structure is documented below.
- Resource string
- The name of the resource whose events are being observed, for example, "myBucket"
- EventType string
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- FailurePolicies []GetFunction Event Trigger Failure Policy 
- Policy for failed executions. Structure is documented below.
- Resource string
- The name of the resource whose events are being observed, for example, "myBucket"
- eventType String
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- failurePolicies List<GetFunction Event Trigger Failure Policy> 
- Policy for failed executions. Structure is documented below.
- resource String
- The name of the resource whose events are being observed, for example, "myBucket"
- eventType string
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- failurePolicies GetFunction Event Trigger Failure Policy[] 
- Policy for failed executions. Structure is documented below.
- resource string
- The name of the resource whose events are being observed, for example, "myBucket"
- event_type str
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- failure_policies Sequence[GetFunction Event Trigger Failure Policy] 
- Policy for failed executions. Structure is documented below.
- resource str
- The name of the resource whose events are being observed, for example, "myBucket"
- eventType String
- The type of event to observe. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.
- failurePolicies List<Property Map>
- Policy for failed executions. Structure is documented below.
- resource String
- The name of the resource whose events are being observed, for example, "myBucket"
GetFunctionEventTriggerFailurePolicy     
- Retry bool
- Whether the function should be retried on failure.
- Retry bool
- Whether the function should be retried on failure.
- retry Boolean
- Whether the function should be retried on failure.
- retry boolean
- Whether the function should be retried on failure.
- retry bool
- Whether the function should be retried on failure.
- retry Boolean
- Whether the function should be retried on failure.
GetFunctionSecretEnvironmentVariable    
- Key string
- Name of the environment variable.
- ProjectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- Secret string
- ID of the secret in secret manager (not the full resource name).
- Version string
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
- Key string
- Name of the environment variable.
- ProjectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- Secret string
- ID of the secret in secret manager (not the full resource name).
- Version string
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
- key String
- Name of the environment variable.
- projectId String
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret String
- ID of the secret in secret manager (not the full resource name).
- version String
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
- key string
- Name of the environment variable.
- projectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret string
- ID of the secret in secret manager (not the full resource name).
- version string
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
- key str
- Name of the environment variable.
- project_id str
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret str
- ID of the secret in secret manager (not the full resource name).
- version str
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
- key String
- Name of the environment variable.
- projectId String
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret String
- ID of the secret in secret manager (not the full resource name).
- version String
- Version of the secret (version number or the string "latest"). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
GetFunctionSecretVolume   
- MountPath string
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- ProjectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- Secret string
- ID of the secret in secret manager (not the full resource name).
- Versions
List<GetFunction Secret Volume Version> 
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
- MountPath string
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- ProjectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- Secret string
- ID of the secret in secret manager (not the full resource name).
- Versions
[]GetFunction Secret Volume Version 
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
- mountPath String
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- projectId String
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret String
- ID of the secret in secret manager (not the full resource name).
- versions
List<GetFunction Secret Volume Version> 
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
- mountPath string
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- projectId string
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret string
- ID of the secret in secret manager (not the full resource name).
- versions
GetFunction Secret Volume Version[] 
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
- mount_path str
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- project_id str
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret str
- ID of the secret in secret manager (not the full resource name).
- versions
Sequence[GetFunction Secret Volume Version] 
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
- mountPath String
- The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
- projectId String
- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
- secret String
- ID of the secret in secret manager (not the full resource name).
- versions List<Property Map>
- List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point.
GetFunctionSecretVolumeVersion    
- Path string
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- Version string
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
- Path string
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- Version string
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
- path String
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- version String
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
- path string
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- version string
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
- path str
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- version str
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
- path String
- Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
- version String
- Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
GetFunctionSourceRepository   
- DeployedUrl string
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- Url string
- The URL pointing to the hosted repository where the function is defined.
- DeployedUrl string
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- Url string
- The URL pointing to the hosted repository where the function is defined.
- deployedUrl String
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- url String
- The URL pointing to the hosted repository where the function is defined.
- deployedUrl string
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- url string
- The URL pointing to the hosted repository where the function is defined.
- deployed_url str
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- url str
- The URL pointing to the hosted repository where the function is defined.
- deployedUrl String
- The URL pointing to the hosted repository where the function was defined at the time of deployment.
- url String
- The URL pointing to the hosted repository where the function is defined.
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.