Volume Args
data class VolumeArgs(val accountName: Output<String>? = null, val avsDataStore: Output<Either<String, AvsDataStore>>? = null, val backupId: Output<String>? = null, val capacityPoolResourceId: Output<String>? = null, val coolAccess: Output<Boolean>? = null, val coolnessPeriod: Output<Int>? = null, val creationToken: Output<String>? = null, val dataProtection: Output<VolumePropertiesDataProtectionArgs>? = null, val defaultGroupQuotaInKiBs: Output<Double>? = null, val defaultUserQuotaInKiBs: Output<Double>? = null, val deleteBaseSnapshot: Output<Boolean>? = null, val enableSubvolumes: Output<Either<String, EnableSubvolumes>>? = null, val encryptionKeySource: Output<Either<String, EncryptionKeySource>>? = null, val exportPolicy: Output<VolumePropertiesExportPolicyArgs>? = null, val isDefaultQuotaEnabled: Output<Boolean>? = null, val isLargeVolume: Output<Boolean>? = null, val isRestoring: Output<Boolean>? = null, val kerberosEnabled: Output<Boolean>? = null, val keyVaultPrivateEndpointResourceId: Output<String>? = null, val ldapEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val networkFeatures: Output<Either<String, NetworkFeatures>>? = null, val placementRules: Output<List<PlacementKeyValuePairsArgs>>? = null, val poolName: Output<String>? = null, val protocolTypes: Output<List<String>>? = null, val proximityPlacementGroup: Output<String>? = null, val resourceGroupName: Output<String>? = null, val securityStyle: Output<Either<String, SecurityStyle>>? = null, val serviceLevel: Output<Either<String, ServiceLevel>>? = null, val smbAccessBasedEnumeration: Output<Either<String, SmbAccessBasedEnumeration>>? = null, val smbContinuouslyAvailable: Output<Boolean>? = null, val smbEncryption: Output<Boolean>? = null, val smbNonBrowsable: Output<Either<String, SmbNonBrowsable>>? = 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 unixPermissions: Output<String>? = null, val usageThreshold: Output<Double>? = null, val volumeName: Output<String>? = null, val volumeSpecName: Output<String>? = null, val volumeType: Output<String>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<VolumeArgs>
Volume resource Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 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",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/netapp/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun VolumeArgs(accountName: Output<String>? = null, avsDataStore: Output<Either<String, AvsDataStore>>? = null, backupId: Output<String>? = null, capacityPoolResourceId: Output<String>? = null, coolAccess: Output<Boolean>? = null, coolnessPeriod: Output<Int>? = null, creationToken: Output<String>? = null, dataProtection: Output<VolumePropertiesDataProtectionArgs>? = null, defaultGroupQuotaInKiBs: Output<Double>? = null, defaultUserQuotaInKiBs: Output<Double>? = null, deleteBaseSnapshot: Output<Boolean>? = null, enableSubvolumes: Output<Either<String, EnableSubvolumes>>? = null, encryptionKeySource: Output<Either<String, EncryptionKeySource>>? = null, exportPolicy: Output<VolumePropertiesExportPolicyArgs>? = null, isDefaultQuotaEnabled: Output<Boolean>? = null, isLargeVolume: Output<Boolean>? = null, isRestoring: Output<Boolean>? = null, kerberosEnabled: Output<Boolean>? = null, keyVaultPrivateEndpointResourceId: Output<String>? = null, ldapEnabled: Output<Boolean>? = null, location: Output<String>? = null, networkFeatures: Output<Either<String, NetworkFeatures>>? = null, placementRules: Output<List<PlacementKeyValuePairsArgs>>? = null, poolName: Output<String>? = null, protocolTypes: Output<List<String>>? = null, proximityPlacementGroup: Output<String>? = null, resourceGroupName: Output<String>? = null, securityStyle: Output<Either<String, SecurityStyle>>? = null, serviceLevel: Output<Either<String, ServiceLevel>>? = null, smbAccessBasedEnumeration: Output<Either<String, SmbAccessBasedEnumeration>>? = null, smbContinuouslyAvailable: Output<Boolean>? = null, smbEncryption: Output<Boolean>? = null, smbNonBrowsable: Output<Either<String, SmbNonBrowsable>>? = null, snapshotDirectoryVisible: Output<Boolean>? = null, snapshotId: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null, throughputMibps: Output<Double>? = null, unixPermissions: Output<String>? = null, usageThreshold: Output<Double>? = null, volumeName: Output<String>? = null, volumeSpecName: Output<String>? = null, volumeType: Output<String>? = null, zones: Output<List<String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users.
Link copied to clipboard