create_volume
¶
create_volume(
*,
config_overrides: Optional[FSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
volume_type: Optional[VolumeType] = None,
name: Optional[VolumeName] = None,
ontap_configuration: Optional[CreateOntapVolumeConfiguration] = None,
tags: Optional[Tags] = None,
open_zfs_configuration: Optional[CreateOpenZFSVolumeConfiguration] = None,
) -> CreateVolumeResponse
Creates an FSx for ONTAP or Amazon FSx for OpenZFS storage volume.
Parameters:
-
volume_type(Optional[VolumeType], default:None) –Specifies the type of volume to create;
ONTAPandOPENZFSare the only valid volume types. -
name(Optional[VolumeName], default:None) –Specifies the name of the volume that you're creating.
-
ontap_configuration(Optional[CreateOntapVolumeConfiguration], default:None) –Specifies the configuration to use when creating the ONTAP volume.
-
open_zfs_configuration(Optional[CreateOpenZFSVolumeConfiguration], default:None) –Specifies the configuration to use when creating the OpenZFS volume.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
FileSystemNotFound–No Amazon FSx file systems were found based upon supplied parameters.
-
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.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
StorageVirtualMachineNotFound–No FSx for ONTAP SVMs were found based upon the supplied parameters.
-
UnsupportedOperation–The requested operation is not supported for this resource or API.
-
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/f_sx.py
2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 | |