Skip to content

Commit 63883d3

Browse files
nfs reassign (#1150)
1 parent 011e28d commit 63883d3

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

specification/resources/nfs/models/nfs_actions.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ nfs_action:
99
enum:
1010
- resize
1111
- snapshot
12+
- attach
13+
- detach
14+
- reassign
15+
- switch_performance_tier
1216
example: resize
1317
description: The type of action to initiate for the NFS share (such as resize or snapshot).
1418
region:
@@ -75,6 +79,27 @@ nfs_action_detach:
7579
description: The ID of the VPC from which the NFS share will be detached
7680
required:
7781
- vpc_id
82+
83+
nfs_action_reassign:
84+
allOf:
85+
- $ref: '#/nfs_action'
86+
- type: object
87+
properties:
88+
params:
89+
type: object
90+
properties:
91+
old_vpc_id:
92+
type: string
93+
example: vpc-id-123
94+
description: The ID of the VPC from which the NFS share will be reassigned
95+
new_vpc_id:
96+
type: string
97+
example: vpc-id-456
98+
description: The ID of the VPC to which the NFS share will be reassigned
99+
required:
100+
- old_vpc_id
101+
- new_vpc_id
102+
78103
nfs_action_switch_performance_tier:
79104
allOf:
80105
- $ref: '#/nfs_action'

specification/resources/nfs/nfs_actions_create.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: |
1313
| <nobr>`snapshot`</nobr> | Takes a snapshot of an NFS share |
1414
| <nobr>`attach`</nobr> | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |
1515
| <nobr>`detach`</nobr> | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |
16+
| <nobr>`reassign`</nobr> | Reassigns an NFS share from one VPC to another. Set the old_vpc_id and new_vpc_id attributes to the desired VPC IDs |
1617
| <nobr>`switch_performance_tier`</nobr> | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |
1718
1819
tags:
@@ -37,6 +38,7 @@ requestBody:
3738
- $ref: 'models/nfs_actions.yml#/nfs_action_snapshot'
3839
- $ref: 'models/nfs_actions.yml#/nfs_action_attach'
3940
- $ref: 'models/nfs_actions.yml#/nfs_action_detach'
41+
- $ref: 'models/nfs_actions.yml#/nfs_action_reassign'
4042
- $ref: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'
4143
discriminator:
4244
propertyName: type
@@ -45,6 +47,7 @@ requestBody:
4547
snapshot: 'models/nfs_actions.yml#/nfs_action_snapshot'
4648
attach: 'models/nfs_actions.yml#/nfs_action_attach'
4749
detach: 'models/nfs_actions.yml#/nfs_action_detach'
50+
reassign: 'models/nfs_actions.yml#/nfs_action_reassign'
4851
switch_performance_tier: 'models/nfs_actions.yml#/nfs_action_switch_performance_tier'
4952

5053
responses:

0 commit comments

Comments
 (0)