App Service Environment Private Endpoint Connection Args
data class AppServiceEnvironmentPrivateEndpointConnectionArgs(val ipAddresses: Output<List<String>>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val privateEndpointConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<PrivateLinkConnectionStateArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<AppServiceEnvironmentPrivateEndpointConnectionArgs>
Remote Private Endpoint Connection ARM resource. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01. Other available API versions: 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Approves or rejects a private endpoint connection.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var appServiceEnvironmentPrivateEndpointConnection = new AzureNative.Web.AppServiceEnvironmentPrivateEndpointConnection("appServiceEnvironmentPrivateEndpointConnection", new()
{
Name = "test-ase",
PrivateEndpointConnectionName = "fa38656c-034e-43d8-adce-fe06ce039c98",
PrivateLinkServiceConnectionState = new AzureNative.Web.Inputs.PrivateLinkConnectionStateArgs
{
Description = "Approved by johndoe@company.com",
Status = "Approved",
},
ResourceGroupName = "test-rg",
});
});
Content copied to clipboard
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewAppServiceEnvironmentPrivateEndpointConnection(ctx, "appServiceEnvironmentPrivateEndpointConnection", &web.AppServiceEnvironmentPrivateEndpointConnectionArgs{
Name: pulumi.String("test-ase"),
PrivateEndpointConnectionName: pulumi.String("fa38656c-034e-43d8-adce-fe06ce039c98"),
PrivateLinkServiceConnectionState: &web.PrivateLinkConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@company.com"),
Status: pulumi.String("Approved"),
},
ResourceGroupName: pulumi.String("test-rg"),
})
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.azurenative.web.AppServiceEnvironmentPrivateEndpointConnection;
import com.pulumi.azurenative.web.AppServiceEnvironmentPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.web.inputs.PrivateLinkConnectionStateArgs;
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) {
var appServiceEnvironmentPrivateEndpointConnection = new AppServiceEnvironmentPrivateEndpointConnection("appServiceEnvironmentPrivateEndpointConnection", AppServiceEnvironmentPrivateEndpointConnectionArgs.builder()
.name("test-ase")
.privateEndpointConnectionName("fa38656c-034e-43d8-adce-fe06ce039c98")
.privateLinkServiceConnectionState(PrivateLinkConnectionStateArgs.builder()
.description("Approved by johndoe@company.com")
.status("Approved")
.build())
.resourceGroupName("test-rg")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:AppServiceEnvironmentPrivateEndpointConnection fa38656c-034e-43d8-adce-fe06ce039c98 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}
Content copied to clipboard