GetFunction
Get information about a Google Cloud Function. For more information see the official documentation and API.
Using GetFunction
function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>function get_function(name=None, project=None, region=None, opts=None)func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)Note: This function is named
LookupFunctionin the Go SDK.
public static class GetFunction {
public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetFunction Result
The following output properties are available:
- Available
Memory intMb Available memory (in MB) to the function.
- Description string
Description of the function.
- Entry
Point string Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables Dictionary<string, object> - Event
Triggers List<GetFunction Event Trigger> A source that fires events in response to a condition in another service. Structure is documented below.
- Https
Trigger stringUrl If function is triggered by HTTP, trigger URL is set here.
- Id string
The provider-assigned unique ID for this managed resource.
- Ingress
Settings string Controls what traffic can reach the function.
- Labels Dictionary<string, object>
A map of labels applied to this function.
- Max
Instances int - Name string
The name of the Cloud Function.
- Runtime string
The runtime in which the function is running.
- Service
Account stringEmail The service account email to be assumed by the cloud function.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repositories List<GetFunction Source Repository> - Timeout int
Function execution timeout (in seconds).
- Trigger
Http bool If function is triggered by HTTP, this boolean is set.
- Vpc
Connector string The VPC Network Connector that this cloud function can connect to.
- Vpc
Connector 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.
- Description string
Description of the function.
- Entry
Point string Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables map[string]interface{} - Event
Triggers []GetFunction Event Trigger A source that fires events in response to a condition in another service. Structure is documented below.
- Https
Trigger stringUrl If function is triggered by HTTP, trigger URL is set here.
- Id string
The provider-assigned unique ID for this managed resource.
- Ingress
Settings string Controls what traffic can reach the function.
- Labels map[string]interface{}
A map of labels applied to this function.
- Max
Instances int - Name string
The name of the Cloud Function.
- Runtime string
The runtime in which the function is running.
- Service
Account stringEmail The service account email to be assumed by the cloud function.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repositories []GetFunction Source Repository - Timeout int
Function execution timeout (in seconds).
- Trigger
Http bool If function is triggered by HTTP, this boolean is set.
- Vpc
Connector string The VPC Network Connector that this cloud function can connect to.
- Vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it.
- Project string
- Region string
- available
Memory numberMb Available memory (in MB) to the function.
- description string
Description of the function.
- entry
Point string Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environment
Variables {[key: string]: any} - event
Triggers GetFunction Event Trigger[] A source that fires events in response to a condition in another service. Structure is documented below.
- https
Trigger stringUrl If function is triggered by HTTP, trigger URL is set here.
- id string
The provider-assigned unique ID for this managed resource.
- ingress
Settings string Controls what traffic can reach the function.
- labels {[key: string]: any}
A map of labels applied to this function.
- max
Instances number - name string
The name of the Cloud Function.
- runtime string
The runtime in which the function is running.
- service
Account stringEmail The service account email to be assumed by the cloud function.
- source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- source
Archive stringObject The source archive object (file) in archive bucket.
- source
Repositories GetFunction Source Repository[] - timeout number
Function execution timeout (in seconds).
- trigger
Http boolean If function is triggered by HTTP, this boolean is set.
- vpc
Connector string The VPC Network Connector that this cloud function can connect to.
- vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it.
- project string
- region string
- available_
memory_ floatmb Available memory (in MB) to the function.
- description str
Description of the function.
- entry_
point str Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
- environment_
variables Dict[str, Any] - event_
triggers List[GetFunction Event Trigger] A source that fires events in response to a condition in another service. Structure is documented below.
- 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.
- labels Dict[str, Any]
A map of labels applied to this function.
- max_
instances float - name str
The name of the Cloud Function.
- runtime str
The runtime in which the function is running.
- 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 List[GetFunction Source Repository] - timeout float
Function execution timeout (in seconds).
- trigger_
http bool If function is triggered by HTTP, this boolean is set.
- 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
Supporting Types
GetFunctionEventTrigger
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Event
Type 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.- Failure
Policies List<GetFunction Event Trigger Failure Policy Args> 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 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.- Failure
Policies []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 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.- failure
Policies 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 List[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"
GetFunctionEventTriggerFailurePolicy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetFunctionSourceRepository
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.