Gets an item from the ApiSdk.v2.droplets.item.actions.item collection
A unique numeric ID that can be used to identify and reference an action.
To retrieve a list of all actions that have been executed for a Droplet, senda GET request to /v2/droplets/$DROPLET_ID/actions.The results will be returned as a JSON object with an actions key. This willbe set to an array filled with action objects containing the standardaction attributes.
OptionalrequestConfiguration: RequestConfiguration<ActionsRequestBuilderGetQueryParameters>Configuration for the request such as headers, query parameters, and middleware options.
To initiate an action on a Droplet send a POST request to/v2/droplets/$DROPLET_ID/actions. In the JSON body to the request,set the type attribute to on of the supported action types:| Action | Details | Additionally Required Permission || ---------------------------------------- | ----------- | ----------- || enable_backupsdisable_backupschange_backup_policyrebootreboot action is an attempt to reboot the Droplet in a graceful way, similar to using the reboot command from the console. | || power_cyclepowercycle action is similar to pushing the reset button on a physical machine, it's similar to booting from scratch. | || shutdownshutdown command from the console. Since a shutdown command can fail, this action guarantees that the command is issued, not that it succeeds. The preferred way to turn off a Droplet is to attempt a shutdown, with a reasonable timeout, followed by a power_off action to ensure the Droplet is off. | || power_offpower_off event is a hard shutdown and should only be used if the shutdown action is not successful. It is similar to cutting the power on a server and could lead to complications. | || power_onrestorepassword_resetresizesize attribute to a size slug. If a permanent resize with disk changes included is desired, set the disk attribute to true. | droplet:create || rebuildimage attribute to an image ID or slug. | droplet:admin || renamechange_kernelenable_ipv6snapshot
The request body
OptionalrequestConfiguration: RequestConfiguration<object>Configuration for the request such as headers, query parameters, and middleware options.
To retrieve a list of all actions that have been executed for a Droplet, senda GET request to /v2/droplets/$DROPLET_ID/actions.The results will be returned as a JSON object with an actions key. This willbe set to an array filled with action objects containing the standardaction attributes.
OptionalrequestConfiguration: RequestConfiguration<ActionsRequestBuilderGetQueryParameters>Configuration for the request such as headers, query parameters, and middleware options.
To initiate an action on a Droplet send a POST request to/v2/droplets/$DROPLET_ID/actions. In the JSON body to the request,set the type attribute to on of the supported action types:| Action | Details | Additionally Required Permission || ---------------------------------------- | ----------- | ----------- || enable_backupsdisable_backupschange_backup_policyrebootreboot action is an attempt to reboot the Droplet in a graceful way, similar to using the reboot command from the console. | || power_cyclepowercycle action is similar to pushing the reset button on a physical machine, it's similar to booting from scratch. | || shutdownshutdown command from the console. Since a shutdown command can fail, this action guarantees that the command is issued, not that it succeeds. The preferred way to turn off a Droplet is to attempt a shutdown, with a reasonable timeout, followed by a power_off action to ensure the Droplet is off. | || power_offpower_off event is a hard shutdown and should only be used if the shutdown action is not successful. It is similar to cutting the power on a server and could lead to complications. | || power_onrestorepassword_resetresizesize attribute to a size slug. If a permanent resize with disk changes included is desired, set the disk attribute to true. | droplet:create || rebuildimage attribute to an image ID or slug. | droplet:admin || renamechange_kernelenable_ipv6snapshot
The request body
OptionalrequestConfiguration: RequestConfiguration<object>Configuration for the request such as headers, query parameters, and middleware options.
Builds and executes requests for operations under /v2/droplets/{droplet_id}/actions