azure-native.compute.DiskAccessAPrivateEndpointConnection
Explore with Pulumi AI
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:
- Disk
Access stringName - 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 Pulumi.Service Connection State Azure Native. Compute. Inputs. Private Link Service Connection State - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- Resource
Group stringName - The name of the resource group.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection.
- Disk
Access stringName - 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 PrivateService Connection State Link Service Connection State Args - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- Resource
Group stringName - The name of the resource group.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection.
- disk
Access StringName - 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 PrivateService Connection State Link Service Connection State - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- resource
Group StringName - The name of the resource group.
- private
Endpoint StringConnection Name - The name of the private endpoint connection.
- disk
Access stringName - 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 PrivateService Connection State Link Service Connection State - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- resource
Group stringName - The name of the resource group.
- private
Endpoint stringConnection Name - The name of the private endpoint connection.
- disk_
access_ strname - 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_ Privateservice_ connection_ state Link Service Connection State Args - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- resource_
group_ strname - The name of the resource group.
- private_
endpoint_ strconnection_ name - The name of the private endpoint connection.
- disk
Access StringName - 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 Property MapService Connection State - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- resource
Group StringName - The name of the resource group.
- private
Endpoint StringConnection Name - 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
- Private
Endpoint Pulumi.Azure Native. Compute. Outputs. Private Endpoint Response - The resource of private end point.
- Provisioning
State 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
- Private
Endpoint PrivateEndpoint Response - The resource of private end point.
- Provisioning
State 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
- private
Endpoint PrivateEndpoint Response - The resource of private end point.
- provisioning
State 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
- private
Endpoint PrivateEndpoint Response - The resource of private end point.
- provisioning
State 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 PrivateEndpoint Response - 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
- private
Endpoint Property Map - The resource of private end point.
- provisioning
State 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
- Private
Endpoint Service Connection Status Pending - Pending
- Private
Endpoint Service Connection Status Approved - Approved
- Private
Endpoint Service Connection Status Rejected - 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
- Actions
Required 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.
Azure Native. Compute. Private Endpoint Service Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- Actions
Required 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 | Private
Endpoint Service Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required 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 | Private
Endpoint Service Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required 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 | Private
Endpoint Service Connection Status - 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 | Private
Endpoint Service Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required 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
- Actions
Required 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 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 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 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.
- actions
Required 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