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, including its bucket server configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getVolumeBucketWithServer({
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_with_server(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.LookupVolumeBucketWithServer(ctx, &netapp.LookupVolumeBucketWithServerArgs{
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.GetVolumeBucketWithServer.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(getVolumeBucketWithServerResult => getVolumeBucketWithServerResult.Status),
["bucketServerIpAddress"] = example.Apply(getVolumeBucketWithServerResult => getVolumeBucketWithServerResult.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.GetVolumeBucketWithServerArgs;
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.getVolumeBucketWithServer(GetVolumeBucketWithServerArgs.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:getVolumeBucketWithServer
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_getvolumebucketwithserver" "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_getvolumebucketwithserver.example.status
}
output "bucketServerIpAddress" {
value = data.azure_netapp_getvolumebucketwithserver.example.server_ip_address
}
API Providers
This data source uses the following Azure API Providers:
Microsoft.NetApp- 2026-01-01
Using getVolumeBucketWithServer
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 getVolumeBucketWithServer(args: GetVolumeBucketWithServerArgs, opts?: InvokeOptions): Promise<GetVolumeBucketWithServerResult>
function getVolumeBucketWithServerOutput(args: GetVolumeBucketWithServerOutputArgs, opts?: InvokeOptions): Output<GetVolumeBucketWithServerResult>def get_volume_bucket_with_server(name: Optional[str] = None,
netapp_volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeBucketWithServerResult
def get_volume_bucket_with_server_output(name: pulumi.Input[Optional[str]] = None,
netapp_volume_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeBucketWithServerResult]func LookupVolumeBucketWithServer(ctx *Context, args *LookupVolumeBucketWithServerArgs, opts ...InvokeOption) (*LookupVolumeBucketWithServerResult, error)
func LookupVolumeBucketWithServerOutput(ctx *Context, args *LookupVolumeBucketWithServerOutputArgs, opts ...InvokeOption) LookupVolumeBucketWithServerResultOutput> Note: This function is named LookupVolumeBucketWithServer in the Go SDK.
public static class GetVolumeBucketWithServer
{
public static Task<GetVolumeBucketWithServerResult> InvokeAsync(GetVolumeBucketWithServerArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeBucketWithServerResult> Invoke(GetVolumeBucketWithServerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeBucketWithServerResult> getVolumeBucketWithServer(GetVolumeBucketWithServerArgs args, InvokeOptions options)
public static Output<GetVolumeBucketWithServerResult> getVolumeBucketWithServer(GetVolumeBucketWithServerArgs args, InvokeOptions options)
fn::invoke:
function: azure:netapp/getVolumeBucketWithServer:getVolumeBucketWithServer
arguments:
# arguments dictionarydata "azure_netapp_get_volume_bucket_with_server" "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.
getVolumeBucketWithServer 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 With Server 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 With Server 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.
- Servers
List<Get
Volume Bucket With Server Server> - A
serverblock as defined below. - 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 With Server 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 With Server 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.
- Servers
[]Get
Volume Bucket With Server Server - A
serverblock as defined below. - 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.
- servers list(object)
- A
serverblock as defined below. - 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 With Server 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 With Server 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.
- servers
List<Get
Volume Bucket With Server Server> - A
serverblock as defined below. - 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 With Server 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 With Server 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.
- servers
Get
Volume Bucket With Server Server[] - A
serverblock as defined below. - 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 With Server 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 With Server 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.
- servers
Sequence[Get
Volume Bucket With Server Server] - A
serverblock as defined below. - 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.
- servers List<Property Map>
- A
serverblock as defined below. - status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
Supporting Types
GetVolumeBucketWithServerFileSystemNfsUser
GetVolumeBucketWithServerKeyVault
- 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.
GetVolumeBucketWithServerServer
- Certificate
Pem string - Fqdn string
- The DNS name that resolves to the bucket endpoint IP address.
- On
Certificate stringConflict Action - The action that runs when a certificate rotation conflicts with an existing certificate.
- Certificate
Pem string - Fqdn string
- The DNS name that resolves to the bucket endpoint IP address.
- On
Certificate stringConflict Action - The action that runs when a certificate rotation conflicts with an existing certificate.
- certificate_
pem string - fqdn string
- The DNS name that resolves to the bucket endpoint IP address.
- on_
certificate_ stringconflict_ action - The action that runs when a certificate rotation conflicts with an existing certificate.
- certificate
Pem String - fqdn String
- The DNS name that resolves to the bucket endpoint IP address.
- on
Certificate StringConflict Action - The action that runs when a certificate rotation conflicts with an existing certificate.
- certificate
Pem string - fqdn string
- The DNS name that resolves to the bucket endpoint IP address.
- on
Certificate stringConflict Action - The action that runs when a certificate rotation conflicts with an existing certificate.
- certificate_
pem str - fqdn str
- The DNS name that resolves to the bucket endpoint IP address.
- on_
certificate_ strconflict_ action - The action that runs when a certificate rotation conflicts with an existing certificate.
- certificate
Pem String - fqdn String
- The DNS name that resolves to the bucket endpoint IP address.
- on
Certificate StringConflict Action - The action that runs when a certificate rotation conflicts with an existing certificate.
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