Private Endpoint Connection Args
data class PrivateEndpointConnectionArgs(val eTag: Output<String>? = null, val location: Output<String>? = null, val privateEndpointConnectionName: Output<String>? = null, val properties: Output<PrivateEndpointConnectionArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vaultName: Output<String>? = null) : ConvertibleToJava<PrivateEndpointConnectionArgs>
Private Endpoint Connection Response Properties Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2023-02-01, 2023-04-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-04-30-preview, 2024-07-30-preview, 2024-11-01-preview, 2025-01-01, 2025-02-01, 2025-02-28-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native recoveryservices [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Update PrivateEndpointConnection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.RecoveryServices.PrivateEndpointConnection("privateEndpointConnection", new()
{
PrivateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b",
Properties = new AzureNative.RecoveryServices.Inputs.PrivateEndpointConnectionArgs
{
GroupIds = new[]
{
AzureNative.RecoveryServices.VaultSubResourceType.AzureBackup_secondary,
},
PrivateEndpoint = new AzureNative.RecoveryServices.Inputs.PrivateEndpointArgs
{
Id = "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3",
},
PrivateLinkServiceConnectionState = new AzureNative.RecoveryServices.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approved by johndoe@company.com",
Status = AzureNative.RecoveryServices.PrivateEndpointConnectionStatus.Approved,
},
ProvisioningState = AzureNative.RecoveryServices.ProvisioningState.Succeeded,
},
ResourceGroupName = "gaallaRG",
VaultName = "gaallavaultbvtd2msi",
});
});
Content copied to clipboard
package main
import (
recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recoveryservices.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &recoveryservices.PrivateEndpointConnectionArgs{
PrivateEndpointConnectionName: pulumi.String("gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"),
Properties: &recoveryservices.PrivateEndpointConnectionTypeArgs{
GroupIds: pulumi.StringArray{
pulumi.String(recoveryservices.VaultSubResourceType_AzureBackup_secondary),
},
PrivateEndpoint: &recoveryservices.PrivateEndpointArgs{
Id: pulumi.String("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"),
},
PrivateLinkServiceConnectionState: &recoveryservices.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@company.com"),
Status: pulumi.String(recoveryservices.PrivateEndpointConnectionStatusApproved),
},
ProvisioningState: pulumi.String(recoveryservices.ProvisioningStateSucceeded),
},
ResourceGroupName: pulumi.String("gaallaRG"),
VaultName: pulumi.String("gaallavaultbvtd2msi"),
})
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.recoveryservices.PrivateEndpointConnection;
import com.pulumi.azurenative.recoveryservices.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.recoveryservices.inputs.PrivateLinkServiceConnectionStateArgs;
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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName("gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b")
.properties(PrivateEndpointConnectionArgs.builder()
.groupIds("AzureBackup_secondary")
.privateEndpoint(PrivateEndpointArgs.builder()
.id("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3")
.build())
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Approved by johndoe@company.com")
.status("Approved")
.build())
.provisioningState("Succeeded")
.build())
.resourceGroupName("gaallaRG")
.vaultName("gaallavaultbvtd2msi")
.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:recoveryservices:PrivateEndpointConnection gaallatestpe1.3592346090307038890.backup.5704c932-249a-490b-a142-1396838cd3b /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(eTag: Output<String>? = null, location: Output<String>? = null, privateEndpointConnectionName: Output<String>? = null, properties: Output<PrivateEndpointConnectionArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vaultName: Output<String>? = null)