get Function App Host Keys
suspend fun getFunctionAppHostKeys(argument: GetFunctionAppHostKeysPlainArgs): GetFunctionAppHostKeysResult
Use this data source to fetch the Host Keys of an existing Function App
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getFunctionAppHostKeys({
name: "example-function",
resourceGroupName: exampleAzurermResourceGroup.name,
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_function_app_host_keys(name="example-function",
resource_group_name=example_azurerm_resource_group["name"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.AppService.GetFunctionAppHostKeys.Invoke(new()
{
Name = "example-function",
ResourceGroupName = exampleAzurermResourceGroup.Name,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appservice.GetFunctionAppHostKeys(ctx, &appservice.GetFunctionAppHostKeysArgs{
Name: "example-function",
ResourceGroupName: exampleAzurermResourceGroup.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.AppserviceFunctions;
import com.pulumi.azure.appservice.inputs.GetFunctionAppHostKeysArgs;
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 example = AppserviceFunctions.getFunctionAppHostKeys(GetFunctionAppHostKeysArgs.builder()
.name("example-function")
.resourceGroupName(exampleAzurermResourceGroup.name())
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:appservice:getFunctionAppHostKeys
arguments:
name: example-function
resourceGroupName: ${exampleAzurermResourceGroup.name}
Content copied to clipboard
Return
A collection of values returned by getFunctionAppHostKeys.
Parameters
argument
A collection of arguments for invoking getFunctionAppHostKeys.
suspend fun getFunctionAppHostKeys(name: String, resourceGroupName: String): GetFunctionAppHostKeysResult
Return
A collection of values returned by getFunctionAppHostKeys.
Parameters
name
The name of the Function App.
resource Group Name
The name of the Resource Group where the Function App exists.
See also
suspend fun getFunctionAppHostKeys(argument: suspend GetFunctionAppHostKeysPlainArgsBuilder.() -> Unit): GetFunctionAppHostKeysResult
Return
A collection of values returned by getFunctionAppHostKeys.
Parameters
argument
Builder for com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppHostKeysPlainArgs.