Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse
scaleway.functions.getFunction
Explore with Pulumi AI
The scaleway.functions.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)
public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:functions/getFunction:getFunction
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NamespaceId string
- The namespace ID associated with this function.
- FunctionId string
- The unique identifier of the function. Only one of nameandfunction_idshould be specified.
- Name string
- The name of the function. Only one of nameandnamespace_idshould be specified.
- ProjectId string
- The unique identifier of the project with which the function is associated.
- Region string
- region) The region in which the container exists.
- NamespaceId string
- The namespace ID associated with this function.
- FunctionId string
- The unique identifier of the function. Only one of nameandfunction_idshould be specified.
- Name string
- The name of the function. Only one of nameandnamespace_idshould be specified.
- ProjectId string
- The unique identifier of the project with which the function is associated.
- Region string
- region) The region in which the container exists.
- namespaceId String
- The namespace ID associated with this function.
- functionId String
- The unique identifier of the function. Only one of nameandfunction_idshould be specified.
- name String
- The name of the function. Only one of nameandnamespace_idshould be specified.
- projectId String
- The unique identifier of the project with which the function is associated.
- region String
- region) The region in which the container exists.
- namespaceId string
- The namespace ID associated with this function.
- functionId string
- The unique identifier of the function. Only one of nameandfunction_idshould be specified.
- name string
- The name of the function. Only one of nameandnamespace_idshould be specified.
- projectId 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 nameandfunction_idshould be specified.
- name str
- The name of the function. Only one of nameandnamespace_idshould 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.
- namespaceId String
- The namespace ID associated with this function.
- functionId String
- The unique identifier of the function. Only one of nameandfunction_idshould be specified.
- name String
- The name of the function. Only one of nameandnamespace_idshould be specified.
- projectId 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:
- CpuLimit int
- Deploy bool
- Description string
- DomainName string
- EnvironmentVariables Dictionary<string, string>
- Handler string
- HttpOption string
- Id string
- The provider-assigned unique ID for this managed resource.
- MaxScale int
- MemoryLimit int
- MinScale int
- NamespaceId string
- OrganizationId string
- Privacy string
- Runtime string
- Sandbox string
- SecretEnvironment Dictionary<string, string>Variables 
- Timeout int
- ZipFile string
- ZipHash string
- FunctionId string
- Name string
- ProjectId string
- Region string
- CpuLimit int
- Deploy bool
- Description string
- DomainName string
- EnvironmentVariables map[string]string
- Handler string
- HttpOption string
- Id string
- The provider-assigned unique ID for this managed resource.
- MaxScale int
- MemoryLimit int
- MinScale int
- NamespaceId string
- OrganizationId string
- Privacy string
- Runtime string
- Sandbox string
- SecretEnvironment map[string]stringVariables 
- Timeout int
- ZipFile string
- ZipHash string
- FunctionId string
- Name string
- ProjectId string
- Region string
- cpuLimit Integer
- deploy Boolean
- description String
- domainName String
- environmentVariables Map<String,String>
- handler String
- httpOption String
- id String
- The provider-assigned unique ID for this managed resource.
- maxScale Integer
- memoryLimit Integer
- minScale Integer
- namespaceId String
- organizationId String
- privacy String
- runtime String
- sandbox String
- secretEnvironment Map<String,String>Variables 
- timeout Integer
- zipFile String
- zipHash String
- functionId String
- name String
- projectId String
- region String
- cpuLimit number
- deploy boolean
- description string
- domainName string
- environmentVariables {[key: string]: string}
- handler string
- httpOption string
- id string
- The provider-assigned unique ID for this managed resource.
- maxScale number
- memoryLimit number
- minScale number
- namespaceId string
- organizationId string
- privacy string
- runtime string
- sandbox string
- secretEnvironment {[key: string]: string}Variables 
- timeout number
- zipFile string
- zipHash string
- functionId string
- name string
- projectId 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
- cpuLimit Number
- deploy Boolean
- description String
- domainName String
- environmentVariables Map<String>
- handler String
- httpOption String
- id String
- The provider-assigned unique ID for this managed resource.
- maxScale Number
- memoryLimit Number
- minScale Number
- namespaceId String
- organizationId String
- privacy String
- runtime String
- sandbox String
- secretEnvironment Map<String>Variables 
- timeout Number
- zipFile String
- zipHash String
- functionId String
- name String
- projectId String
- region String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
