azure-native.compute.DiskAccess
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DiskAccess resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- 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.
- Location string
- Resource location
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - The name of the resource group.
- 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.
- Location string
- Resource location
- map[string]string
- Resource tags
- resource
Group StringName - The name of the resource group.
- 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.
- location String
- Resource location
- Map<String,String>
- Resource tags
- resource
Group stringName - The name of the resource group.
- 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.
- location string
- Resource location
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - The name of the resource group.
- 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.
- location str
- Resource location
- Mapping[str, str]
- Resource tags
- resource
Group StringName - The name of the resource group.
- 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.
- location String
- Resource location
- 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
- Private
Endpoint List<Pulumi.Connections Azure Native. Compute. Outputs. Private Endpoint Connection Response> - A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
- Provisioning
State string - The disk access resource provisioning state.
- Time
Created 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
- Private
Endpoint []PrivateConnections Endpoint Connection Response - A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
- Provisioning
State string - The disk access resource provisioning state.
- Time
Created 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
- private
Endpoint List<PrivateConnections Endpoint Connection Response> - A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
- provisioning
State String - The disk access resource provisioning state.
- time
Created 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
- private
Endpoint PrivateConnections Endpoint Connection Response[] - A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
- provisioning
State string - The disk access resource provisioning state.
- time
Created 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_ Sequence[Privateconnections Endpoint Connection Response] - 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
- private
Endpoint List<Property Map>Connections - A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
- provisioning
State String - The disk access resource provisioning state.
- time
Created 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
- Private
Endpoint Pulumi.Azure Native. Compute. Inputs. Private Endpoint Response - The resource of private end point.
- Private
Link Pulumi.Service Connection State Azure Native. Compute. Inputs. Private Link Service Connection State Response - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- Provisioning
State 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
- Private
Endpoint PrivateEndpoint Response - The resource of private end point.
- Private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- Provisioning
State 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
- private
Endpoint PrivateEndpoint Response - The resource of private end point.
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- provisioning
State 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
- private
Endpoint PrivateEndpoint Response - The resource of private end point.
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- provisioning
State 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 PrivateEndpoint Response - The resource of private end point.
- private_
link_ Privateservice_ connection_ state Link Service Connection State Response - 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
- private
Endpoint Property Map - The resource of private end point.
- private
Link Property MapService Connection State - A collection of information about the state of the connection between DiskAccess and Virtual Network.
- provisioning
State 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
- 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: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