1. Packages
  2. Azure Native v1
  3. API Docs
  4. compute
  5. DiskAccess
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.compute.DiskAccess

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

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

    Example Usage

    Create a disk access resource.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var diskAccess = new AzureNative.Compute.DiskAccess("diskAccess", new()
        {
            DiskAccessName = "myDiskAccess",
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	compute "github.com/pulumi/pulumi-azure-native-sdk/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 com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.compute.DiskAccess;
    import com.pulumi.azurenative.compute.DiskAccessArgs;
    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 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 DiskAccess Resource

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

    Constructor syntax

    new DiskAccess(name: string, args: DiskAccessArgs, opts?: CustomResourceOptions);
    @overload
    def DiskAccess(resource_name: str,
                   args: DiskAccessArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskAccess(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_group_name: Optional[str] = None,
                   disk_access_name: Optional[str] = None,
                   location: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = 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.
    
    

    Parameters

    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.

    Constructor example

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

    var diskAccessResource = new AzureNative.Compute.DiskAccess("diskAccessResource", new()
    {
        ResourceGroupName = "string",
        DiskAccessName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := compute.NewDiskAccess(ctx, "diskAccessResource", &compute.DiskAccessArgs{
    	ResourceGroupName: "string",
    	DiskAccessName:    "string",
    	Location:          "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var diskAccessResource = new DiskAccess("diskAccessResource", DiskAccessArgs.builder()
        .resourceGroupName("string")
        .diskAccessName("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    disk_access_resource = azure_native.compute.DiskAccess("diskAccessResource",
        resource_group_name=string,
        disk_access_name=string,
        location=string,
        tags={
            string: string,
        })
    
    const diskAccessResource = new azure_native.compute.DiskAccess("diskAccessResource", {
        resourceGroupName: "string",
        diskAccessName: "string",
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:compute:DiskAccess
    properties:
        diskAccessName: string
        location: string
        resourceGroupName: string
        tags:
            string: string
    

    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, PrivateEndpointConnectionResponseArgs

    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, 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

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

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi