def METHOD_NAME(management_group_id: Optional[pulumi.Input[str]] = None,
                                                            management_groups_namespace: Optional[pulumi.Input[str]] = None,
                                                            remediation_name: Optional[pulumi.Input[str]] = None,
                                                            top: Optional[pulumi.Input[Optional[int]]] = None,
                                                            opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ListRemediationDeploymentsAtManagementGroupResult]:
    """
    Gets all deployments for a remediation at management group scope.
    Azure REST API version: 2021-10-01.
    :param str management_group_id: Management group ID.
    :param str management_groups_namespace: The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed.
    :param str remediation_name: The name of the remediation.
    :param int top: Maximum number of records to return.
    """
    ...