pydo.nfs.create_action()
Generated on 13 Apr 2026
from pydo version
v0.30.0
Description
To execute an action (such as resize) on a specified NFS share,
send a POST request to /v2/nfs/{nfs_id}/actions. In the JSON body
to the request, set the type attribute to on of the supported action types:
| Action | Details |
|---|---|
resize |
Resizes an NFS share. Set the size_gib attribute to a desired value in GiB |
snapshot |
Takes a snapshot of an NFS share |
attach |
Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |
detach |
Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |
reassign |
Reassigns an NFS share from one VPC to another. Set the old_vpc_id and new_vpc_id attributes to the desired VPC IDs |
switch_performance_tier |
Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
nfs_id |
string | True | The unique ID of the NFS share | |
body |
JSON or IO[bytes] | True | The type attribute set in the request body will specify the action that |
|
| will be taken on the NFS share. Some actions will require additional | ||||
| attributes to be set as well. | ||||
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.