1. Packages
  2. Azure Native
  3. API Docs
  4. compute
  5. DiskAccessAPrivateEndpointConnection
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.compute.DiskAccessAPrivateEndpointConnection

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    The Private Endpoint Connection resource. Azure REST API version: 2022-07-02. Prior API version in Azure Native 1.x: 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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    disk_access_a_private_endpoint_connection = azure_native.compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection",
        disk_access_name="myDiskAccess",
        private_endpoint_connection_name="myPrivateEndpointConnection",
        private_link_service_connection_state={
            "description": "Approving myPrivateEndpointConnection",
            "status": azure_native.compute.PrivateEndpointServiceConnectionStatus.APPROVED,
        },
        resource_group_name="myResourceGroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const diskAccessAPrivateEndpointConnection = new azure_native.compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection", {
        diskAccessName: "myDiskAccess",
        privateEndpointConnectionName: "myPrivateEndpointConnection",
        privateLinkServiceConnectionState: {
            description: "Approving myPrivateEndpointConnection",
            status: azure_native.compute.PrivateEndpointServiceConnectionStatus.Approved,
        },
        resourceGroupName: "myResourceGroup",
    });
    
    resources:
      diskAccessAPrivateEndpointConnection:
        type: azure-native:compute:DiskAccessAPrivateEndpointConnection
        properties:
          diskAccessName: myDiskAccess
          privateEndpointConnectionName: myPrivateEndpointConnection
          privateLinkServiceConnectionState:
            description: Approving myPrivateEndpointConnection
            status: Approved
          resourceGroupName: myResourceGroup
    

    Create DiskAccessAPrivateEndpointConnection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DiskAccessAPrivateEndpointConnection(name: string, args: DiskAccessAPrivateEndpointConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def DiskAccessAPrivateEndpointConnection(resource_name: str,
                                             args: DiskAccessAPrivateEndpointConnectionArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskAccessAPrivateEndpointConnection(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             disk_access_name: Optional[str] = None,
                                             private_link_service_connection_state: Optional[PrivateLinkServiceConnectionStateArgs] = None,
                                             resource_group_name: Optional[str] = None,
                                             private_endpoint_connection_name: Optional[str] = None)
    func NewDiskAccessAPrivateEndpointConnection(ctx *Context, name string, args DiskAccessAPrivateEndpointConnectionArgs, opts ...ResourceOption) (*DiskAccessAPrivateEndpointConnection, error)
    public DiskAccessAPrivateEndpointConnection(string name, DiskAccessAPrivateEndpointConnectionArgs args, CustomResourceOptions? opts = null)
    public DiskAccessAPrivateEndpointConnection(String name, DiskAccessAPrivateEndpointConnectionArgs args)
    public DiskAccessAPrivateEndpointConnection(String name, DiskAccessAPrivateEndpointConnectionArgs args, CustomResourceOptions options)
    
    type: azure-native:compute:DiskAccessAPrivateEndpointConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DiskAccessAPrivateEndpointConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DiskAccessAPrivateEndpointConnectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DiskAccessAPrivateEndpointConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiskAccessAPrivateEndpointConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiskAccessAPrivateEndpointConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var diskAccessAPrivateEndpointConnectionResource = new AzureNative.Compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnectionResource", new()
    {
        DiskAccessName = "string",
        PrivateLinkServiceConnectionState = new AzureNative.Compute.Inputs.PrivateLinkServiceConnectionStateArgs
        {
            ActionsRequired = "string",
            Description = "string",
            Status = "string",
        },
        ResourceGroupName = "string",
        PrivateEndpointConnectionName = "string",
    });
    
    example, err := compute.NewDiskAccessAPrivateEndpointConnection(ctx, "diskAccessAPrivateEndpointConnectionResource", &compute.DiskAccessAPrivateEndpointConnectionArgs{
    	DiskAccessName: pulumi.String("string"),
    	PrivateLinkServiceConnectionState: &compute.PrivateLinkServiceConnectionStateArgs{
    		ActionsRequired: pulumi.String("string"),
    		Description:     pulumi.String("string"),
    		Status:          pulumi.String("string"),
    	},
    	ResourceGroupName:             pulumi.String("string"),
    	PrivateEndpointConnectionName: pulumi.String("string"),
    })
    
    var diskAccessAPrivateEndpointConnectionResource = new DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnectionResource", DiskAccessAPrivateEndpointConnectionArgs.builder()
        .diskAccessName("string")
        .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
            .actionsRequired("string")
            .description("string")
            .status("string")
            .build())
        .resourceGroupName("string")
        .privateEndpointConnectionName("string")
        .build());
    
    disk_access_a_private_endpoint_connection_resource = azure_native.compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnectionResource",
        disk_access_name="string",
        private_link_service_connection_state={
            "actions_required": "string",
            "description": "string",
            "status": "string",
        },
        resource_group_name="string",
        private_endpoint_connection_name="string")
    
    const diskAccessAPrivateEndpointConnectionResource = new azure_native.compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnectionResource", {
        diskAccessName: "string",
        privateLinkServiceConnectionState: {
            actionsRequired: "string",
            description: "string",
            status: "string",
        },
        resourceGroupName: "string",
        privateEndpointConnectionName: "string",
    });
    
    type: azure-native:compute:DiskAccessAPrivateEndpointConnection
    properties:
        diskAccessName: string
        privateEndpointConnectionName: string
        privateLinkServiceConnectionState:
            actionsRequired: string
            description: string
            status: string
        resourceGroupName: string
    

    DiskAccessAPrivateEndpointConnection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DiskAccessAPrivateEndpointConnection resource accepts the following input properties:

    DiskAccessName string
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    PrivateLinkServiceConnectionState Pulumi.AzureNative.Compute.Inputs.PrivateLinkServiceConnectionState
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    ResourceGroupName string
    The name of the resource group.
    PrivateEndpointConnectionName string
    The name of the private endpoint connection.
    DiskAccessName string
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateArgs
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    ResourceGroupName string
    The name of the resource group.
    PrivateEndpointConnectionName string
    The name of the private endpoint connection.
    diskAccessName String
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    privateLinkServiceConnectionState PrivateLinkServiceConnectionState
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    resourceGroupName String
    The name of the resource group.
    privateEndpointConnectionName String
    The name of the private endpoint connection.
    diskAccessName string
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    privateLinkServiceConnectionState PrivateLinkServiceConnectionState
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    resourceGroupName string
    The name of the resource group.
    privateEndpointConnectionName string
    The name of the private endpoint connection.
    disk_access_name str
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    private_link_service_connection_state PrivateLinkServiceConnectionStateArgs
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    resource_group_name str
    The name of the resource group.
    private_endpoint_connection_name str
    The name of the private endpoint connection.
    diskAccessName String
    The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
    privateLinkServiceConnectionState Property Map
    A collection of information about the state of the connection between DiskAccess and Virtual Network.
    resourceGroupName String
    The name of the resource group.
    privateEndpointConnectionName String
    The name of the private endpoint connection.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DiskAccessAPrivateEndpointConnection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    private endpoint connection name
    PrivateEndpoint Pulumi.AzureNative.Compute.Outputs.PrivateEndpointResponse
    The resource of private end point.
    ProvisioningState string
    The provisioning state of the private endpoint connection resource.
    Type string
    private endpoint connection type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    private endpoint connection name
    PrivateEndpoint PrivateEndpointResponse
    The resource of private end point.
    ProvisioningState string
    The provisioning state of the private endpoint connection resource.
    Type string
    private endpoint connection type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    private endpoint connection name
    privateEndpoint PrivateEndpointResponse
    The resource of private end point.
    provisioningState String
    The provisioning state of the private endpoint connection resource.
    type String
    private endpoint connection type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    private endpoint connection name
    privateEndpoint PrivateEndpointResponse
    The resource of private end point.
    provisioningState string
    The provisioning state of the private endpoint connection resource.
    type string
    private endpoint connection type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    private endpoint connection name
    private_endpoint PrivateEndpointResponse
    The resource of private end point.
    provisioning_state str
    The provisioning state of the private endpoint connection resource.
    type str
    private endpoint connection type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    private endpoint connection name
    privateEndpoint Property Map
    The resource of private end point.
    provisioningState String
    The provisioning state of the private endpoint connection resource.
    type String
    private endpoint connection type

    Supporting Types

    PrivateEndpointResponse, PrivateEndpointResponseArgs

    Id string
    The ARM identifier for Private Endpoint
    Id string
    The ARM identifier for Private Endpoint
    id String
    The ARM identifier for Private Endpoint
    id string
    The ARM identifier for Private Endpoint
    id str
    The ARM identifier for Private Endpoint
    id String
    The ARM identifier for Private Endpoint

    PrivateEndpointServiceConnectionStatus, PrivateEndpointServiceConnectionStatusArgs

    Pending
    Pending
    Approved
    Approved
    Rejected
    Rejected
    PrivateEndpointServiceConnectionStatusPending
    Pending
    PrivateEndpointServiceConnectionStatusApproved
    Approved
    PrivateEndpointServiceConnectionStatusRejected
    Rejected
    Pending
    Pending
    Approved
    Approved
    Rejected
    Rejected
    Pending
    Pending
    Approved
    Approved
    Rejected
    Rejected
    PENDING
    Pending
    APPROVED
    Approved
    REJECTED
    Rejected
    "Pending"
    Pending
    "Approved"
    Approved
    "Rejected"
    Rejected

    PrivateLinkServiceConnectionState, PrivateLinkServiceConnectionStateArgs

    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string | Pulumi.AzureNative.Compute.PrivateEndpointServiceConnectionStatus
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string | PrivateEndpointServiceConnectionStatus
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String | PrivateEndpointServiceConnectionStatus
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    description string
    The reason for approval/rejection of the connection.
    status string | PrivateEndpointServiceConnectionStatus
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actions_required str
    A message indicating if changes on the service provider require any updates on the consumer.
    description str
    The reason for approval/rejection of the connection.
    status str | PrivateEndpointServiceConnectionStatus
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String | "Pending" | "Approved" | "Rejected"
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

    PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs

    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    ActionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    Description string
    The reason for approval/rejection of the connection.
    Status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired string
    A message indicating if changes on the service provider require any updates on the consumer.
    description string
    The reason for approval/rejection of the connection.
    status string
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actions_required str
    A message indicating if changes on the service provider require any updates on the consumer.
    description str
    The reason for approval/rejection of the connection.
    status str
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
    actionsRequired String
    A message indicating if changes on the service provider require any updates on the consumer.
    description String
    The reason for approval/rejection of the connection.
    status String
    Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi