create_volume
async
¶
create_volume(
*,
config_overrides: Optional[AsyncFSxClientConfig] = 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 | |