Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

DiskAccess

disk access resource. API Version: 2020-12-01.

Example Usage

Create a disk access resource.

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var diskAccess = new AzureNative.Compute.DiskAccess("diskAccess", new AzureNative.Compute.DiskAccessArgs
        {
            DiskAccessName = "myDiskAccess",
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
        });
    }

}
package main

import (
	compute "github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.NewDiskAccess(ctx, "diskAccess", &compute.DiskAccessArgs{
			DiskAccessName:    pulumi.String("myDiskAccess"),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var diskAccess = new DiskAccess("diskAccess", DiskAccessArgs.builder()        
            .diskAccessName("myDiskAccess")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

disk_access = azure_native.compute.DiskAccess("diskAccess",
    disk_access_name="myDiskAccess",
    location="West US",
    resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const diskAccess = new azure_native.compute.DiskAccess("diskAccess", {
    diskAccessName: "myDiskAccess",
    location: "West US",
    resourceGroupName: "myResourceGroup",
});
resources:
  diskAccess:
    type: azure-native:compute:DiskAccess
    properties:
      diskAccessName: myDiskAccess
      location: West US
      resourceGroupName: myResourceGroup

Create a DiskAccess Resource

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

name string
The unique name of the resource.
args DiskAccessArgs
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 DiskAccessArgs
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 DiskAccessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DiskAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DiskAccessArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DiskAccess Resource Properties

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

Inputs

The DiskAccess resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

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.

Location string

Resource location

Tags Dictionary<string, string>

Resource tags

ResourceGroupName string

The name of the resource group.

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.

Location string

Resource location

Tags map[string]string

Resource tags

resourceGroupName String

The name of the resource group.

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.

location String

Resource location

tags Map<String,String>

Resource tags

resourceGroupName string

The name of the resource group.

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.

location string

Resource location

tags {[key: string]: string}

Resource tags

resource_group_name str

The name of the resource group.

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.

location str

Resource location

tags Mapping[str, str]

Resource tags

resourceGroupName String

The name of the resource group.

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.

location String

Resource location

tags Map<String>

Resource tags

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

PrivateEndpointConnections List<Pulumi.AzureNative.Compute.Outputs.PrivateEndpointConnectionResponse>

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

ProvisioningState string

The disk access resource provisioning state.

TimeCreated string

The time when the disk access was created.

Type string

Resource type

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

PrivateEndpointConnections []PrivateEndpointConnectionResponse

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

ProvisioningState string

The disk access resource provisioning state.

TimeCreated string

The time when the disk access was created.

Type string

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

privateEndpointConnections List<PrivateEndpointConnectionResponse>

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

provisioningState String

The disk access resource provisioning state.

timeCreated String

The time when the disk access was created.

type String

Resource type

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name

privateEndpointConnections PrivateEndpointConnectionResponse[]

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

provisioningState string

The disk access resource provisioning state.

timeCreated string

The time when the disk access was created.

type string

Resource type

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name

private_endpoint_connections Sequence[PrivateEndpointConnectionResponse]

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

provisioning_state str

The disk access resource provisioning state.

time_created str

The time when the disk access was created.

type str

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

privateEndpointConnections List<Property Map>

A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.

provisioningState String

The disk access resource provisioning state.

timeCreated String

The time when the disk access was created.

type String

Resource type

Supporting Types

PrivateEndpointConnectionResponse

Id string

private endpoint connection Id

Name string

private endpoint connection name

PrivateEndpoint Pulumi.AzureNative.Compute.Inputs.PrivateEndpointResponse

The resource of private end point.

PrivateLinkServiceConnectionState Pulumi.AzureNative.Compute.Inputs.PrivateLinkServiceConnectionStateResponse

A collection of information about the state of the connection between DiskAccess and Virtual Network.

ProvisioningState string

The provisioning state of the private endpoint connection resource.

Type string

private endpoint connection type

Id string

private endpoint connection Id

Name string

private endpoint connection name

PrivateEndpoint PrivateEndpointResponse

The resource of private end point.

PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse

A collection of information about the state of the connection between DiskAccess and Virtual Network.

ProvisioningState string

The provisioning state of the private endpoint connection resource.

Type string

private endpoint connection type

id String

private endpoint connection Id

name String

private endpoint connection name

privateEndpoint PrivateEndpointResponse

The resource of private end point.

privateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse

A collection of information about the state of the connection between DiskAccess and Virtual Network.

provisioningState String

The provisioning state of the private endpoint connection resource.

type String

private endpoint connection type

id string

private endpoint connection Id

name string

private endpoint connection name

privateEndpoint PrivateEndpointResponse

The resource of private end point.

privateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse

A collection of information about the state of the connection between DiskAccess and Virtual Network.

provisioningState string

The provisioning state of the private endpoint connection resource.

type string

private endpoint connection type

id str

private endpoint connection Id

name str

private endpoint connection name

private_endpoint PrivateEndpointResponse

The resource of private end point.

private_link_service_connection_state PrivateLinkServiceConnectionStateResponse

A collection of information about the state of the connection between DiskAccess and Virtual Network.

provisioning_state str

The provisioning state of the private endpoint connection resource.

type str

private endpoint connection type

id String

private endpoint connection Id

name String

private endpoint connection name

privateEndpoint Property Map

The resource of private end point.

privateLinkServiceConnectionState Property Map

A collection of information about the state of the connection between DiskAccess and Virtual Network.

provisioningState String

The provisioning state of the private endpoint connection resource.

type String

private endpoint connection type

PrivateEndpointResponse

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

PrivateLinkServiceConnectionStateResponse

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:DiskAccess myDiskAccess /subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0