getBackupSelection method

Future<GetBackupSelectionOutput> getBackupSelection({
  1. required String backupPlanId,
  2. required String selectionId,
})

Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.

May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException.

Parameter backupPlanId : Uniquely identifies a backup plan.

Parameter selectionId : Uniquely identifies the body of a request to assign a set of resources to a backup plan.

Implementation

Future<GetBackupSelectionOutput> getBackupSelection({
  required String backupPlanId,
  required String selectionId,
}) async {
  ArgumentError.checkNotNull(backupPlanId, 'backupPlanId');
  ArgumentError.checkNotNull(selectionId, 'selectionId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/backup/plans/${Uri.encodeComponent(backupPlanId)}/selections/${Uri.encodeComponent(selectionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetBackupSelectionOutput.fromJson(response);
}