VolumeArgs

data class VolumeArgs(val accountName: Output<String>? = null, val backupId: Output<String>? = null, val creationToken: Output<String>? = null, val dataProtection: Output<VolumePropertiesDataProtectionArgs>? = null, val encryptionKeySource: Output<String>? = null, val exportPolicy: Output<VolumePropertiesExportPolicyArgs>? = null, val isRestoring: Output<Boolean>? = null, val kerberosEnabled: Output<Boolean>? = null, val ldapEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val poolName: Output<String>? = null, val protocolTypes: Output<List<String>>? = null, val resourceGroupName: Output<String>? = null, val securityStyle: Output<Either<String, SecurityStyle>>? = null, val serviceLevel: Output<Either<String, ServiceLevel>>? = null, val smbContinuouslyAvailable: Output<Boolean>? = null, val smbEncryption: Output<Boolean>? = null, val snapshotDirectoryVisible: Output<Boolean>? = null, val snapshotId: Output<String>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val throughputMibps: Output<Double>? = null, val usageThreshold: Output<Double>? = null, val volumeName: Output<String>? = null, val volumeType: Output<String>? = null) : ConvertibleToJava<VolumeArgs>

Volume resource API Version: 2020-12-01.

Example Usage

Volumes_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volume = new AzureNative.NetApp.Volume("volume", new()
{
AccountName = "account1",
CreationToken = "my-unique-file-path",
Location = "eastus",
PoolName = "pool1",
ResourceGroupName = "myRG",
ServiceLevel = "Premium",
SubnetId = "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
UsageThreshold = 107374182400,
VolumeName = "volume1",
});
});
package main
import (
netapp "github.com/pulumi/pulumi-azure-native-sdk/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netapp.NewVolume(ctx, "volume", &netapp.VolumeArgs{
AccountName: pulumi.String("account1"),
CreationToken: pulumi.String("my-unique-file-path"),
Location: pulumi.String("eastus"),
PoolName: pulumi.String("pool1"),
ResourceGroupName: pulumi.String("myRG"),
ServiceLevel: pulumi.String("Premium"),
SubnetId: pulumi.String("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
UsageThreshold: pulumi.Float64(107374182400),
VolumeName: pulumi.String("volume1"),
})
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.netapp.Volume;
import com.pulumi.azurenative.netapp.VolumeArgs;
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 volume = new Volume("volume", VolumeArgs.builder()
.accountName("account1")
.creationToken("my-unique-file-path")
.location("eastus")
.poolName("pool1")
.resourceGroupName("myRG")
.serviceLevel("Premium")
.subnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.usageThreshold(107374182400)
.volumeName("volume1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:netapp:Volume account1/pool1/volume1 /subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, backupId: Output<String>? = null, creationToken: Output<String>? = null, dataProtection: Output<VolumePropertiesDataProtectionArgs>? = null, encryptionKeySource: Output<String>? = null, exportPolicy: Output<VolumePropertiesExportPolicyArgs>? = null, isRestoring: Output<Boolean>? = null, kerberosEnabled: Output<Boolean>? = null, ldapEnabled: Output<Boolean>? = null, location: Output<String>? = null, poolName: Output<String>? = null, protocolTypes: Output<List<String>>? = null, resourceGroupName: Output<String>? = null, securityStyle: Output<Either<String, SecurityStyle>>? = null, serviceLevel: Output<Either<String, ServiceLevel>>? = null, smbContinuouslyAvailable: Output<Boolean>? = null, smbEncryption: Output<Boolean>? = null, snapshotDirectoryVisible: Output<Boolean>? = null, snapshotId: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null, throughputMibps: Output<Double>? = null, usageThreshold: Output<Double>? = null, volumeName: Output<String>? = null, volumeType: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The name of the NetApp account

Link copied to clipboard
val backupId: Output<String>? = null

UUID v4 or resource identifier used to identify the Backup.

Link copied to clipboard
val creationToken: Output<String>? = null

A unique file path for the volume. Used when creating mount targets

Link copied to clipboard

DataProtection type volumes include an object containing details of the replication

Link copied to clipboard
val encryptionKeySource: Output<String>? = null

Encryption Key Source. Possible values are: 'Microsoft.NetApp'

Link copied to clipboard

Set of export policy rules

Link copied to clipboard
val isRestoring: Output<Boolean>? = null

Restoring

Link copied to clipboard
val kerberosEnabled: Output<Boolean>? = null

Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later

Link copied to clipboard
val ldapEnabled: Output<Boolean>? = null

Specifies whether LDAP is enabled or not for a given NFS volume.

Link copied to clipboard
val location: Output<String>? = null

Resource location

Link copied to clipboard
val poolName: Output<String>? = null

The name of the capacity pool

Link copied to clipboard
val protocolTypes: Output<List<String>>? = null

Set of protocol types, default NFSv3, CIFS for SMB protocol

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val securityStyle: Output<Either<String, SecurityStyle>>? = null

The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol

Link copied to clipboard
val serviceLevel: Output<Either<String, ServiceLevel>>? = null

The service level of the file system

Link copied to clipboard
val smbContinuouslyAvailable: Output<Boolean>? = null

Enables continuously available share property for smb volume. Only applicable for SMB volume

Link copied to clipboard
val smbEncryption: Output<Boolean>? = null

Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later

Link copied to clipboard
val snapshotDirectoryVisible: Output<Boolean>? = null

If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (default to true).

Link copied to clipboard
val snapshotId: Output<String>? = null

UUID v4 or resource identifier used to identify the Snapshot.

Link copied to clipboard
val subnetId: Output<String>? = null

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags

Link copied to clipboard
val throughputMibps: Output<Double>? = null
Link copied to clipboard
val usageThreshold: Output<Double>? = null

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.

Link copied to clipboard
val volumeName: Output<String>? = null

The name of the volume

Link copied to clipboard
val volumeType: Output<String>? = null

What type of volume is this

Functions

Link copied to clipboard
open override fun toJava(): VolumeArgs