Skip to content

Commit dec7f26

Browse files
Require vpc_id when creating an NFS access point.
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>
1 parent 25aaaca commit dec7f26

7 files changed

Lines changed: 13 additions & 8 deletions

File tree

specification/resources/nfs/models/access_point_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ properties:
2323
vpc_id:
2424
type: string
2525
description: |
26-
Optional VPC to mount this access point from. When unset (or set to a VPC the share
27-
is already attached to), the access point inherits the share's VPC and storage gateway.
28-
When set to a different VPC, a storage gateway is provisioned or reused in that VPC.
29-
nullable: true
26+
Required. The VPC this access point will be pinned to. A storage gateway is
27+
provisioned (or reused) in this VPC, and the access point becomes mountable from
28+
this VPC regardless of whether the parent share is currently attached to it.
3029
example: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
3130
required:
3231
- name
3332
- path
3433
- access_policy
34+
- vpc_id

specification/resources/nfs/models/access_point_response.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ properties:
5353
vpc_id:
5454
type: string
5555
description: |
56-
The VPC this access point is pinned to. When unset, the access point inherits
57-
the parent share's VPC(s). When set, the access point is mountable from this
58-
specific VPC with its own storage gateway.
59-
nullable: true
56+
The VPC this access point is pinned to. Every non-default access point owns its
57+
own storage gateway in this VPC and is independent of the parent share's VPC
58+
lifecycle: it remains mountable from this VPC regardless of whether the share is
59+
currently attached to it.
6060
example: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
6161
required:
6262
- id

specification/resources/nfs/nfs_access_point_create.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ requestBody:
3636
value:
3737
name: "team-a"
3838
path: "/team-a"
39+
vpc_id: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
3940
access_policy:
4041
anonuid: 65534
4142
anongid: 65534

specification/resources/nfs/responses/access_point_create.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ content:
2222
name: "team-a"
2323
share_id: "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"
2424
path: "/team-a"
25+
vpc_id: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
2526
status: "ACCESS_POINT_CREATING"
2627
is_default: false
2728
created_at: "2023-01-01T00:00:00Z"

specification/resources/nfs/responses/access_point_delete.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ content:
2323
name: "team-a"
2424
share_id: "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"
2525
path: "/team-a"
26+
vpc_id: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
2627
status: "ACCESS_POINT_DELETED"
2728
is_default: false
2829
created_at: "2023-01-01T00:00:00Z"

specification/resources/nfs/responses/access_point_get.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ content:
2323
name: "team-a"
2424
share_id: "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"
2525
path: "/team-a"
26+
vpc_id: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
2627
status: "ACCESS_POINT_ACTIVE"
2728
is_default: false
2829
created_at: "2023-01-01T00:00:00Z"

specification/resources/nfs/responses/access_point_list.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ content:
2323
name: "team-a"
2424
share_id: "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"
2525
path: "/team-a"
26+
vpc_id: "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
2627
status: "ACCESS_POINT_ACTIVE"
2728
is_default: false
2829
created_at: "2023-01-01T00:00:00Z"

0 commit comments

Comments
 (0)