Disk Access APrivate Endpoint Connection
The Private Endpoint Connection resource. Uses Azure REST API version 2022-07-02. In version 1.x of the Azure Native provider, it used API version 2020-12-01. Other available API versions: 2023-01-02, 2023-04-02, 2023-10-02, 2024-03-02.
Example Usage
Approve a Private Endpoint Connection under a disk access resource.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diskAccessAPrivateEndpointConnection = new AzureNative.Compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection", new()
{
DiskAccessName = "myDiskAccess",
PrivateEndpointConnectionName = "myPrivateEndpointConnection",
PrivateLinkServiceConnectionState = new AzureNative.Compute.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approving myPrivateEndpointConnection",
Status = AzureNative.Compute.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "myResourceGroup",
});
});
Content copied to clipboard
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDiskAccessAPrivateEndpointConnection(ctx, "diskAccessAPrivateEndpointConnection", &compute.DiskAccessAPrivateEndpointConnectionArgs{
DiskAccessName: pulumi.String("myDiskAccess"),
PrivateEndpointConnectionName: pulumi.String("myPrivateEndpointConnection"),
PrivateLinkServiceConnectionState: &compute.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approving myPrivateEndpointConnection"),
Status: pulumi.String(compute.PrivateEndpointServiceConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.compute.DiskAccessAPrivateEndpointConnection;
import com.pulumi.azurenative.compute.DiskAccessAPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.compute.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 diskAccessAPrivateEndpointConnection = new DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection", DiskAccessAPrivateEndpointConnectionArgs.builder()
.diskAccessName("myDiskAccess")
.privateEndpointConnectionName("myPrivateEndpointConnection")
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Approving myPrivateEndpointConnection")
.status("Approved")
.build())
.resourceGroupName("myResourceGroup")
.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:compute:DiskAccessAPrivateEndpointConnection myPrivateEndpointConnectionName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}
Content copied to clipboard
Properties
Link copied to clipboard
The resource of private end point.
Link copied to clipboard
A collection of information about the state of the connection between DiskAccess and Virtual Network.
Link copied to clipboard
The provisioning state of the private endpoint connection resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard