Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getFunction
Explore with Pulumi AI
The scaleway.Function
data source is used to retrieve information about a Serverless Function.
Refer to the Serverless Functions product documentation and API documentation for more information.
For more information on the limitations of Serverless Functions, refer to the dedicated documentation.
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(function_id: Optional[str] = None,
name: Optional[str] = None,
namespace_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFunctionResult
def get_function_output(function_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace_id: Optional[pulumi.Input[str]] = None,
project_id: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getFunction:getFunction
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace
Id string - The namespace ID associated with this function.
- Function
Id string - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - Name string
- The name of the function. Only one of
name
andnamespace_id
should be specified. - Project
Id string - The unique identifier of the project with which the function is associated.
- Region string
region
) The region in which the container exists.
- Namespace
Id string - The namespace ID associated with this function.
- Function
Id string - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - Name string
- The name of the function. Only one of
name
andnamespace_id
should be specified. - Project
Id string - The unique identifier of the project with which the function is associated.
- Region string
region
) The region in which the container exists.
- namespace
Id String - The namespace ID associated with this function.
- function
Id String - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - name String
- The name of the function. Only one of
name
andnamespace_id
should be specified. - project
Id String - The unique identifier of the project with which the function is associated.
- region String
region
) The region in which the container exists.
- namespace
Id string - The namespace ID associated with this function.
- function
Id string - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - name string
- The name of the function. Only one of
name
andnamespace_id
should be specified. - project
Id string - The unique identifier of the project with which the function is associated.
- region string
region
) The region in which the container exists.
- namespace_
id str - The namespace ID associated with this function.
- function_
id str - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - name str
- The name of the function. Only one of
name
andnamespace_id
should be specified. - project_
id str - The unique identifier of the project with which the function is associated.
- region str
region
) The region in which the container exists.
- namespace
Id String - The namespace ID associated with this function.
- function
Id String - The unique identifier of the function. Only one of
name
andfunction_id
should be specified. - name String
- The name of the function. Only one of
name
andnamespace_id
should be specified. - project
Id String - The unique identifier of the project with which the function is associated.
- region String
region
) The region in which the container exists.
getFunction Result
The following output properties are available:
- Cpu
Limit int - Deploy bool
- Description string
- Domain
Name string - Environment
Variables Dictionary<string, string> - Handler string
- Http
Option string - Id string
- The provider-assigned unique ID for this managed resource.
- Max
Scale int - Memory
Limit int - Min
Scale int - Namespace
Id string - Organization
Id string - Privacy string
- Runtime string
- Sandbox string
- Secret
Environment Dictionary<string, string>Variables - Timeout int
- Zip
File string - Zip
Hash string - Function
Id string - Name string
- Project
Id string - Region string
- Cpu
Limit int - Deploy bool
- Description string
- Domain
Name string - Environment
Variables map[string]string - Handler string
- Http
Option string - Id string
- The provider-assigned unique ID for this managed resource.
- Max
Scale int - Memory
Limit int - Min
Scale int - Namespace
Id string - Organization
Id string - Privacy string
- Runtime string
- Sandbox string
- Secret
Environment map[string]stringVariables - Timeout int
- Zip
File string - Zip
Hash string - Function
Id string - Name string
- Project
Id string - Region string
- cpu
Limit Integer - deploy Boolean
- description String
- domain
Name String - environment
Variables Map<String,String> - handler String
- http
Option String - id String
- The provider-assigned unique ID for this managed resource.
- max
Scale Integer - memory
Limit Integer - min
Scale Integer - namespace
Id String - organization
Id String - privacy String
- runtime String
- sandbox String
- secret
Environment Map<String,String>Variables - timeout Integer
- zip
File String - zip
Hash String - function
Id String - name String
- project
Id String - region String
- cpu
Limit number - deploy boolean
- description string
- domain
Name string - environment
Variables {[key: string]: string} - handler string
- http
Option string - id string
- The provider-assigned unique ID for this managed resource.
- max
Scale number - memory
Limit number - min
Scale number - namespace
Id string - organization
Id string - privacy string
- runtime string
- sandbox string
- secret
Environment {[key: string]: string}Variables - timeout number
- zip
File string - zip
Hash string - function
Id string - name string
- project
Id string - region string
- cpu_
limit int - deploy bool
- description str
- domain_
name str - environment_
variables Mapping[str, str] - handler str
- http_
option str - id str
- The provider-assigned unique ID for this managed resource.
- max_
scale int - memory_
limit int - min_
scale int - namespace_
id str - organization_
id str - privacy str
- runtime str
- sandbox str
- secret_
environment_ Mapping[str, str]variables - timeout int
- zip_
file str - zip_
hash str - function_
id str - name str
- project_
id str - region str
- cpu
Limit Number - deploy Boolean
- description String
- domain
Name String - environment
Variables Map<String> - handler String
- http
Option String - id String
- The provider-assigned unique ID for this managed resource.
- max
Scale Number - memory
Limit Number - min
Scale Number - namespace
Id String - organization
Id String - privacy String
- runtime String
- sandbox String
- secret
Environment Map<String>Variables - timeout Number
- zip
File String - zip
Hash String - function
Id String - name String
- project
Id String - region String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.