delete_volume
async
¶
delete_volume(
farm_id: FarmId,
fleet_id: FleetId,
volume_id: VolumeId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> DeleteVolumeResponse
Deletes a persistent volume.
Parameters:
-
farm_id(FarmId) –The farm ID of the farm that contains the fleet.
-
fleet_id(FleetId) –The fleet ID of the fleet that contains the volume.
-
volume_id(VolumeId) –The volume ID of the volume to delete.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Delete a volume
>>> await client.delete_volume(farm_id='farm-1234567890abcdef1234567890abcdef', fleet_id='fleet-1234567890abcdef1234567890abcdef', volume_id='volume-1234567890abcdef1234567890abcdef')
Source code in docs_src/capo_deadline/_services/async_deadline.py
4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 | |