Skip to main content

access_points

Creates, updates, deletes, gets or lists an access_points resource.

Overview

Nameaccess_points
TypeResource
Iddigitalocean.storage.access_points

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a key called access_points. The value will be an array of objects containing the standard attributes associated with NFS access points.

NameDatatypeDescription
idstring (uuid)The unique identifier of the access point. (example: a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6d)
namestringThe human-readable name of the access point. Must be unique per share. (example: other-vpc)
share_idstring (uuid)The unique identifier of the share this access point belongs to. (example: 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d)
vpc_idstringThe VPC this access point is pinned to. Omitted on the default access point. Every non-default access point owns its own storage gateway in this VPC and is independent of the parent share's VPC lifecycle. (example: 3f34cdb2-1e4f-4100-b5c7-f55f2762085f)
access_policyobjectProvider-agnostic NFS access policy for an access point. Network CIDRs are managed by attach, detach, and managed-access workflows and are not part of this policy.
created_atstring (date-time)The timestamp when the access point was created. (example: 2023-01-01T00:00:00Z)
is_defaultbooleanWhether this is the share's default access point.
pathstringThe export sub-path for this access point (always starts with /). (example: /other-vpc)
statusstringThe current lifecycle status of an access point. There is no ACCESS_POINT_DELETING state: DELETE soft-deletes the access point synchronously (mirroring share deletion); the response of a delete request returns the access point already in ACCESS_POINT_DELETED. (ACCESS_POINT_CREATING, ACCESS_POINT_ACTIVE, ACCESS_POINT_FAILED, ACCESS_POINT_DELETED) (example: ACCESS_POINT_ACTIVE)
updated_atstringThe timestamp when the access point was last updated. May be empty while the access point is still being created. (example: 2026-06-25T08:11:16Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
nfs_list_access_pointsselectshare_idstatusTo list access points for an NFS share, send a GET request to
/v2/nfs/shares/{share_id}/access_points. You may use query parameters to filter
by status.

A successful request will return a list of NFS access points ordered with the default
access point first, then by created_at ascending.
nfs_get_access_pointselectaccess_point_idTo get an NFS access point, send a GET request to /v2/nfs/access_points/{access_point_id}.

A successful request will return the NFS access point.
nfs_create_access_pointinsertshare_id, name, path, access_policy, vpc_idTo create a new access point on an NFS share, send a POST request to
/v2/nfs/shares/{share_id}/access_points.

A successful request will return the newly created access point and an action object.

The parent share must be in ACTIVE or INACTIVE status. Validation failures and
precondition errors (such as an ineligible share state) return 400 Bad Request.
Duplicate name or path conflicts return 409 Conflict.
nfs_delete_access_pointdeleteaccess_point_idTo delete an NFS access point, send a DELETE request to
/v2/nfs/access_points/{access_point_id}.

A successful request will soft-delete the access point and return the deleted access point
with status ACCESS_POINT_DELETED and an action object indicating the delete operation.

The default access point (is_default: true) cannot be deleted. Access points already
in ACCESS_POINT_DELETED or ACCESS_POINT_FAILED status return 400 Bad Request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
access_point_idstring (uuid)The unique identifier of the NFS access point. (example: becd9f04-8afa-4ccd-b03e-9676447df603)
share_idstring (uuid)The unique identifier of the NFS share. (example: baf4827c-6fa9-456f-9dbd-9ddfcacd0720)
statusstringFilter access points by status. (example: ACCESS_POINT_ACTIVE)

SELECT examples

To list access points for an NFS share, send a GET request to
/v2/nfs/shares/{share_id}/access_points. You may use query parameters to filter
by status.

A successful request will return a list of NFS access points ordered with the default
access point first, then by created_at ascending.

SELECT
id,
name,
share_id,
vpc_id,
access_policy,
created_at,
is_default,
path,
status,
updated_at
FROM digitalocean.storage.access_points
WHERE share_id = '{{ share_id }}' -- required
AND status = '{{ status }}'
;

INSERT examples

To create a new access point on an NFS share, send a POST request to
/v2/nfs/shares/{share_id}/access_points.

A successful request will return the newly created access point and an action object.

The parent share must be in ACTIVE or INACTIVE status. Validation failures and
precondition errors (such as an ineligible share state) return 400 Bad Request.
Duplicate name or path conflicts return 409 Conflict.

INSERT INTO digitalocean.storage.access_points (
name,
path,
access_policy,
vpc_id,
share_id
)
SELECT
'{{ name }}' /* required */,
'{{ path }}' /* required */,
'{{ access_policy }}' /* required */,
'{{ vpc_id }}' /* required */,
'{{ share_id }}'
RETURNING
access_point,
action
;

DELETE examples

To delete an NFS access point, send a DELETE request to
/v2/nfs/access_points/{access_point_id}.

A successful request will soft-delete the access point and return the deleted access point
with status ACCESS_POINT_DELETED and an action object indicating the delete operation.

The default access point (is_default: true) cannot be deleted. Access points already
in ACCESS_POINT_DELETED or ACCESS_POINT_FAILED status return 400 Bad Request.

DELETE FROM digitalocean.storage.access_points
WHERE access_point_id = '{{ access_point_id }}' --required
;