com.pulumi.azure.appservice.kotlin.AppserviceFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin
import com.pulumi.azure.appservice.AppserviceFunctions.getAppServiceEnvironmentPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getAppServicePlain
import com.pulumi.azure.appservice.AppserviceFunctions.getAppServicePlanPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getCertificateOrderPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getCertificatePlain
import com.pulumi.azure.appservice.AppserviceFunctions.getEnvironmentV3Plain
import com.pulumi.azure.appservice.AppserviceFunctions.getFunctionAppHostKeysPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getFunctionAppPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getLinuxFunctionAppPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getLinuxWebAppPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getServicePlanPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getSourceControlTokenPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getStaticWebAppPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getWindowsFunctionAppPlain
import com.pulumi.azure.appservice.AppserviceFunctions.getWindowsWebAppPlain
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServiceEnvironmentPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServiceEnvironmentPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlanPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlanPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetCertificateOrderPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetCertificateOrderPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetCertificatePlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetCertificatePlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetEnvironmentV3PlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetEnvironmentV3PlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppHostKeysPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppHostKeysPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetLinuxFunctionAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetLinuxFunctionAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetLinuxWebAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetLinuxWebAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetServicePlanPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetServicePlanPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetSourceControlTokenPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetSourceControlTokenPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetStaticWebAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetStaticWebAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetWindowsFunctionAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetWindowsFunctionAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.GetWindowsWebAppPlainArgs
import com.pulumi.azure.appservice.kotlin.inputs.GetWindowsWebAppPlainArgsBuilder
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServiceEnvironmentResult
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServicePlanResult
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServiceResult
import com.pulumi.azure.appservice.kotlin.outputs.GetCertificateOrderResult
import com.pulumi.azure.appservice.kotlin.outputs.GetCertificateResult
import com.pulumi.azure.appservice.kotlin.outputs.GetEnvironmentV3Result
import com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppHostKeysResult
import com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppResult
import com.pulumi.azure.appservice.kotlin.outputs.GetLinuxFunctionAppResult
import com.pulumi.azure.appservice.kotlin.outputs.GetLinuxWebAppResult
import com.pulumi.azure.appservice.kotlin.outputs.GetServicePlanResult
import com.pulumi.azure.appservice.kotlin.outputs.GetSourceControlTokenResult
import com.pulumi.azure.appservice.kotlin.outputs.GetStaticWebAppResult
import com.pulumi.azure.appservice.kotlin.outputs.GetWindowsFunctionAppResult
import com.pulumi.azure.appservice.kotlin.outputs.GetWindowsWebAppResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServiceEnvironmentResult.Companion.toKotlin as getAppServiceEnvironmentResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServicePlanResult.Companion.toKotlin as getAppServicePlanResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetAppServiceResult.Companion.toKotlin as getAppServiceResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetCertificateOrderResult.Companion.toKotlin as getCertificateOrderResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetCertificateResult.Companion.toKotlin as getCertificateResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetEnvironmentV3Result.Companion.toKotlin as getEnvironmentV3ResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppHostKeysResult.Companion.toKotlin as getFunctionAppHostKeysResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppResult.Companion.toKotlin as getFunctionAppResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetLinuxFunctionAppResult.Companion.toKotlin as getLinuxFunctionAppResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetLinuxWebAppResult.Companion.toKotlin as getLinuxWebAppResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetServicePlanResult.Companion.toKotlin as getServicePlanResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetSourceControlTokenResult.Companion.toKotlin as getSourceControlTokenResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetStaticWebAppResult.Companion.toKotlin as getStaticWebAppResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetWindowsFunctionAppResult.Companion.toKotlin as getWindowsFunctionAppResultToKotlin
import com.pulumi.azure.appservice.kotlin.outputs.GetWindowsWebAppResult.Companion.toKotlin as getWindowsWebAppResultToKotlin
public object AppserviceFunctions {
/**
* Use this data source to access information about an existing App Service.
* !> **Note:** The `azure.appservice.AppService` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `azure.appservice.LinuxWebApp` data sources instead.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getAppService({
* name: "search-app-service",
* resourceGroupName: "search-service",
* });
* export const appServiceId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_app_service(name="search-app-service",
* resource_group_name="search-service")
* pulumi.export("appServiceId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetAppService.Invoke(new()
* {
* Name = "search-app-service",
* ResourceGroupName = "search-service",
* });
* return new Dictionary
* {
* ["appServiceId"] = example.Apply(getAppServiceResult => getAppServiceResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupAppService(ctx, &appservice.LookupAppServiceArgs{
* Name: "search-app-service",
* ResourceGroupName: "search-service",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("appServiceId", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetAppServiceArgs;
* 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.getAppService(GetAppServiceArgs.builder()
* .name("search-app-service")
* .resourceGroupName("search-service")
* .build());
* ctx.export("appServiceId", example.applyValue(getAppServiceResult -> getAppServiceResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getAppService
* Arguments:
* name: search-app-service
* resourceGroupName: search-service
* outputs:
* appServiceId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getAppService.
* @return A collection of values returned by getAppService.
*/
public suspend fun getAppService(argument: GetAppServicePlainArgs): GetAppServiceResult =
getAppServiceResultToKotlin(getAppServicePlain(argument.toJava()).await())
/**
* @see [getAppService].
* @param name The name of the App Service.
* @param resourceGroupName The Name of the Resource Group where the App Service exists.
* @return A collection of values returned by getAppService.
*/
public suspend fun getAppService(name: String, resourceGroupName: String): GetAppServiceResult {
val argument = GetAppServicePlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getAppServiceResultToKotlin(getAppServicePlain(argument.toJava()).await())
}
/**
* @see [getAppService].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlainArgs].
* @return A collection of values returned by getAppService.
*/
public suspend fun getAppService(argument: suspend GetAppServicePlainArgsBuilder.() -> Unit):
GetAppServiceResult {
val builder = GetAppServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAppServiceResultToKotlin(getAppServicePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing App Service Environment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getAppServiceEnvironment({
* name: "existing-ase",
* resourceGroupName: "existing-rg",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_app_service_environment(name="existing-ase",
* resource_group_name="existing-rg")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetAppServiceEnvironment.Invoke(new()
* {
* Name = "existing-ase",
* ResourceGroupName = "existing-rg",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getAppServiceEnvironmentResult => getAppServiceEnvironmentResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.GetAppServiceEnvironment(ctx, &appservice.GetAppServiceEnvironmentArgs{
* Name: "existing-ase",
* ResourceGroupName: "existing-rg",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetAppServiceEnvironmentArgs;
* 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.getAppServiceEnvironment(GetAppServiceEnvironmentArgs.builder()
* .name("existing-ase")
* .resourceGroupName("existing-rg")
* .build());
* ctx.export("id", example.applyValue(getAppServiceEnvironmentResult -> getAppServiceEnvironmentResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getAppServiceEnvironment
* Arguments:
* name: existing-ase
* resourceGroupName: existing-rg
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getAppServiceEnvironment.
* @return A collection of values returned by getAppServiceEnvironment.
*/
public suspend fun getAppServiceEnvironment(argument: GetAppServiceEnvironmentPlainArgs):
GetAppServiceEnvironmentResult =
getAppServiceEnvironmentResultToKotlin(getAppServiceEnvironmentPlain(argument.toJava()).await())
/**
* @see [getAppServiceEnvironment].
* @param name The name of this App Service Environment.
* @param resourceGroupName The name of the Resource Group where the App Service Environment exists.
* @return A collection of values returned by getAppServiceEnvironment.
*/
public suspend fun getAppServiceEnvironment(name: String, resourceGroupName: String):
GetAppServiceEnvironmentResult {
val argument = GetAppServiceEnvironmentPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getAppServiceEnvironmentResultToKotlin(getAppServiceEnvironmentPlain(argument.toJava()).await())
}
/**
* @see [getAppServiceEnvironment].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetAppServiceEnvironmentPlainArgs].
* @return A collection of values returned by getAppServiceEnvironment.
*/
public suspend
fun getAppServiceEnvironment(argument: suspend GetAppServiceEnvironmentPlainArgsBuilder.() -> Unit):
GetAppServiceEnvironmentResult {
val builder = GetAppServiceEnvironmentPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAppServiceEnvironmentResultToKotlin(getAppServiceEnvironmentPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing App Service Plan (formerly known as a `Server Farm`).
* !> **Note:** The `azure.appservice.Plan` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `azure.appservice.ServicePlan` data source instead.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getAppServicePlan({
* name: "search-app-service-plan",
* resourceGroupName: "search-service",
* });
* export const appServicePlanId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_app_service_plan(name="search-app-service-plan",
* resource_group_name="search-service")
* pulumi.export("appServicePlanId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetAppServicePlan.Invoke(new()
* {
* Name = "search-app-service-plan",
* ResourceGroupName = "search-service",
* });
* return new Dictionary
* {
* ["appServicePlanId"] = example.Apply(getAppServicePlanResult => getAppServicePlanResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.GetAppServicePlan(ctx, &appservice.GetAppServicePlanArgs{
* Name: "search-app-service-plan",
* ResourceGroupName: "search-service",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("appServicePlanId", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetAppServicePlanArgs;
* 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.getAppServicePlan(GetAppServicePlanArgs.builder()
* .name("search-app-service-plan")
* .resourceGroupName("search-service")
* .build());
* ctx.export("appServicePlanId", example.applyValue(getAppServicePlanResult -> getAppServicePlanResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getAppServicePlan
* Arguments:
* name: search-app-service-plan
* resourceGroupName: search-service
* outputs:
* appServicePlanId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getAppServicePlan.
* @return A collection of values returned by getAppServicePlan.
*/
public suspend fun getAppServicePlan(argument: GetAppServicePlanPlainArgs):
GetAppServicePlanResult =
getAppServicePlanResultToKotlin(getAppServicePlanPlain(argument.toJava()).await())
/**
* @see [getAppServicePlan].
* @param name The name of the App Service Plan.
* @param resourceGroupName The Name of the Resource Group where the App Service Plan exists.
* @return A collection of values returned by getAppServicePlan.
*/
public suspend fun getAppServicePlan(name: String, resourceGroupName: String):
GetAppServicePlanResult {
val argument = GetAppServicePlanPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getAppServicePlanResultToKotlin(getAppServicePlanPlain(argument.toJava()).await())
}
/**
* @see [getAppServicePlan].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlanPlainArgs].
* @return A collection of values returned by getAppServicePlan.
*/
public suspend
fun getAppServicePlan(argument: suspend GetAppServicePlanPlainArgsBuilder.() -> Unit):
GetAppServicePlanResult {
val builder = GetAppServicePlanPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAppServicePlanResultToKotlin(getAppServicePlanPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an App Service Certificate.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getCertificate({
* name: "example-app-service-certificate",
* resourceGroupName: "example-rg",
* });
* export const appServiceCertificateId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_certificate(name="example-app-service-certificate",
* resource_group_name="example-rg")
* pulumi.export("appServiceCertificateId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetCertificate.Invoke(new()
* {
* Name = "example-app-service-certificate",
* ResourceGroupName = "example-rg",
* });
* return new Dictionary
* {
* ["appServiceCertificateId"] = example.Apply(getCertificateResult => getCertificateResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupCertificate(ctx, &appservice.LookupCertificateArgs{
* Name: "example-app-service-certificate",
* ResourceGroupName: "example-rg",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("appServiceCertificateId", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetCertificateArgs;
* 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.getCertificate(GetCertificateArgs.builder()
* .name("example-app-service-certificate")
* .resourceGroupName("example-rg")
* .build());
* ctx.export("appServiceCertificateId", example.applyValue(getCertificateResult -> getCertificateResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getCertificate
* Arguments:
* name: example-app-service-certificate
* resourceGroupName: example-rg
* outputs:
* appServiceCertificateId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getCertificate.
* @return A collection of values returned by getCertificate.
*/
public suspend fun getCertificate(argument: GetCertificatePlainArgs): GetCertificateResult =
getCertificateResultToKotlin(getCertificatePlain(argument.toJava()).await())
/**
* @see [getCertificate].
* @param name Specifies the name of the certificate.
* @param resourceGroupName The name of the resource group in which to create the certificate.
* @param tags
* @return A collection of values returned by getCertificate.
*/
public suspend fun getCertificate(
name: String,
resourceGroupName: String,
tags: Map? = null,
): GetCertificateResult {
val argument = GetCertificatePlainArgs(
name = name,
resourceGroupName = resourceGroupName,
tags = tags,
)
return getCertificateResultToKotlin(getCertificatePlain(argument.toJava()).await())
}
/**
* @see [getCertificate].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetCertificatePlainArgs].
* @return A collection of values returned by getCertificate.
*/
public suspend fun getCertificate(argument: suspend GetCertificatePlainArgsBuilder.() -> Unit):
GetCertificateResult {
val builder = GetCertificatePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getCertificateResultToKotlin(getCertificatePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing App Service Certificate Order.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getCertificateOrder({
* name: "example-cert-order",
* resourceGroupName: "example-resources",
* });
* export const certificateOrderId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_certificate_order(name="example-cert-order",
* resource_group_name="example-resources")
* pulumi.export("certificateOrderId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetCertificateOrder.Invoke(new()
* {
* Name = "example-cert-order",
* ResourceGroupName = "example-resources",
* });
* return new Dictionary
* {
* ["certificateOrderId"] = example.Apply(getCertificateOrderResult => getCertificateOrderResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupCertificateOrder(ctx, &appservice.LookupCertificateOrderArgs{
* Name: "example-cert-order",
* ResourceGroupName: "example-resources",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("certificateOrderId", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetCertificateOrderArgs;
* 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.getCertificateOrder(GetCertificateOrderArgs.builder()
* .name("example-cert-order")
* .resourceGroupName("example-resources")
* .build());
* ctx.export("certificateOrderId", example.applyValue(getCertificateOrderResult -> getCertificateOrderResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getCertificateOrder
* Arguments:
* name: example-cert-order
* resourceGroupName: example-resources
* outputs:
* certificateOrderId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getCertificateOrder.
* @return A collection of values returned by getCertificateOrder.
*/
public suspend fun getCertificateOrder(argument: GetCertificateOrderPlainArgs):
GetCertificateOrderResult =
getCertificateOrderResultToKotlin(getCertificateOrderPlain(argument.toJava()).await())
/**
* @see [getCertificateOrder].
* @param name The name of the App Service.
* @param resourceGroupName The Name of the Resource Group where the App Service exists.
* @return A collection of values returned by getCertificateOrder.
*/
public suspend fun getCertificateOrder(name: String, resourceGroupName: String):
GetCertificateOrderResult {
val argument = GetCertificateOrderPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getCertificateOrderResultToKotlin(getCertificateOrderPlain(argument.toJava()).await())
}
/**
* @see [getCertificateOrder].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetCertificateOrderPlainArgs].
* @return A collection of values returned by getCertificateOrder.
*/
public suspend
fun getCertificateOrder(argument: suspend GetCertificateOrderPlainArgsBuilder.() -> Unit):
GetCertificateOrderResult {
val builder = GetCertificateOrderPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getCertificateOrderResultToKotlin(getCertificateOrderPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing 3rd Generation (v3) App Service Environment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getEnvironmentV3({
* name: "example-ASE",
* resourceGroupName: "example-resource-group",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_environment_v3(name="example-ASE",
* resource_group_name="example-resource-group")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetEnvironmentV3.Invoke(new()
* {
* Name = "example-ASE",
* ResourceGroupName = "example-resource-group",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getEnvironmentV3Result => getEnvironmentV3Result.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupEnvironmentV3(ctx, &appservice.LookupEnvironmentV3Args{
* Name: "example-ASE",
* ResourceGroupName: "example-resource-group",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetEnvironmentV3Args;
* 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.getEnvironmentV3(GetEnvironmentV3Args.builder()
* .name("example-ASE")
* .resourceGroupName("example-resource-group")
* .build());
* ctx.export("id", example.applyValue(getEnvironmentV3Result -> getEnvironmentV3Result.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getEnvironmentV3
* Arguments:
* name: example-ASE
* resourceGroupName: example-resource-group
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getEnvironmentV3.
* @return A collection of values returned by getEnvironmentV3.
*/
public suspend fun getEnvironmentV3(argument: GetEnvironmentV3PlainArgs): GetEnvironmentV3Result =
getEnvironmentV3ResultToKotlin(getEnvironmentV3Plain(argument.toJava()).await())
/**
* @see [getEnvironmentV3].
* @param name The name of this v3 App Service Environment.
* @param resourceGroupName The name of the Resource Group where the v3 App Service Environment exists.
* @return A collection of values returned by getEnvironmentV3.
*/
public suspend fun getEnvironmentV3(name: String, resourceGroupName: String):
GetEnvironmentV3Result {
val argument = GetEnvironmentV3PlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getEnvironmentV3ResultToKotlin(getEnvironmentV3Plain(argument.toJava()).await())
}
/**
* @see [getEnvironmentV3].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetEnvironmentV3PlainArgs].
* @return A collection of values returned by getEnvironmentV3.
*/
public suspend
fun getEnvironmentV3(argument: suspend GetEnvironmentV3PlainArgsBuilder.() -> Unit):
GetEnvironmentV3Result {
val builder = GetEnvironmentV3PlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getEnvironmentV3ResultToKotlin(getEnvironmentV3Plain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about a Function App.
* !> **Note:** The `azure.appservice.FunctionApp` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `azure.appservice.LinuxFunctionApp` data sources instead.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getFunctionApp({
* name: "test-azure-functions",
* resourceGroupName: exampleAzurermResourceGroup.name,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_function_app(name="test-azure-functions",
* resource_group_name=example_azurerm_resource_group["name"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetFunctionApp.Invoke(new()
* {
* Name = "test-azure-functions",
* ResourceGroupName = exampleAzurermResourceGroup.Name,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appservice.LookupFunctionApp(ctx, &appservice.LookupFunctionAppArgs{
* Name: "test-azure-functions",
* ResourceGroupName: exampleAzurermResourceGroup.Name,
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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.GetFunctionAppArgs;
* 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.getFunctionApp(GetFunctionAppArgs.builder()
* .name("test-azure-functions")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getFunctionApp
* Arguments:
* name: test-azure-functions
* resourceGroupName: ${exampleAzurermResourceGroup.name}
* ```
*
* @param argument A collection of arguments for invoking getFunctionApp.
* @return A collection of values returned by getFunctionApp.
*/
public suspend fun getFunctionApp(argument: GetFunctionAppPlainArgs): GetFunctionAppResult =
getFunctionAppResultToKotlin(getFunctionAppPlain(argument.toJava()).await())
/**
* @see [getFunctionApp].
* @param name The name of the Function App resource.
* @param resourceGroupName The name of the Resource Group where the Function App exists.
* @param tags
* @return A collection of values returned by getFunctionApp.
*/
public suspend fun getFunctionApp(
name: String,
resourceGroupName: String,
tags: Map? = null,
): GetFunctionAppResult {
val argument = GetFunctionAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
tags = tags,
)
return getFunctionAppResultToKotlin(getFunctionAppPlain(argument.toJava()).await())
}
/**
* @see [getFunctionApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppPlainArgs].
* @return A collection of values returned by getFunctionApp.
*/
public suspend fun getFunctionApp(argument: suspend GetFunctionAppPlainArgsBuilder.() -> Unit):
GetFunctionAppResult {
val builder = GetFunctionAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFunctionAppResultToKotlin(getFunctionAppPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to fetch the Host Keys of an existing Function App
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getFunctionAppHostKeys({
* name: "example-function",
* resourceGroupName: exampleAzurermResourceGroup.name,
* });
* ```
* ```python
* 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"])
* ```
* ```csharp
* 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,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getFunctionAppHostKeys
* Arguments:
* name: example-function
* resourceGroupName: ${exampleAzurermResourceGroup.name}
* ```
*
* @param argument A collection of arguments for invoking getFunctionAppHostKeys.
* @return A collection of values returned by getFunctionAppHostKeys.
*/
public suspend fun getFunctionAppHostKeys(argument: GetFunctionAppHostKeysPlainArgs):
GetFunctionAppHostKeysResult =
getFunctionAppHostKeysResultToKotlin(getFunctionAppHostKeysPlain(argument.toJava()).await())
/**
* @see [getFunctionAppHostKeys].
* @param name The name of the Function App.
* @param resourceGroupName The name of the Resource Group where the Function App exists.
* @return A collection of values returned by getFunctionAppHostKeys.
*/
public suspend fun getFunctionAppHostKeys(name: String, resourceGroupName: String):
GetFunctionAppHostKeysResult {
val argument = GetFunctionAppHostKeysPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getFunctionAppHostKeysResultToKotlin(getFunctionAppHostKeysPlain(argument.toJava()).await())
}
/**
* @see [getFunctionAppHostKeys].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppHostKeysPlainArgs].
* @return A collection of values returned by getFunctionAppHostKeys.
*/
public suspend
fun getFunctionAppHostKeys(argument: suspend GetFunctionAppHostKeysPlainArgsBuilder.() -> Unit):
GetFunctionAppHostKeysResult {
val builder = GetFunctionAppHostKeysPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFunctionAppHostKeysResultToKotlin(getFunctionAppHostKeysPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Linux Function App.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getLinuxFunctionApp({
* name: "existing",
* resourceGroupName: "existing",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_linux_function_app(name="existing",
* resource_group_name="existing")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetLinuxFunctionApp.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getLinuxFunctionAppResult => getLinuxFunctionAppResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupLinuxFunctionApp(ctx, &appservice.LookupLinuxFunctionAppArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetLinuxFunctionAppArgs;
* 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.getLinuxFunctionApp(GetLinuxFunctionAppArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* ctx.export("id", example.applyValue(getLinuxFunctionAppResult -> getLinuxFunctionAppResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getLinuxFunctionApp
* Arguments:
* name: existing
* resourceGroupName: existing
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getLinuxFunctionApp.
* @return A collection of values returned by getLinuxFunctionApp.
*/
public suspend fun getLinuxFunctionApp(argument: GetLinuxFunctionAppPlainArgs):
GetLinuxFunctionAppResult =
getLinuxFunctionAppResultToKotlin(getLinuxFunctionAppPlain(argument.toJava()).await())
/**
* @see [getLinuxFunctionApp].
* @param name The name which should be used for this Linux Function App.
* @param resourceGroupName The name of the Resource Group where the Linux Function App should exist.
* @return A collection of values returned by getLinuxFunctionApp.
*/
public suspend fun getLinuxFunctionApp(name: String, resourceGroupName: String):
GetLinuxFunctionAppResult {
val argument = GetLinuxFunctionAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getLinuxFunctionAppResultToKotlin(getLinuxFunctionAppPlain(argument.toJava()).await())
}
/**
* @see [getLinuxFunctionApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetLinuxFunctionAppPlainArgs].
* @return A collection of values returned by getLinuxFunctionApp.
*/
public suspend
fun getLinuxFunctionApp(argument: suspend GetLinuxFunctionAppPlainArgsBuilder.() -> Unit):
GetLinuxFunctionAppResult {
val builder = GetLinuxFunctionAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getLinuxFunctionAppResultToKotlin(getLinuxFunctionAppPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Linux Web App.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getLinuxWebApp({
* name: "existing",
* resourceGroupName: "existing",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_linux_web_app(name="existing",
* resource_group_name="existing")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetLinuxWebApp.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getLinuxWebAppResult => getLinuxWebAppResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupLinuxWebApp(ctx, &appservice.LookupLinuxWebAppArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetLinuxWebAppArgs;
* 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.getLinuxWebApp(GetLinuxWebAppArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* ctx.export("id", example.applyValue(getLinuxWebAppResult -> getLinuxWebAppResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getLinuxWebApp
* Arguments:
* name: existing
* resourceGroupName: existing
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getLinuxWebApp.
* @return A collection of values returned by getLinuxWebApp.
*/
public suspend fun getLinuxWebApp(argument: GetLinuxWebAppPlainArgs): GetLinuxWebAppResult =
getLinuxWebAppResultToKotlin(getLinuxWebAppPlain(argument.toJava()).await())
/**
* @see [getLinuxWebApp].
* @param name The name of this Linux Web App.
* @param resourceGroupName The name of the Resource Group where the Linux Web App exists.
* @return A collection of values returned by getLinuxWebApp.
*/
public suspend fun getLinuxWebApp(name: String, resourceGroupName: String): GetLinuxWebAppResult {
val argument = GetLinuxWebAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getLinuxWebAppResultToKotlin(getLinuxWebAppPlain(argument.toJava()).await())
}
/**
* @see [getLinuxWebApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetLinuxWebAppPlainArgs].
* @return A collection of values returned by getLinuxWebApp.
*/
public suspend fun getLinuxWebApp(argument: suspend GetLinuxWebAppPlainArgsBuilder.() -> Unit):
GetLinuxWebAppResult {
val builder = GetLinuxWebAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getLinuxWebAppResultToKotlin(getLinuxWebAppPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Service Plan.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getServicePlan({
* name: "existing",
* resourceGroupName: "existing",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_service_plan(name="existing",
* resource_group_name="existing")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetServicePlan.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getServicePlanResult => getServicePlanResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupServicePlan(ctx, &appservice.LookupServicePlanArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetServicePlanArgs;
* 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.getServicePlan(GetServicePlanArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* ctx.export("id", example.applyValue(getServicePlanResult -> getServicePlanResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getServicePlan
* Arguments:
* name: existing
* resourceGroupName: existing
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getServicePlan.
* @return A collection of values returned by getServicePlan.
*/
public suspend fun getServicePlan(argument: GetServicePlanPlainArgs): GetServicePlanResult =
getServicePlanResultToKotlin(getServicePlanPlain(argument.toJava()).await())
/**
* @see [getServicePlan].
* @param name The name of this Service Plan.
* @param resourceGroupName The name of the Resource Group where the Service Plan exists.
* @return A collection of values returned by getServicePlan.
*/
public suspend fun getServicePlan(name: String, resourceGroupName: String): GetServicePlanResult {
val argument = GetServicePlanPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getServicePlanResultToKotlin(getServicePlanPlain(argument.toJava()).await())
}
/**
* @see [getServicePlan].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetServicePlanPlainArgs].
* @return A collection of values returned by getServicePlan.
*/
public suspend fun getServicePlan(argument: suspend GetServicePlanPlainArgsBuilder.() -> Unit):
GetServicePlanResult {
val builder = GetServicePlanPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServicePlanResultToKotlin(getServicePlanPlain(builtArgument.toJava()).await())
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getSourceControlToken({
* type: "GitHub",
* });
* export const id = exampleAzurermAppServiceGithubToken.id;
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_source_control_token(type="GitHub")
* pulumi.export("id", example_azurerm_app_service_github_token["id"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetSourceControlToken.Invoke(new()
* {
* Type = "GitHub",
* });
* return new Dictionary
* {
* ["id"] = exampleAzurermAppServiceGithubToken.Id,
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appservice.LookupSourceControlToken(ctx, &appservice.LookupSourceControlTokenArgs{
* Type: "GitHub",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", exampleAzurermAppServiceGithubToken.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetSourceControlTokenArgs;
* 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.getSourceControlToken(GetSourceControlTokenArgs.builder()
* .type("GitHub")
* .build());
* ctx.export("id", exampleAzurermAppServiceGithubToken.id());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getSourceControlToken
* Arguments:
* type: GitHub
* outputs:
* id: ${exampleAzurermAppServiceGithubToken.id}
* ```
*
* @param argument A collection of arguments for invoking getSourceControlToken.
* @return A collection of values returned by getSourceControlToken.
*/
public suspend fun getSourceControlToken(argument: GetSourceControlTokenPlainArgs):
GetSourceControlTokenResult =
getSourceControlTokenResultToKotlin(getSourceControlTokenPlain(argument.toJava()).await())
/**
* @see [getSourceControlToken].
* @param type The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`.
* @return A collection of values returned by getSourceControlToken.
*/
public suspend fun getSourceControlToken(type: String): GetSourceControlTokenResult {
val argument = GetSourceControlTokenPlainArgs(
type = type,
)
return getSourceControlTokenResultToKotlin(getSourceControlTokenPlain(argument.toJava()).await())
}
/**
* @see [getSourceControlToken].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetSourceControlTokenPlainArgs].
* @return A collection of values returned by getSourceControlToken.
*/
public suspend
fun getSourceControlToken(argument: suspend GetSourceControlTokenPlainArgsBuilder.() -> Unit):
GetSourceControlTokenResult {
val builder = GetSourceControlTokenPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSourceControlTokenResultToKotlin(getSourceControlTokenPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Static Web App.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getStaticWebApp({
* name: "existing",
* resourceGroupName: "existing",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_static_web_app(name="existing",
* resource_group_name="existing")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetStaticWebApp.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appservice.LookupStaticWebApp(ctx, &appservice.LookupStaticWebAppArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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.GetStaticWebAppArgs;
* 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.getStaticWebApp(GetStaticWebAppArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getStaticWebApp
* Arguments:
* name: existing
* resourceGroupName: existing
* ```
*
* @param argument A collection of arguments for invoking getStaticWebApp.
* @return A collection of values returned by getStaticWebApp.
*/
public suspend fun getStaticWebApp(argument: GetStaticWebAppPlainArgs): GetStaticWebAppResult =
getStaticWebAppResultToKotlin(getStaticWebAppPlain(argument.toJava()).await())
/**
* @see [getStaticWebApp].
* @param name The name of this Static Web App.
* @param resourceGroupName The name of the Resource Group where the Static Web App exists.
* @return A collection of values returned by getStaticWebApp.
*/
public suspend fun getStaticWebApp(name: String, resourceGroupName: String):
GetStaticWebAppResult {
val argument = GetStaticWebAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getStaticWebAppResultToKotlin(getStaticWebAppPlain(argument.toJava()).await())
}
/**
* @see [getStaticWebApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetStaticWebAppPlainArgs].
* @return A collection of values returned by getStaticWebApp.
*/
public suspend fun getStaticWebApp(argument: suspend GetStaticWebAppPlainArgsBuilder.() -> Unit):
GetStaticWebAppResult {
val builder = GetStaticWebAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getStaticWebAppResultToKotlin(getStaticWebAppPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Windows Function App.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getWindowsFunctionApp({
* name: "existing",
* resourceGroupName: "existing",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_windows_function_app(name="existing",
* resource_group_name="existing")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetWindowsFunctionApp.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getWindowsFunctionAppResult => getWindowsFunctionAppResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupWindowsFunctionApp(ctx, &appservice.LookupWindowsFunctionAppArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetWindowsFunctionAppArgs;
* 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.getWindowsFunctionApp(GetWindowsFunctionAppArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* ctx.export("id", example.applyValue(getWindowsFunctionAppResult -> getWindowsFunctionAppResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getWindowsFunctionApp
* Arguments:
* name: existing
* resourceGroupName: existing
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getWindowsFunctionApp.
* @return A collection of values returned by getWindowsFunctionApp.
*/
public suspend fun getWindowsFunctionApp(argument: GetWindowsFunctionAppPlainArgs):
GetWindowsFunctionAppResult =
getWindowsFunctionAppResultToKotlin(getWindowsFunctionAppPlain(argument.toJava()).await())
/**
* @see [getWindowsFunctionApp].
* @param name The name of this Windows Function App.
* @param resourceGroupName The name of the Resource Group where the Windows Function App exists.
* @return A collection of values returned by getWindowsFunctionApp.
*/
public suspend fun getWindowsFunctionApp(name: String, resourceGroupName: String):
GetWindowsFunctionAppResult {
val argument = GetWindowsFunctionAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getWindowsFunctionAppResultToKotlin(getWindowsFunctionAppPlain(argument.toJava()).await())
}
/**
* @see [getWindowsFunctionApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetWindowsFunctionAppPlainArgs].
* @return A collection of values returned by getWindowsFunctionApp.
*/
public suspend
fun getWindowsFunctionApp(argument: suspend GetWindowsFunctionAppPlainArgsBuilder.() -> Unit):
GetWindowsFunctionAppResult {
val builder = GetWindowsFunctionAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWindowsFunctionAppResultToKotlin(getWindowsFunctionAppPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Windows Web App.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.appservice.getWindowsWebApp({
* name: "existing",
* resourceGroupName: "existing",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appservice.get_windows_web_app(name="existing",
* resource_group_name="existing")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.AppService.GetWindowsWebApp.Invoke(new()
* {
* Name = "existing",
* ResourceGroupName = "existing",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getWindowsWebAppResult => getWindowsWebAppResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appservice.LookupWindowsWebApp(ctx, &appservice.LookupWindowsWebAppArgs{
* Name: "existing",
* ResourceGroupName: "existing",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* 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.GetWindowsWebAppArgs;
* 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.getWindowsWebApp(GetWindowsWebAppArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
* ctx.export("id", example.applyValue(getWindowsWebAppResult -> getWindowsWebAppResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:appservice:getWindowsWebApp
* Arguments:
* name: existing
* resourceGroupName: existing
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getWindowsWebApp.
* @return A collection of values returned by getWindowsWebApp.
*/
public suspend fun getWindowsWebApp(argument: GetWindowsWebAppPlainArgs): GetWindowsWebAppResult =
getWindowsWebAppResultToKotlin(getWindowsWebAppPlain(argument.toJava()).await())
/**
* @see [getWindowsWebApp].
* @param name The name of this Windows Web App.
* @param resourceGroupName The name of the Resource Group where the Windows Web App exists.
* @return A collection of values returned by getWindowsWebApp.
*/
public suspend fun getWindowsWebApp(name: String, resourceGroupName: String):
GetWindowsWebAppResult {
val argument = GetWindowsWebAppPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getWindowsWebAppResultToKotlin(getWindowsWebAppPlain(argument.toJava()).await())
}
/**
* @see [getWindowsWebApp].
* @param argument Builder for [com.pulumi.azure.appservice.kotlin.inputs.GetWindowsWebAppPlainArgs].
* @return A collection of values returned by getWindowsWebApp.
*/
public suspend
fun getWindowsWebApp(argument: suspend GetWindowsWebAppPlainArgsBuilder.() -> Unit):
GetWindowsWebAppResult {
val builder = GetWindowsWebAppPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWindowsWebAppResultToKotlin(getWindowsWebAppPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy