describe_snapshots
async
¶
describe_snapshots(
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
directory_id: Optional[DirectoryId] = None,
snapshot_ids: Optional[SnapshotIds] = None,
next_token: Optional[NextToken] = None,
limit: Optional[Limit] = None,
) -> DescribeSnapshotsResult
Obtains information about the directory snapshots that belong to this account.
This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.
You can also specify a maximum number of return results with the Limit parameter.
Parameters:
-
directory_id(Optional[DirectoryId], default:None) –The identifier of the directory for which to retrieve snapshot information.
-
snapshot_ids(Optional[SnapshotIds], default:None) –A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
-
next_token(Optional[NextToken], default:None) –The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
-
limit(Optional[Limit], default:None) –The maximum number of objects to return.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidNextTokenException–The
NextTokenvalue is not valid. -
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe snapshots The following example obtains information about a specified directory snapshot.
>>> await client.describe_snapshots(directory_id='d-92654abfed', snapshot_ids=['s-9267f6da4e'], limit=0)
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 | |