Skip to content

Nfs access point apis#1192

Merged
DO-rrao merged 5 commits into
digitalocean:mainfrom
sgupta832:nfs-access-point-apis
Jun 25, 2026
Merged

Nfs access point apis#1192
DO-rrao merged 5 commits into
digitalocean:mainfrom
sgupta832:nfs-access-point-apis

Conversation

@sgupta832

Copy link
Copy Markdown
Contributor

Summary

Adds NFS access point CRUD endpoints to the public OpenAPI spec, aligned with the cthulhu sharesvc/publicapi implementation.

  • POST /v2/nfs/shares/{share_id}/access_points — create access point
  • GET /v2/nfs/shares/{share_id}/access_points — list access points (optional status filter)
  • GET /v2/nfs/access_points/{access_point_id} — get access point
  • DELETE /v2/nfs/access_points/{access_point_id} — delete access point
  • access_points array on share GET/LIST responses

Gen1 scope: Create, Get, List, Delete only. UpdateAccessPointPolicy is intentionally omitted (not yet supported in sharesvc).

Supersedes #1191 — includes original spec plus review fixes (validation docs, correct delete action status, shared action schema, error responses).

Test plan

  • make bundle passes
  • make lint passes (0 errors)

@sgupta832 sgupta832 force-pushed the nfs-access-point-apis branch from 8ea7456 to e9e6da6 Compare June 22, 2026 12:16
v-amanjain-afk and others added 2 commits June 23, 2026 12:59
Align models and examples with sharesvc behavior: fix delete action status,
document validation constraints, add access_points to share responses, dedupe
the action schema, and wire get/list responses to shared model files.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sgupta832 sgupta832 force-pushed the nfs-access-point-apis branch from e9e6da6 to 25aaaca Compare June 23, 2026 07:30
Align the create request model and examples with cthulhu: every non-default
access point must be pinned to a VPC at creation time.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread specification/resources/nfs/models/access_point_action_response.yml
Comment thread specification/resources/nfs/responses/access_point_create.yml Outdated
$ref: 'responses/access_point_create.yml'

'400':
$ref: 'responses/bad_request.yml'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 400 here points at bad_request.yml, but that one's all about share sizing (size_gib >= 50Gib), which doesn't really fit access point creation. Could we give it its own 400 example (or at least a more generic message)? Otherwise the docs will tell people the wrong thing. Delete has the same issue on its 400.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced share bad_request.yml with access_point_bad_request.yml on create/delete.

operationId: nfs_create_access_point

summary: Create an NFS access point

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you pls share response for this endpoint as is?
will help me to review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated create (and list/get/delete) examples to match staging — pls see latest commit.

sgupta832 and others added 2 commits June 25, 2026 13:48
Use real API response samples, correct action enums (SHARE/IN_PROGRESS),
add access-point-specific 400 responses, and add cURL code samples for all
four access point operations.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use nfs:list for list access points, centralize path params in
parameters.yml, enrich nfs_get and nfs_actions examples, and add
access-point-specific 400/409 response examples.

Co-authored-by: Cursor <cursoragent@cursor.com>

@DO-rrao DO-rrao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DO-rrao DO-rrao merged commit f16255f into digitalocean:main Jun 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants