get_volume
async
¶
get_volume(
farm_id: FarmId,
fleet_id: FleetId,
volume_id: VolumeId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> GetVolumeResponse
Gets 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 retrieve.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
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:
Get a volume
>>> await client.get_volume(farm_id='farm-1234567890abcdef1234567890abcdef', fleet_id='fleet-1234567890abcdef1234567890abcdef', volume_id='volume-1234567890abcdef1234567890abcdef')