{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To execute an action (such as resize) on a specified NFS share, \nsend a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body \nto the request, set the `type` attribute to on of the supported action types:\n\n| Action                           | Details |\n| -------------------------------- | ----------- |\n| <nobr>`resize`</nobr>            | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB |\n| <nobr>`snapshot`</nobr>          | Takes a snapshot of an NFS share |\n| <nobr>`attach`</nobr>            | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |\n| <nobr>`detach`</nobr>            | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |\n| <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 |\n| <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) |\n","properties":{"path":{"type":"object","properties":{"nfs_id":{"type":"string","examples":["0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"],"description":"The unique ID of the NFS share"}},"required":["nfs_id"],"additionalProperties":false},"body":{"anyOf":[{"$ref":"#/definitions/nfs_action_resize"},{"$ref":"#/definitions/nfs_action_snapshot"},{"$ref":"#/definitions/nfs_action_attach"},{"$ref":"#/definitions/nfs_action_detach"},{"$ref":"#/definitions/nfs_action_reassign"},{"$ref":"#/definitions/nfs_action_switch_performance_tier"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"nfs_action_resize":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"size_gib":{"type":"integer","description":"The new size for the NFS share.","examples":[2048]}},"required":["size_gib"]}}}]},"nfs_action_snapshot":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"name":{"type":"string","description":"Snapshot name of the NFS share","examples":["daily-backup"]}},"required":["name"]}}}]},"nfs_action_attach":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"vpc_id":{"type":"string","description":"The ID of the VPC to which the NFS share will be attached","examples":["vpc-id-123"]}},"required":["vpc_id"]}}}]},"nfs_action_detach":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"vpc_id":{"type":"string","description":"The ID of the VPC from which the NFS share will be detached","examples":["vpc-id-123"]}},"required":["vpc_id"]}}}]},"nfs_action_reassign":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"old_vpc_id":{"type":"string","description":"The ID of the VPC from which the NFS share will be reassigned","examples":["vpc-id-123"]},"new_vpc_id":{"type":"string","description":"The ID of the VPC to which the NFS share will be reassigned","examples":["vpc-id-456"]}},"required":["old_vpc_id","new_vpc_id"]}}}]},"nfs_action_switch_performance_tier":{"allOf":[{"$ref":"#/definitions/nfs_action"},{"type":"object","properties":{"params":{"type":"object","properties":{"performance_tier":{"type":"string","description":"The performance tier to which the NFS share will be switched (e.g., standard, high).","examples":["standard"]}},"required":["performance_tier"]}}}]},"nfs_action":{"required":["type"],"type":"object","description":"Specifies the action that will be taken on the NFS share.","properties":{"type":{"type":"string","enum":["resize","snapshot","attach","detach","reassign","switch_performance_tier"],"description":"The type of action to initiate for the NFS share (such as resize or snapshot).","examples":["resize"]},"region":{"type":"string","description":"The DigitalOcean region slug (e.g. atl1, nyc2) where the NFS snapshot resides.","examples":["atl1"]}}}}},"name":"Initiate an NFS action","id":"digitalocean.nfs_create_action","example":{"path":{"nfs_id":"0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d"},"body":{"type":"resize"}},"maxRequests":1,"summary":false}}