update_volume
async
¶
update_volume(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
volume_id: Optional[VolumeId] = None,
ontap_configuration: Optional[UpdateOntapVolumeConfiguration] = None,
name: Optional[VolumeName] = None,
open_zfs_configuration: Optional[UpdateOpenZFSVolumeConfiguration] = None,
) -> UpdateVolumeResponse
Updates the configuration of an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume.
Parameters:
-
volume_id(Optional[VolumeId], default:None) –The ID of the volume that you want to update, in the format
fsvol-0123456789abcdef0. -
ontap_configuration(Optional[UpdateOntapVolumeConfiguration], default:None) –The configuration of the ONTAP volume that you are updating.
-
name(Optional[VolumeName], default:None) –The name of the OpenZFS volume. OpenZFS root volumes are automatically named
FSX. Child volume names must be unique among their parent volume's children. The name of the volume is part of the mount string for the OpenZFS volume. -
open_zfs_configuration(Optional[UpdateOpenZFSVolumeConfiguration], default:None) –The configuration of the OpenZFS volume that you are updating.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
MissingVolumeConfiguration–A volume configuration is required for this operation.
-
VolumeNotFound–No Amazon FSx volumes were found based upon the supplied parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 | |