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
2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 | |