Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi
Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi
Get information about a DigitalOcean NFS access point.
Example Usage
Get the NFS access point by ID:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getNfsAccessPoint({
id: "506f78a4-e098-11e5-ad9f-000f53306ae1",
});
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_nfs_access_point(id="506f78a4-e098-11e5-ad9f-000f53306ae1")
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := digitalocean.GetNfsAccessPoint(ctx, &digitalocean.LookupNfsAccessPointArgs{
Id: pulumi.StringRef("506f78a4-e098-11e5-ad9f-000f53306ae1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var example = DigitalOcean.GetNfsAccessPoint.Invoke(new()
{
Id = "506f78a4-e098-11e5-ad9f-000f53306ae1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetNfsAccessPointArgs;
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 = DigitaloceanFunctions.getNfsAccessPoint(GetNfsAccessPointArgs.builder()
.id("506f78a4-e098-11e5-ad9f-000f53306ae1")
.build());
}
}
variables:
example:
fn::invoke:
function: digitalocean:getNfsAccessPoint
arguments:
id: 506f78a4-e098-11e5-ad9f-000f53306ae1
pulumi {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
data "digitalocean_getnfsaccesspoint" "example" {
id = "506f78a4-e098-11e5-ad9f-000f53306ae1"
}
Get the NFS access point by name and share ID:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getNfsAccessPoint({
name: "example-access-point",
shareId: foobar.id,
vpcId: foobarDigitaloceanVpc.id,
});
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_nfs_access_point(name="example-access-point",
share_id=foobar["id"],
vpc_id=foobar_digitalocean_vpc["id"])
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := digitalocean.GetNfsAccessPoint(ctx, &digitalocean.LookupNfsAccessPointArgs{
Name: pulumi.StringRef("example-access-point"),
ShareId: pulumi.StringRef(foobar.Id),
VpcId: pulumi.StringRef(foobarDigitaloceanVpc.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var example = DigitalOcean.GetNfsAccessPoint.Invoke(new()
{
Name = "example-access-point",
ShareId = foobar.Id,
VpcId = foobarDigitaloceanVpc.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetNfsAccessPointArgs;
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 = DigitaloceanFunctions.getNfsAccessPoint(GetNfsAccessPointArgs.builder()
.name("example-access-point")
.shareId(foobar.id())
.vpcId(foobarDigitaloceanVpc.id())
.build());
}
}
variables:
example:
fn::invoke:
function: digitalocean:getNfsAccessPoint
arguments:
name: example-access-point
shareId: ${foobar.id}
vpcId: ${foobarDigitaloceanVpc.id}
pulumi {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
data "digitalocean_getnfsaccesspoint" "example" {
name = "example-access-point"
share_id = foobar.id
vpc_id = foobarDigitaloceanVpc.id
}
Using getNfsAccessPoint
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 getNfsAccessPoint(args: GetNfsAccessPointArgs, opts?: InvokeOptions): Promise<GetNfsAccessPointResult>
function getNfsAccessPointOutput(args: GetNfsAccessPointOutputArgs, opts?: InvokeOptions): Output<GetNfsAccessPointResult>def get_nfs_access_point(id: Optional[str] = None,
name: Optional[str] = None,
share_id: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNfsAccessPointResult
def get_nfs_access_point_output(id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
share_id: pulumi.Input[Optional[str]] = None,
vpc_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNfsAccessPointResult]func LookupNfsAccessPoint(ctx *Context, args *LookupNfsAccessPointArgs, opts ...InvokeOption) (*LookupNfsAccessPointResult, error)
func LookupNfsAccessPointOutput(ctx *Context, args *LookupNfsAccessPointOutputArgs, opts ...InvokeOption) LookupNfsAccessPointResultOutput> Note: This function is named LookupNfsAccessPoint in the Go SDK.
public static class GetNfsAccessPoint
{
public static Task<GetNfsAccessPointResult> InvokeAsync(GetNfsAccessPointArgs args, InvokeOptions? opts = null)
public static Output<GetNfsAccessPointResult> Invoke(GetNfsAccessPointInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNfsAccessPointResult> getNfsAccessPoint(GetNfsAccessPointArgs args, InvokeOptions options)
public static Output<GetNfsAccessPointResult> getNfsAccessPoint(GetNfsAccessPointArgs args, InvokeOptions options)
fn::invoke:
function: digitalocean:index/getNfsAccessPoint:getNfsAccessPoint
arguments:
# arguments dictionarydata "digitalocean_getnfsaccesspoint" "name" {
# arguments
}The following arguments are supported:
- Id string
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - Name string
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - string
- The ID of the NFS share. Must be used with
name. Conflicts withid. - Vpc
Id string - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- Id string
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - Name string
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - string
- The ID of the NFS share. Must be used with
name. Conflicts withid. - Vpc
Id string - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- id string
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - name string
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - string
- The ID of the NFS share. Must be used with
name. Conflicts withid. - vpc_
id string - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- id String
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - name String
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - String
- The ID of the NFS share. Must be used with
name. Conflicts withid. - vpc
Id String - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- id string
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - name string
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - string
- The ID of the NFS share. Must be used with
name. Conflicts withid. - vpc
Id string - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- id str
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - name str
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - str
- The ID of the NFS share. Must be used with
name. Conflicts withid. - vpc_
id str - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
- id String
- The ID of the NFS access point. Conflicts with
name,shareId, andvpcId. - name String
- The name of the NFS access point. Must be used with
shareId. Conflicts withid. - String
- The ID of the NFS share. Must be used with
name. Conflicts withid. - vpc
Id String - When looking up by
nameandshareId, optionally filter to the access point attached to this VPC. Conflicts withid.
getNfsAccessPoint Result
The following output properties are available:
- Access
Policies List<Pulumi.Digital Ocean. Outputs. Get Nfs Access Point Access Policy> - Created
At string - Is
Default bool - Path string
- Status string
- Updated
At string - Vpc
Id string - Id string
- Name string
- string
- Access
Policies []GetNfs Access Point Access Policy - Created
At string - Is
Default bool - Path string
- Status string
- Updated
At string - Vpc
Id string - Id string
- Name string
- string
- access_
policies list(object) - created_
at string - is_
default bool - path string
- status string
- updated_
at string - vpc_
id string - id string
- name string
- string
- access
Policies List<GetNfs Access Point Access Policy> - created
At String - is
Default Boolean - path String
- status String
- updated
At String - vpc
Id String - id String
- name String
- String
- access
Policies GetNfs Access Point Access Policy[] - created
At string - is
Default boolean - path string
- status string
- updated
At string - vpc
Id string - id string
- name string
- string
- access_
policies Sequence[GetNfs Access Point Access Policy] - created_
at str - is_
default bool - path str
- status str
- updated_
at str - vpc_
id str - id str
- name str
- str
- access
Policies List<Property Map> - created
At String - is
Default Boolean - path String
- status String
- updated
At String - vpc
Id String - id String
- name String
- String
Supporting Types
GetNfsAccessPointAccessPolicy
- Anongid int
- Anonuid int
- Identity
Enforcement boolEnabled - Protocols List<string>
- Squash
Config string
- Anongid int
- Anonuid int
- Identity
Enforcement boolEnabled - Protocols []string
- Squash
Config string
- anongid number
- anonuid number
- identity_
enforcement_ boolenabled - protocols list(string)
- squash_
config string
- anongid Integer
- anonuid Integer
- identity
Enforcement BooleanEnabled - protocols List<String>
- squash
Config String
- anongid number
- anonuid number
- identity
Enforcement booleanEnabled - protocols string[]
- squash
Config string
- anongid int
- anonuid int
- identity_
enforcement_ boolenabled - protocols Sequence[str]
- squash_
config str
- anongid Number
- anonuid Number
- identity
Enforcement BooleanEnabled - protocols List<String>
- squash
Config String
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.
Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi