We recommend using Azure Native.
Viewing docs for Azure v6.39.0
published on Tuesday, Jul 14, 2026 by Pulumi
published on Tuesday, Jul 14, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v6.39.0
published on Tuesday, Jul 14, 2026 by Pulumi
published on Tuesday, Jul 14, 2026 by Pulumi
Use this data source to access information about an existing NetApp Files Volume Bucket.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getVolumeBucket({
name: "example-bucket",
netappVolumeId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume",
});
export const bucketStatus = example.then(example => example.status);
export const bucketServerIpAddress = example.then(example => example.serverIpAddress);
import pulumi
import pulumi_azure as azure
example = azure.netapp.get_volume_bucket(name="example-bucket",
netapp_volume_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume")
pulumi.export("bucketStatus", example.status)
pulumi.export("bucketServerIpAddress", example.server_ip_address)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := netapp.LookupVolumeBucket(ctx, &netapp.LookupVolumeBucketArgs{
Name: "example-bucket",
NetappVolumeId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume",
}, nil)
if err != nil {
return err
}
ctx.Export("bucketStatus", example.Status)
ctx.Export("bucketServerIpAddress", example.ServerIpAddress)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NetApp.GetVolumeBucket.Invoke(new()
{
Name = "example-bucket",
NetappVolumeId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume",
});
return new Dictionary<string, object?>
{
["bucketStatus"] = example.Apply(getVolumeBucketResult => getVolumeBucketResult.Status),
["bucketServerIpAddress"] = example.Apply(getVolumeBucketResult => getVolumeBucketResult.ServerIpAddress),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.inputs.GetVolumeBucketArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var example = NetappFunctions.getVolumeBucket(GetVolumeBucketArgs.builder()
.name("example-bucket")
.netappVolumeId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume")
.build());
ctx.export("bucketStatus", example.status());
ctx.export("bucketServerIpAddress", example.serverIpAddress());
}
}
variables:
example:
fn::invoke:
function: azure:netapp:getVolumeBucket
arguments:
name: example-bucket
netappVolumeId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume
outputs:
bucketStatus: ${example.status}
bucketServerIpAddress: ${example.serverIpAddress}
pulumi {
required_providers {
azure = {
source = "pulumi/azure"
}
}
}
data "azure_netapp_getvolumebucket" "example" {
name = "example-bucket"
netapp_volume_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.NetApp/netAppAccounts/example-anfaccount/capacityPools/example-anfpool/volumes/example-anfvolume"
}
output "bucketStatus" {
value = data.azure_netapp_getvolumebucket.example.status
}
output "bucketServerIpAddress" {
value = data.azure_netapp_getvolumebucket.example.server_ip_address
}
API Providers
This data source uses the following Azure API Providers:
Microsoft.NetApp- 2026-01-01
Using getVolumeBucket
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolumeBucket(args: GetVolumeBucketArgs, opts?: InvokeOptions): Promise<GetVolumeBucketResult>
function getVolumeBucketOutput(args: GetVolumeBucketOutputArgs, opts?: InvokeOptions): Output<GetVolumeBucketResult>def get_volume_bucket(name: Optional[str] = None,
netapp_volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeBucketResult
def get_volume_bucket_output(name: pulumi.Input[Optional[str]] = None,
netapp_volume_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeBucketResult]func LookupVolumeBucket(ctx *Context, args *LookupVolumeBucketArgs, opts ...InvokeOption) (*LookupVolumeBucketResult, error)
func LookupVolumeBucketOutput(ctx *Context, args *LookupVolumeBucketOutputArgs, opts ...InvokeOption) LookupVolumeBucketResultOutput> Note: This function is named LookupVolumeBucket in the Go SDK.
public static class GetVolumeBucket
{
public static Task<GetVolumeBucketResult> InvokeAsync(GetVolumeBucketArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeBucketResult> Invoke(GetVolumeBucketInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeBucketResult> getVolumeBucket(GetVolumeBucketArgs args, InvokeOptions options)
public static Output<GetVolumeBucketResult> getVolumeBucket(GetVolumeBucketArgs args, InvokeOptions options)
fn::invoke:
function: azure:netapp/getVolumeBucket:getVolumeBucket
arguments:
# arguments dictionarydata "azure_netapp_get_volume_bucket" "name" {
# arguments
}The following arguments are supported:
- Name string
- The name of the NetApp Volume Bucket.
- Netapp
Volume stringId - The ARM ID of the parent NetApp Volume.
- Name string
- The name of the NetApp Volume Bucket.
- Netapp
Volume stringId - The ARM ID of the parent NetApp Volume.
- name string
- The name of the NetApp Volume Bucket.
- netapp_
volume_ stringid - The ARM ID of the parent NetApp Volume.
- name String
- The name of the NetApp Volume Bucket.
- netapp
Volume StringId - The ARM ID of the parent NetApp Volume.
- name string
- The name of the NetApp Volume Bucket.
- netapp
Volume stringId - The ARM ID of the parent NetApp Volume.
- name str
- The name of the NetApp Volume Bucket.
- netapp_
volume_ strid - The ARM ID of the parent NetApp Volume.
- name String
- The name of the NetApp Volume Bucket.
- netapp
Volume StringId - The ARM ID of the parent NetApp Volume.
getVolumeBucket Result
The following output properties are available:
- File
System stringCifs Username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- File
System List<GetNfs Users Volume Bucket File System Nfs User> - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vaults List<GetVolume Bucket Key Vault> - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - Name string
- Netapp
Volume stringId - Path string
- The volume sub-path mounted inside the bucket.
- Permissions string
- The bucket permission level (
ReadOnlyorReadWrite). - Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- File
System stringCifs Username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- File
System []GetNfs Users Volume Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vaults []GetVolume Bucket Key Vault - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - Name string
- Netapp
Volume stringId - Path string
- The volume sub-path mounted inside the bucket.
- Permissions string
- The bucket permission level (
ReadOnlyorReadWrite). - Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- file_
system_ stringcifs_ username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- file_
system_ list(object)nfs_ users - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - id string
- The provider-assigned unique ID for this managed resource.
- key_
vaults list(object) - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - name string
- netapp_
volume_ stringid - path string
- The volume sub-path mounted inside the bucket.
- permissions string
- The bucket permission level (
ReadOnlyorReadWrite). - server_
certificate_ stringcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ stringexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ stringaddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- file
System StringCifs Username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- file
System List<GetNfs Users Volume Bucket File System Nfs User> - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - id String
- The provider-assigned unique ID for this managed resource.
- key
Vaults List<GetVolume Bucket Key Vault> - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - name String
- netapp
Volume StringId - path String
- The volume sub-path mounted inside the bucket.
- permissions String
- The bucket permission level (
ReadOnlyorReadWrite). - server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- file
System stringCifs Username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- file
System GetNfs Users Volume Bucket File System Nfs User[] - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - id string
- The provider-assigned unique ID for this managed resource.
- key
Vaults GetVolume Bucket Key Vault[] - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - name string
- netapp
Volume stringId - path string
- The volume sub-path mounted inside the bucket.
- permissions string
- The bucket permission level (
ReadOnlyorReadWrite). - server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip stringAddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- file_
system_ strcifs_ username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- file_
system_ Sequence[Getnfs_ users Volume Bucket File System Nfs User] - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - id str
- The provider-assigned unique ID for this managed resource.
- key_
vaults Sequence[GetVolume Bucket Key Vault] - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - name str
- netapp_
volume_ strid - path str
- The volume sub-path mounted inside the bucket.
- permissions str
- The bucket permission level (
ReadOnlyorReadWrite). - server_
certificate_ strcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ strexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ straddress - The IP address that backs the bucket endpoint.
- status str
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- file
System StringCifs Username - The CIFS username used by the bucket (only set when the bucket is configured for CIFS).
- file
System List<Property Map>Nfs Users - A
fileSystemNfsUserblock as defined below (only set when the bucket is configured for NFS). - id String
- The provider-assigned unique ID for this managed resource.
- key
Vaults List<Property Map> - A
keyVaultblock as defined below (populated only when the bucket is configured against Azure Key Vault). - name String
- netapp
Volume StringId - path String
- The volume sub-path mounted inside the bucket.
- permissions String
- The bucket permission level (
ReadOnlyorReadWrite). - server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
Supporting Types
GetVolumeBucketFileSystemNfsUser
GetVolumeBucketKeyVault
- Certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- Certificate
Name string - The name of the certificate object inside the Key Vault.
- Credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- Credentials
Secret stringName - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- Certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- Certificate
Name string - The name of the certificate object inside the Key Vault.
- Credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- Credentials
Secret stringName - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- certificate_
key_ stringvault_ uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate_
name string - The name of the certificate object inside the Key Vault.
- credentials_
key_ stringvault_ uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- credentials_
secret_ stringname - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- certificate
Key StringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name String - The name of the certificate object inside the Key Vault.
- credentials
Key StringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- credentials
Secret StringName - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name string - The name of the certificate object inside the Key Vault.
- credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- credentials
Secret stringName - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- certificate_
key_ strvault_ uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate_
name str - The name of the certificate object inside the Key Vault.
- credentials_
key_ strvault_ uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- credentials_
secret_ strname - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
- certificate
Key StringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name String - The name of the certificate object inside the Key Vault.
- credentials
Key StringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys.
- credentials
Secret StringName - The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v6.39.0
published on Tuesday, Jul 14, 2026 by Pulumi
published on Tuesday, Jul 14, 2026 by Pulumi